Quantcast
Channel: NI TestStand topics
Viewing all articles
Browse latest Browse all 6524

Load Test Step VI in SubPanel Of User Interface

$
0
0

I'm trying to get TestStand to load the steps VI in to a subpanel I have in a custom UI.

 

I'm using the following code in the "UI Message Event Callback" to listen for a custom UI message from the executing sequence. The case "10002" then writes the subpanels reference to the TestStand sequence

Capture.PNG

 

In the TestStand sequence, I have a single test step (for testing) that has the following code in it

Capture.PNG

Unless I'm mistaken about the above, I am posting a message (10002) to the UI, waiting for it to execute, obtaining the reference set by the Callback code (FileGlobals.TS_SubPanel), returning it to the type of SubPanel and using the reference to load a VI into.

 

I receive the following error:

Capture.PNG

I'm making an assumption that this issue is to do with how TestStand is handling the SubPanel reference.

 

Is this actually possible to achieve? I've scoured the internet and seen a few people asking about similar topics, but never seen a complete solution. There is an example somewhere that is NI verified, but I couldn't get that to work either.

 

I did have an alternative method that passed the path of the VI that the Sequence File wanted to use for the particular test step to the UI, and successfully managed to load the VI in to the subpanel, but none of the controls worked with the test sequence. Presumably because the sequence context was no longer valid.

 

Any help would be appreciated, I feel this is achievable, or at least should be!

 

Thanks


Viewing all articles
Browse latest Browse all 6524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>