07-11-2006 05:13 AM
07-11-2006 12:18 PM - edited 07-11-2006 12:18 PM
Add some strings to your custom step
Step.xxx
Step.yyy
For the
Step Description Expression try :-
"{ xxx = " + str(Evaluate (Step.xxx)) + ", \nyyy = " + str(Evaluate(Step.yyy)) + " }"
Step.xxx Step.yyy contain the local variable you want to display as in locals.x locals.y
These should update the description when the sequence is running.
Message Edited by Rupert Hewitt on 07-11-2006 12:19 PM
07-12-2006 01:27 AM
07-12-2006 01:27 AM
Thanks Ropert.
The suggestion you have given is Good one.
but my problem is little different.
I am assigning value to local variable by doing right click on Edit option. ( where my C# dll will launches a form and takes user input which will be stored in
Test stand local variable on click of OK button.)
Problem: Assignment of value to Local variable is done. the same variable is taken in Description. but i am not able to see that description. though local variable is containing value. but if i save the sequence then description appears.
so, It seems that it requires some refresh functionality or external trigger.
07-12-2006 03:34 AM - edited 07-12-2006 03:34 AM
Hi Sreedhar,
I made myself a generic edit box.
I'm using CVI so not quite the same as your c# code
I pass in
const char *Property "Step.xxx" - where im storing my output
When i've finished assigning / finding what I want to store use
TS_SetPropertyToCtrlValEx (panelHandle, PANEL_XXXX, testData->seqContextCVI, Property, errMsg)
TS_IncSequenceFileChangeCount (testData->seqContextCVI, &errorInfo)
Then with the evaluation of the previous message you see the value.
Rupert
Message Edited by Rupert Hewitt on 07-12-2006 03:36 AM
07-12-2006 04:34 AM
Thanks Rupert for prompt response.
Well, where you have written this line of code.
TS_SetPropertyToCtrlValEx (panelHandle, PANEL_XXXX, testData->seqContextCVI, Property, errMsg)
TS_IncSequenceFileChangeCount (testData->seqContextCVI, &errorInfo)
if you have written this code in ur CVI Example then i can't do that bcs i have not accessed any test stand api in my C# code.
i think it is nothing with C# or CVI. bcs Value of local variable is assigned. but as i changing step property. reload of step requires. refresh.
Manoj.
07-12-2006 04:58 AM
Do you not have access to any Teststand API functions in c# ?
If not maybe you should consider writing a generic edit dialog in cvi, c or labview ? Although your test code is in C# the edit dialog doesnt have to be in the same language.
07-12-2006 05:32 PM
09-14-2006 09:04 AM
09-15-2006 09:04 AM