03-23-2009 04:14 AM
{
try
{
switch ((int)uiMsg.Event){
case 10200: //update the UI to reflect the current progress
progressBar.Value = (int)uiMsg.NumericData;label.Text = uiMsg.StringData;
break;
case 10201: //Close the form, cleaning up the AppMgr Reference
AppMgr = null; this.Close();break;
//=========================================================
case 10202: // Send text to the calling Test Stand App
label.Text = "10202";uiMsg.AsPropertyObject().SetValString("Locals.opText", 0, "Something");
break;
//===========================================================
This is some code from your Floating .Net panel example
In the last case above I am trying to modify one of Test Stand's local variables. I think it is probably not sensible to cast uiMsg as a PropertyObject the way I have here.
I think it is more likely that I will have to pass the variable I want to modify from Test Stand to the DLL.
Not sure how to do this, any ideas ?
Solved! Go to Solution.
03-23-2009 07:27 AM
Hi Krugman2,
To do this you need the coresponding SequenceContext!
Try uiMsg.Thread.GetSequenceContext(0,frameId).AsPropertyObject()
Maybe this thread could be interresting:
http://forums.ni.com/ni/board/message?board.id=330&thread.id=17870&view=by_date_ascending&page=1
Greetings
Juergen
03-24-2009 05:49 AM
04-23-2015 09:29 AM
Bonjour, Est ce que il y a une possibilité de recuperer la version de test dans testStand et l'afficher dans une textbox en c# sachant que j'utilise le c#