NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW Typecast of TestStand Step Property Object Causes LabVIEW Crash.

Solved!
Go to solution

This is an irritating one.  I'm cloning a TestStand step in a LabVIEW sequence generator and each time I attempt to modify the Step Properties using the API, after recasting the cloned step from the Property Object type, LabVIEW crashes?  My LabVIEW code is shown below.  I'm sure that I've seen this before but I can't find a workaround.Clone Crash Capture.JPG

 

Any help would be greatly appreciated.

 

Sipic

Certified LabVIEW Developer

Certified-LabVIEW-Developer_rgb.jpg

 

TestStand and LabVIEW 2016

Win10

 

0 Kudos
Message 1 of 3
(2,863 Views)
Solution
Accepted by topic author Sipic

Hi, 

You should use "Variant To Data" and not a type cast node. See Obtaining a Different Interface for TestStand Objects in LabVIEW for more information. 

 

Regards, 

Anand Jain

National Instruments

 

 

Message 2 of 3
(2,844 Views)

I knew I'd seen this problem before Anand LoL.  Thank you, that was the memory jogger I needed.  The problem has gone. 

 

I must remember not to rely on old community posts though.  Ryan's example posted in 2002 clearly has a type cast node in it https://forums.ni.com/t5/NI-TestStand/Does-anyone-have-example-code-of-using-TestStand-API-in-LabVie....

 

As an aside, this is a simple but important part of the API cloning process.  Is it not something that could be mentioned in the TestStand API documentation?  A small edit would have made a significant difference to my week.

 

Thank you again Anand

 

Simon

 

 

0 Kudos
Message 3 of 3
(2,833 Views)