LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

STOP TIMED LOOP

"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?).

0 Kudos
Message 11 of 24
(622 Views)

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.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 24
(619 Views)

yes i'm wrong or yes it's more ressource expensive ? (sory i'm french and my english is .....) 

0 Kudos
Message 13 of 24
(612 Views)

Hi vincent,

 

the only question in the citation was "am I wrong?"…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 14 of 24
(598 Views)

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. 

0 Kudos
Message 15 of 24
(593 Views)

ok thank you

I'll try!

0 Kudos
Message 16 of 24
(593 Views)

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

 

 

0 Kudos
Message 17 of 24
(590 Views)

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!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 18 of 24
(584 Views)

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 :

vincent69_0-1689169566450.png

 

0 Kudos
Message 19 of 24
(577 Views)

hello, i have test two solution :

the first one, with timed loop who crash sometimes:

vincent69_1-1689241421610.png

the second solution :

vincent69_2-1689241495053.png

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 !!

0 Kudos
Message 20 of 24
(552 Views)