LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.net NullReferenceException When Trying to Add an Object to a Collection

Solved!
Go to solution

Hi,

 

I am trying to implement the following C# code natively in LabVIEW 2009f3.

 

VptSessionParamList test = new VptSessionParamList("TSDevMasterParseDeviceResponse"); test.Add("00262D65 Y 0F Y C2N-MNETGW 2-Way Gateway [v2.999.0012.Quick_FIX, #00262D65]"); string t = test.ToString();

 

When I try to use the Add method in LabVIEW, it looks like the reference becomes a null reference causing the rest to fail.  Below is how I implemented it in LabVIEW.

VptSessionParamList_labview_implementation.PNG

 

Is there a way to fix this?

 

Thanks
John

0 Kudos
Message 1 of 2
(2,492 Views)
Solution
Accepted by topic author jpsc
Nevermind, I found "To .Net Object.vi" in the .net pallet. 🙂
0 Kudos
Message 2 of 2
(2,489 Views)