Coder Social home page Coder Social logo

citect's People

Contributors

estradege avatar geoffreyestrade avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

citect's Issues

Could not load file or assembly 'Citect.Platform.Transport.Interfaces, Version=8.40.0.0

I keep getting this error when launching my .net6 console program using nuget Citect.CtApi:

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Citect.Platform.Transport.Interfaces, Version=8.40.0.0, Culture=neutral, PublicKeyToken=13aaee2494f61799' or one of its dependencies.

On the server I have this file ...\Bin (x64)\Citect.Platform.Transport.Interfaces.dll in version 8.40.0.455

How can I address this specific version? I have tried different versions of the nuget package Citect.CtApi (from 1.5.0.0 to 2.0.0.0) but always same error...

Unknown error (0x100001a8)

Hi,

I am trying to make a very small program to read tag values. The program is very simple:

class TestClass
{
    static void Main(string[] args)
    {
        var wrapper = new Citect.CtApi(true);
        wrapper.Open();

        string t = wrapper.TagRead("ALARM_RESET_BIT");
        Console.WriteLine(t);

        wrapper.Close();
    }
}

On TagRead() I get this:

An unhandled exception of type 'System.ComponentModel.Win32Exception' occurred in AlarmClient.exe
Unknown error (0x100001a8)

I confirmed that the tag does exist and that PlantSCADA is running. I also set up my csproj to specifically use .net 4.8:

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net48</TargetFramework>
    <PlatformTarget>x64</PlatformTarget>
  </PropertyGroup>

There is no error on the .Open() call. I traced through that call just to be sure and:

_ctapi = CtOpen(computer, user, password, 0);

is returning some kind of handle (not NULL) so I think the open succeeded.

Any idea what this Unknown error could be?

--C

Consider extending Open to include nMode arguments

Due to running a windows service there was a need to pass
CT_OPEN_BATCH - Disables the display of message boxes when an error occurs.
to ctOpen

Eg.
public enum CT_OPEN { NONE = 0, CRYPT = 1, RECONNECT = 2, READ_ONLY = 4, BATCH = 8 }
public void Open(string computer, string user, string password, CT_OPEN flags = CT_OPEN.NONE)

Without CT_OPEN_BATCH the service would lockup.
If you want I can submit a PR but the Citect.CtApi.csproj has an absolute path that was removed and not sure how that affects your build.

Thanks

Credentials

Hi there, I'm stuck, I can get why I've have always this:

image

All this changes was in CtApi.cs
I had changed two things, first one was the path of my ctapi.dll
[DllImport(@"C:\Program Files (x86)\Schneider Electric\Citect SCADA 2018\Bin\CtApi.dll"

The second one was credentials
line 149
public CtApi(bool open, string computer = null, string user = "Engineer", string password = "1234")
{
if (open)
{
Open(computer, user, password);
}
}

I wish put this like a question but I didn't find out to do it, my bad sorry.

Cannot find .DLL files

For some reason when running the windows forms app with latest version of Aveva Plant SCADA redistributables. When attempting the login button an error returns that the DLL cannot be imported even when placed in location referenced in DLL import location.

Unable to load DLL 'CtApi.dll'

Hi,
I'm a consultant trying to help my customer integrating with Citect. I have been given two sets of assemblies; CtApi.Win32.Redist and CtApi.x64.Redist.

I've installed all assemblies in the C:\ProgramData\CitectCtApi directory, but when I run the Console sample if fails with:

Unable to load DLL 'CtApi.dll' or one of its dependencies: The specified module could not be found. (0x8007007E)

I've tried both the x86 and 64 bits dll's.

Is there a specific version of the dll's I should ask for?

Cheers
Mikael

Alarm ODBC setup - System

Hi,

When setting up the Alarm ODBC connection, the System dropdown is empty for me. Did you find any docs on this or know what steps to take for that to be populated?

image

Reading more than one tag (ctListRead support)

Are there plans to support reading multiple tags at once (using ctListRead)?

If not, can I contribute to have it supported somehow?

As a minimum, it would be nice to have the wrappers for the following functions defined: ctListNew, ctListAdd, ctListRead, ctListData, ctListFree.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.