08-31-2018 04:12 AM
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.
Any help would be greatly appreciated.
Sipic
Certified LabVIEW Developer
TestStand and LabVIEW 2016
Win10
Solved! Go to Solution.
08-31-2018 08:27 AM
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
08-31-2018 03:41 PM
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