NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

display problem after editing in TS

Hello,
 
I have customized my owner Step Type, which including a Edit VI used for user to input parameters. the edit interface(VI)  can be lauched by right click on the step in TS editor, then select 'Edit' in the popup memu.
The Description Expression in the properties tab what I set is "Step.Result.Action", this value is set from edit interface by user, after finishing the edit, the value in "Step.Result.Action" is updated, but the value in description column in TS editor can't be updated until open and close the properties tab by click the properties in the popup memu.
 
My quesition is: Is it possible that make the value specified in the description box automatically update/refresh in description column in TS editor after the Edit completion?
 
Any help could be highly appreciated.
 
Thanks, Steven
0 Kudos
Message 1 of 6
(3,824 Views)
Hi,
 
You need to set the sequencefile as changed by calling the SequenceFile.IncChangeCount() before exit from your Edit function.
 
Regards
Ray
Regards
Ray Farmer
Message 2 of 6
(3,813 Views)
Ray... I got, Thank you.
0 Kudos
Message 3 of 6
(3,802 Views)

Hi Ray,

Actually, I test four Units simultaneously on the tester, and decription column in each wondow(here four wondows for four Units) shall be display different infomation according the test socket. the expression what I set is as below:

ThisContext.RunState.TestSockets.MyIndex == 0 ? Step.Result.Thread0.Expression : (ThisContext.RunState.TestSockets.MyIndex == 1? Step.Result.Thread1.Expression : (ThisContext.RunState.TestSockets.MyIndex==2 ? Step.Result.Thread2.Expression : Step.Result.Thread3.Expression))

The 'Expression' above is a string variable, it is changed accroding the setting was done in edit VI.

Now when I run four units in batch model, the expression in each window shows the same info which are from test socket0 (Step.Result.Thread0.Expression).

I have re-set the Sequenfile.ChangeCount at the beginning of each test socket but no effect.

My quesition:
-- What setings I missed for this situation?
-- Any other way to solve this problem?

Thanks, Steven

0 Kudos
Message 4 of 6
(3,797 Views)

Hello,

Is TestStand can do it like this???

Thank you!!

 

0 Kudos
Message 5 of 6
(3,761 Views)
I'm not completely sure what you are doing, but if you want a file or execution display to refresh to show changes you've made, post a UIMsg_RefreshWindows message.
0 Kudos
Message 6 of 6
(3,752 Views)