LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to activate Front Panel Wait in LV7.1?

Dear list,
     I am a new comer here. Thank you for your help.
    I have a question: when I try to use the "Wait for Front Panel Activity", the time sequence looks just skipping this without doing anything. Can someone help me to take a look at the code, to see whether it is a bug in LV7.1, or there is better solution to this? I am using WIn XP SP2, LV7.1 .
    I also saw this post but no one has answered yet: http://forums.ni.com/ni/board/message?board.id=170&message.id=104403&query.id=26578#M104403
    Thank you!

0 Kudos
Message 1 of 3
(2,907 Views)

Place an indicator on the loop counter [i] and you will see that is is waiting just fine. Of course any front panel activity (mouse down, key down, etc.) will terminate the wait.

"Wait for front panel activity" is realtively crude tool to pace a loop. You might want to use an event structure instead, e.g. for "OK button: value changed". What is the program actually supposed to do?

You should also eliminate the local variable, it just complicates the code and requires an additional copy of the data in memory. Instead, you can place the string indicator terminal after the case structure and wire the strings from the various cases to it using a single output tunnel. The numeric indicator should be blue (right-click..representation..I32) to match the datatype of the wire.

0 Kudos
Message 2 of 3
(2,902 Views)
Hi Altenbach,
     Thank you for your nice reply! You are right -- when I place an indicator there it did wait.  😞
     With your help I have reprogrammed my original program to event driven. Now it is much more robust. But I still feel that Labview's event support is not as flexible as VB. 🙂
      Thank you so much! Havea great weekend.

Peng

0 Kudos
Message 3 of 3
(2,859 Views)