07-12-2023 06:53 AM
"So what are you trying to do in TestStand ?
Remember that Timed While-loop are not for use in Windows, but rather in a RT system. "
hello,
I need the vi called by a step to be aborted as soon as a shutdown is requested under teststand. It's an emergency stop. The timed loop is there to check every 100 ms that we have not asked to stop on the teststand runtime. If a stop has been requested, the VI is forced to stop (to force a return to teststand). I could do the same with a while loop and a "wait a multiple of 100ms" but it seems to me that it would be more ressource intensive (am I wrong?).
07-12-2023 06:58 AM
Hi vincent,
@vincent69 wrote:
I could do the same with a while loop and a "wait a multiple of 100ms" but it seems to me that it would be more ressource intensive (am I wrong?).
Yes, you are.
07-12-2023 07:02 AM
yes i'm wrong or yes it's more ressource expensive ? (sory i'm french and my english is .....)
07-12-2023 07:19 AM
07-12-2023 07:53 AM
If you need to stop a test step when your sequence it terminated, then why not poll on the termination value that you can get from TestStand with the vi's that is supplied with the TestStand API for LabVIEW.
And Termination of a test sequence is NOT a Emergency stop.
07-12-2023 08:21 AM
ok thank you
I'll try!
07-12-2023 08:25 AM
It's not the ermergency stop , the tru one is wired.
It's just a "Stop immediatly".
I can do another way because :
- i have a setp, who call a vi who can be very long ti execute.
If i call the terminate or abort function of teststand, the runtime wait the end of the VI execution to proced. I want the vi to be aborted asap (time base of 100ms is good
07-12-2023 08:34 AM
Hi vincent,
@vincent69 wrote:
If i call the terminate or abort function of teststand, the runtime wait the end of the VI execution to proced. I want the vi to be aborted asap (time base of 100ms is good
There's a TestStand API for LabVIEW which you can use to communication between TestStand and LabVIEW.
For instance you can forward a "Terminate" condition to your VI and act upon it!
07-12-2023 08:46 AM
Yess this what i have use (i think), but i have to chek all the time the state of teststand (the use off timed loop).
I have try with a notifier and a while loop ...... i hope this is not a bad solution for timming :
07-13-2023 04:47 AM
hello, i have test two solution :
the first one, with timed loop who crash sometimes:
the second solution :
the timed loop solution si faster of about 300ms than the other one !
i have a lot of test to do and my vi will be executed a lot of time ..at the end the 300ms si not a details !!