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

C# Customer User Interface of Teststand

$
0
0

Hello, I am a new developer of Teststand, mainly using C# language. I am trying to create a customer User Interface based on the example provided by NI: Building a TestStand UI with Native Controls, and it can running normally.


But I have a few problems need your help:

 


Question 1:
I used code similar to the following to load the seq file to be tested:

AxSequenceFileViewMgr1. Sequence=axApplication Mgr1. OpenSequenceFile (path) GetSequence (0);


However, when I prepared for testing using the EntryPoint of TestUUTs, I found that the ProcessModel file was specified in advance in Mainmenu Configure--Station Options--Model--Station Model.
Is there a way for me to specify the ProcessModel file through programming? (For some reasons, I will customize the original official ProcessModel file and call the customized ProcessModel file in the test)

 

 

Question 2:
There will be a step in my test seq file that calls the scanner to scan the serial number of the product and store it in the local variable. After this step, is there any way to transfer the serial number from local to the variable specified in modeldata so that it can be displayed on the interface and generated in the report? Is it through UIMessage? Or can the variables specified in modeldata be written directly through programming? I would greatly appreciate it if you could provide a simple example

 

 

Looking forward to receiving an answer, many thanks for U!


Viewing all articles
Browse latest Browse all 6733

Trending Articles



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