LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to know programatically when LabVIEW has been paused?

Hi Nate and Christian,

 

that was my intention with incorporating the "watchdog" into the VI. When the VI is paused you will get different iteration times of your loops...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 11 of 17
(1,430 Views)

How can you add a watchdog that has no paws???  If it's part of the main VI it will be stopped too.  You could only tell after you un-paused that it ever paused.  I think the OP needs feedback that the VI is currently in a paused state.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 12 of 17
(1,423 Views)

From the sounds of it all that is needed is to know if the code has been paused so that the devices can be re-configured when resumed. It isn't the most elegant solution but it seems that it would work(the band-aid approach)...and would not require a major achetectural change.

-Nate
0 Kudos
Message 13 of 17
(1,415 Views)

Hi NIquist,

 

I wrote "check if it has been paused" Smiley Wink And that is also the subject of the thread...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 14 of 17
(1,415 Views)

Shouldn't that be "had been paused" then? Smiley Tongue

 

You're right though, the OPs second post makes it clear.  Besides the inherent impossibility of course!

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 15 of 17
(1,396 Views)

From the "Where there is a will, there is a way department", here you go.  Unzip the attachment and run the "IsVIPaused.vi", hit pause a few times. 

 

This also falls under the "Now that you know how it is done, don't do it" category.  The state machine approach and hiding the toolbar from the running application is really the way to go.

 

Sorry about the Password on the XControl facade, the IsVIPaused property that altenbach mentions is the 'wrong' color at least in LV9.  I am sure the savvy LV users will guess very quickly how it is done.

 

 

Message 16 of 17
(1,397 Views)

Hi NIquist,

 

well, my English grammar surely isn't the best...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 17 of 17
(1,388 Views)