Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

In LV7.1 how can I use a command from a .Net .DLL file that requires an input from .NET class TimeSpan?

Solved!
Go to solution

I am currently using LabView 7.1 to control an instrument using a .NET 2.0 compatible API.  A dispense command requires that I set the dispense timeout.  The command is expecting a standard .Net class but when I create a constant I just get a dog eared piece of paper that says .NET.  I cannot see a way to set this value.  How can I send the proper value to this command?


0 Kudos
Message 1 of 3
(4,166 Views)
Solution
Accepted by topic author JasonHamilton

Hello Jason

 


The timestan is inside the mscorlib.dll, in order to use it you have to create a contructor node and select the mscorlib as show in the image this will create the reference you need:

 

f01.jpg

to locate the timestan  open +system and search for it, then you just have to create a .net property or invoke node to access the properties or the methods of the timestan object:

 

f02.jpg

Regards,

 

Martin Garcia

Applications Engineer

National Instruments Corp.

 

 

0 Kudos
Message 2 of 3
(4,157 Views)

Thank you very much.  Once I finally found the correct version of the file everything seems to work great!

0 Kudos
Message 3 of 3
(4,146 Views)