VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Error while trying to get Inports/Outports in LabVIEW

I'm trying to write a VI in LabVIEW that gets all the inports (or outports) in a Veristand system definition file and puts them into arrays, but it throws an error every time I try to do any calls to the Inport groups. It has no issues getting the inports at the top level using Get Inports(), or if I use the Get Inports (boolean deep), but it throws an error when I call Get Inport Groups(). I have verified that the system definition file I am opening has inports at the top level, and in groups. I get the same error when I also try this with Outports.


The error message (1172) is :


LabVIEW: (Hex 0x494) A .NET exception occurred in an external assembly. For information about correcting this error, copy the following exception (in bold), and search the Microsoft Developer Network (MSDN) Web site or the Web for a possible explanation.
System.InvalidCastException in Get Inports.vi

 

 

VISnippet_GetInports1.png

 

0 Kudos
Message 1 of 1
(2,568 Views)