LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

switch until released button action on the pda module

I am trying to get a button to increment a counter when pressed, and if pressed for a set time, with will increment 10 times faster.  I can achieve this using an array and a button whose mechanical action is set to 'Switch until released' in the PC version of Labview.  The problem I am running into is that when I duplicate this code for the PDA verison ... The button will not behave in the mechanical action manor of 'switch until released', it behaves like a 'switch when pressed' mechanical action even though the mechanical action is set to 'switch until released'.  Anyone know fix for this or any other way to get a button to work properly under the 'switch until released' mechanical action on the PDA?  Thanks in advance.

Greycat
0 Kudos
Message 1 of 5
(3,537 Views)

I wouldn't be surprised if the PDA booleans didn't support some of the mechanical actions.

One way to detect such a thing would be to use the mouse up and mouse down events. If I remember correctly, they were only supported for the picture control in 7.1, but that may have changed in 8.


___________________
Try to take over the world!
0 Kudos
Message 2 of 5
(3,520 Views)
On my PDA, most of the time when you click and hold, it is similar to a right button mouse click.  Perhaps that is part of the problem you are seeing.

Just a thought,
Bob Young

0 Kudos
Message 3 of 5
(3,516 Views)
Thanks for the responses.  I'll post if I get any further with this.

Greycat
0 Kudos
Message 4 of 5
(3,512 Views)

I'm not sure if you're using Palm OS or Pocket PC, but here is the mechanical action for both.

For Palm OS:

The PDA Module treats all switch mechanical actions as "Switch when pressed", which changes the control value each time you tap the Boolean control.

For all latch mechanical actions, Boolean controls appear as if the mechanical action is "Latch when pressed", which means the control retains the actual value until the PDA application reads the value of the control. The control then reverts to its default value. But the PDA Module actually treats the latch mechanical action as "Latch when released", which means the actual value of the control releases only after the PDA application reads the value of the control.

The Palm OS native front panel button latches in the same way as a front panel button in LabVIEW for Windows.

For Pocket PC:

The PDA Module treats all switch mechanical actions as "Switch when released", which changes the control value only after you tap within the graphical boundary of the control.

The PDA Module treats all latch mechanical actions as "Latch when released", which means the actual value of the control releases only after the PDA application reads the value of the control.

Hope this helps,

Shari

0 Kudos
Message 5 of 5
(3,500 Views)