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:
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!