LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview Run-time: Method Not Found

Solved!
Go to solution

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?

0 Kudos
Message 1 of 7
(1,100 Views)

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

0 Kudos
Message 2 of 7
(1,084 Views)
Solution
Accepted by topic author mclax

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

Message 3 of 7
(1,032 Views)

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?

0 Kudos
Message 4 of 7
(337 Views)

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.

 

Message 5 of 7
(313 Views)

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.

 

Message 6 of 7
(279 Views)

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

0 Kudos
Message 7 of 7
(250 Views)