estradege / citect Goto Github PK
View Code? Open in Web Editor NEWCitect (Plant SCADA) CtApi .NET
License: MIT License
Citect (Plant SCADA) CtApi .NET
License: MIT License
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...
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
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
Hi there, I'm stuck, I can get why I've have always this:
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.
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.
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
Referencing TN10357, is there a way to add these dependency dll's (22 in total )to the project and they are packaged as part of the solution?
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
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.