12-16-2020 06:11 PM
Hello all;
I'm trying to write a C# program to interface with an Omega Platinum series process controller.
There's a .dll driver for the controller that requires usage of the Labview.Interop.dll file from the Labview run-time.
Whenever I try to run the program i get this error:
'Method not found: 'System.Object NationalInstruments.LabVIEW.Interop.DataMarshal.MarshalOutputCluster(IntPtr, System.Type, Int32, IntPtr)'.'
I have tried both 1.0.0.0 and the 1.4.0.0 versions of this library but that method is not there.
Are there any other versions of this dll that contain this method?
Solved! Go to Solution.
12-16-2020 06:47 PM
Update: the 1.3.0.0 version has that method but it's still saying it does not have that method when i run the program
12-17-2020 12:17 PM
Issue resolved. 1.3.0.0 worked, just needed to do a fresh boot of visual studio after switching the DLL but i did install Runtimes from 2013-2017 and 2020
01-10-2024 08:46 AM
I am currently trying to achieve the same and found Omega to be less than helpful
Any chance you would the bare minimum code to connect and read the temp?
01-10-2024 06:36 PM - edited 01-10-2024 06:40 PM
So...
it requires:
Labview Runtime 2013 SP1 https://www.ni.com/en/support/downloads/software-products/download.labview-runtime.html#306237
Labview VISA Runtime 14.0.1 https://www.ni.com/en/support/downloads/drivers/download.ni-visa.html#494653
Installing OmegaUSBx86.exe from https://assets.omega.com/software/CNPT-Series_Software.zip?__hstc=257583444.46fceee3071281dd2064c2b0...
The version of the runtimes is important. Pretty sure it won't work on any other runtime than the specific ones i mentioned.
In my Windows Form App i had to add a reference (Project -> Add Reference) to PlatinumModbusDriver-x86.dll
and then in my class library I have this (attached), which isn't full functionality but it'll be a good jumping off point for you. This is using Modbus RTU over USB at a baud rate of 19200 with the COM port name string being passed in.
It works for the most part. Every now and then i get an error when trying to change the state (idle, run, stop, etc). But reading values works well.
01-11-2024 03:03 AM
Thanks very much
I am up and running
FYI - I didnt need the Labview VISA Runtime specific version 14.0.1. The latest worked too.
01-11-2024 11:15 AM
Oh interesting
Maybe it was just the Labview runtime that needed the specific version because it installs the proper version of the interop dll.
Good to know though for anyone else that searches this up.
Glad i could help