From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use .NET method with OutAttribute parameter from Labview

I am trying to call a .NET Assembly method from Labview which has the following signature in managed C++,

bool ReadInfo ( [InAttribute] int mobileIndex_, [OutAttribute] Double& fer_, [OutAttribute] Double& ser_);

I can call the this method from other .NET client program (e.g. TestStand) with no problem. In Labview I see the OutAttribute parameters as .NET refnum and I cannot seem to get the values passed back from my assembly.
0 Kudos
Message 1 of 2
(2,150 Views)
This is a known problem in LV 7.x. You are going to need to create some simple accessor methods in the .NET language of your choice I am afraid.

Here is the original thread...

http://forums.ni.com/ni/board/message?board.id=170&message.id=115883
0 Kudos
Message 2 of 2
(2,138 Views)