11-12-2024 06:02 AM
Hello,
I am working on a project where I get the array string from the Teststand to the LV UI and In LabVIEW I will display the array string and the user selects one string value and that information must be sent to TestStand during the runtime, where TS waits for this input (String value).
Is it possible to update the TS variable during the runtime of sequence from the LV UI?
Because normally when the TestStand execution is going on, we don´t have an option to update the variable unless you pause the execution.
Please help how to implement this.
Thanks in advance.
11-12-2024 11:39 PM
Guess you are sending data from TestStand to your OI via UserMessages?
you can use synchronous mode and send the sequence context to the UI in order to access variables in TestStand to access variables.
Yet you have to consider that you create a hard coupling between the sequence and your OI and have to make sure you are correctly disposing all ActiveX objects in the OI
11-13-2024 02:47 AM
Hello Oli_Wachno,
Thanks for your response. Yes , I do send data from TestStand to my OI via UserMessages. But that works fine.
Problem I am facing here is I also need to send the data from OI to TestStand when the sequence is already running.
Normally in TestStand I cannot modify the TestStand variables during the runtime. I need to pause the sequence to do so.
I just want to know if there is way to update the variable in TestStand when its in run state via OI.
Before starting the sequence, I could update the TS variable using this property (SetValNumber /SetValString), But this doesn´t work when the sequence is in run state.
11-13-2024 02:31 PM
The point I tried to make was, that if you use synchronous messages, TestStand will wait until the event handling code is finished executing. At this point you‘d have the possibility to access stuff via a context sent with the message.
A less elegant alternative would be to use StationGlobals….