NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Message Popup timer doesn't start?

Hi:

 

I've created a couple message popups that have a Timeout button enabled and Time To Wait of 60 seconds. Normally they work fine, but intermittantly they timer does not seem to start. The popup displays, but the timer sticks at 60 seconds. The popup will stay there forever until I press the button manually.

 

Any ideas on what could cause this? I've attached a screenshot. We are running Teststand 4.01f1.

 

Thanks,

Dave

0 Kudos
Message 1 of 4
(3,959 Views)

Hey Dave,

 

I've never seen that behavior before. Does the behavior always only occur with this MessagePopup step in this particular Sequence, or have you noticed this behavior happening with multiple MessagePopup steps in this or other Sequences and even on other machines?  If you replace this MessagePopup and recreate the step the exact same way, does the behavior still occur?  

 

Have you tried removing all other steps so that this particular problematic MessagePopup is the only thing left?  If so, does the behavior still occur, and could you post all relevant files to this forum?

 

If you're in a crunch, you could alternatively try implementing a workaround replacing this MessagePopup step with a step that simply calls a code module written in a language of your choosing (i.e. LabVIEW) that is designed to look and function like a MessagePopup.  Some developers actually do this in order to accomplish more complex functionality that exceeds what the MessagePopup step type alone provides.  Within this code module, you could simply count down for X seconds (while updating your front panel every second) before ending.

 

 

Message Edited by DRock on 08-25-2009 01:32 PM
Derrick S.
Product Manager
NI DIAdem
National Instruments
0 Kudos
Message 2 of 4
(3,933 Views)

As a caution of implementing the popup in LabVIEW, it is not as straightforward as you'd think.

You have to use the "Start Modal" and "End Modal" VIs to make the 'popup' Modal (i.e. always

in front and can't get lost behind a window). I encountered lots of issues with this method (especially

when trying to debug). There is even a modal bug that has to be worked around (I think it's

fixed in LabVIEW 2009).

 

Ronnie

TestStand 4.2.1, LabVIEW 2009, LabWindows/CVI 2009
0 Kudos
Message 3 of 4
(3,927 Views)

I believe I found what was causing the problem. A CVI function was calling SuspendTimerCallbacks but not calling ResumeTimerCallbacks. I suspect this would stop the popup timeout from working.

Thanks,

Dave

0 Kudos
Message 4 of 4
(3,885 Views)