11-27-2013 09:14 AM
HI all,
How can I pass a variable content as a string in c# to the sequence variable named as RunState.Root.Locals.UUT.SerialNumber.
The main gold is to pass the string value from textbox in c# GUI to the sequence parameters.
Tnx
11-28-2013 12:23 AM
Please check this example :
TestStand 2012\Examples\AccessingPropertiesUsingAPI\UsingDotNet\AccessingPropertiesDotNet
It shows how to set a TestStand Variables from a C# enviornment.
Hope this helps.
11-28-2013 04:09 AM
Hi all,
I'm using C:\Users\Public\Documents\National Instruments\TestStand 2013\UserInterfaces\Full-Featured
and I'm trying to get the sequenceContex object : SequenceContext s= axExecutionViewMgr.SequenceContext;
I always get exception "You must pause the execution."
How should I do that??
The main gold is to set RunState.Root.Locals.UUT.SerialNumber at run-time by using c# application(full-featured example).
11-28-2013 06:19 AM
Use an User Interface Message (short UIMsg) to query the DUT serial number in the Pre-UUT callback.
Norbert
12-01-2013 08:21 AM
Hi Norbert,
I don't need to query the serialNumber ,I need to set the serialNumber at runTime.
On Full featured GUI project I don't know how to access to serialNumber runstate variable.
I'll appriciate your time.
12-02-2013 12:39 AM
12-02-2013 02:41 AM
Hi Juergen,
When I start the execution of the sequence I would like to send the serialNumber string from my application(In this case Full Featured GUI example c#) to the RunState.Root.Locals.UUT.SerialNumber variable on NI.
Tnx
12-02-2013 04:04 AM
Hi
there a serveral ways to do this task. But you should do it in that way Norbert_B has descriped by using UserInterface Messages.
In general, TestStand is not only one process. Your UI is another process. You have to share information over processes.
The recommed way for doing this here is fireing UI messages. From TestStand execution you send a message to your UI. Once you have received this message in your UI, you can get a handle to the current sequnceContext were you are able to set your UUT number.
I am pretty sure that Norbert can explain this more in detail. 🙂 because i am out of time now.
Regards
Juergen
12-02-2013 05:40 AM
Hi All,
Can someone show me an example that send UI message on C# side
and how to catch the UI message on NI side ???
Tnx
12-02-2013 05:53 AM
Hi
Just visit this threads:
For C#:
For Fireing UI-messages:
http://forums.ni.com/t5/NI-TestStand/display-loop-count/m-p/653128/highlight/true#M18182
Regards
Juergen