NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to build a dynamic user interface

We are trying to figure out how to build a "dynamic" user interface for device configuration.  In any one test sequence we my have between 5 and 10 string controls to enter device IP addresses to be used for that test.  Depending on the test sequence that is chosen from the user interface we want to have an area on the user interface that will show the appropriate string controls (IP address entry points) to be used in that test sequence.

 

How/Have others implemented similar user interfaces?

Scott Saxton
Motorola
0 Kudos
Message 1 of 2
(3,099 Views)

If the IP addresses are, let's say, parameters of the sequence (an array of parameters of size X (5-10 in your case)),  you could probably juste get the array size from the UI.

 

c#

clientSequenceFile = TSEngine.GetSequenceFileEx( testSeqFileName, ...);
clientSequenceFile.GetSequenceByName("theSeqName").AsPropertyObject.GetPropertyObject("Parameters",0).GetPropertyObject("theParamArrayName",0).GetNumElements()

 

this will return the size of the array, then you update UI according to it

 

When you start test, you pass the IPs in parameters back to your sequence with values of IPs

 

hope I get your problem right, if not, feel free to give more details.

 

Probably more than one ways of doing this (seqFileLoad callback / UIMessages, etc.). Feel free to suggest better solutions! 🙂

 

-mat

Averna

 

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