Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

LVRefNum in .Net with only using Labview Runtime Engine

Hi 

 

Here is the situation.  I have this device which provides Labview compiled dll to communicate with it.

I have been writing code to communicate through this dll to control the device and it has been successful so far. 

However the dll provides only six functions. 

1. Initialize

2. Close

3. ControlInterface

4. DataInterface

5. ErrorHandler

6. LVDLLStatus

 

Here are the two issues:

Issue one: I only have Labview Runtime Engine for now and I do not know yet whatelse I need to solve issue two. Hopefully I don't need any more purchases (extra dlls, drivers, etc.)

 

Issue two: I need to receive multiple events from the device using function called DataInterface(#4 above), and DataInterface asks for LVRefNum as filepointer. And it's pretty much the only way to recieve mutiple events data.

 

I searched this website and I found out LVRefNum can be generated using FNewRefNum...  however I have not figured out what I should do with Labview runtime engine to use this function.

And also I need to know how to change FNewRefNum declaration so that it can be imported and used in C#.

 

FNewRefNum (path, fd, refNumPtr) to may be something like:  

 

FNewRefNum(string path, Int32* fd, .....)  ( I don't know yet)

 

I am currently using C#.Net so I am posting message here.. I have ported the device company's unmanaged C dll with bunch of structures and pointers/arrays to C# and it is working.. 

However I confronted this issue.

 

Any help or suggestion is appreciated.

 

 

0 Kudos
Message 1 of 2
(3,725 Views)

Good morning JP_Med,

 

It seems like the situation you're describing concerns the third-party device, DLL and/or software. These forums are here to support National Instruments products. You're welcome to leave your post here in case another customer can help you out, but it seems like the best solution would be to contact your DLL provider. I apologize for not being able to respond with the answer you're looking for. Have a great day!

 

Best,

Carisa Leal

Applications Engineering

National Instruments

Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,695 Views)