LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Combo Box input to a Sub-VI does not work for PDA

Hello,
 
    When a combox box constant value is passed as an input to a Sub-VI & in the Sub-VI, when this combo box input is read, this combo box input is not read properly on the PDA - only the default value case is executed in the Sub-VI. Sample VIs giving this problem on the PDA is attached. Please note that this works fine on the desktop.
 
    Has anyone faced such a problem? Can any LabVIEW expert suggest a solution to get this working for PDA?
 
Thanks & Regards,
Subhashini
 
0 Kudos
Message 1 of 7
(8,403 Views)
Hi Shuba,

The combo box constant is not supported in PDA VIs.  You will notice that it does not appear in the palette when your VI is under a PDA target;  the only reason you were able to place it is because you created the VI under a PC target and then moved it to a PDA target, and LabVIEW doesn't automatically remove unsupported items when the VI is changed to a new target.

I recommend that you use a Ring Constant instead, which IS supported on the PDA target.

I will also report this to our R&D department;  they may consider it expected behavior, or they may consider it a bug and fix it in a future release, but the bottom line is (for now at least) you shouldn't be using a Combo Box constant.
 
Let me know if you have any further questions.

(Note to NI Employees:  This issue is related to
CAR ID 3ONDGPHK for LabVIEW embedded)
Eric V
National Instruments
Applications Engineer
Certified LabVIEW Associate Developer


"I'm a Ramblin' Wreck from Georgia Tech and a helluva (NI Applications) Engineer!"
0 Kudos
Message 2 of 7
(8,311 Views)
Hi Shuba,

Eric was correct in saying that "the combo box constant is not supported". This is because the Combo Box control is implemented differently in the PDA. This KB describes that the only data type supported by the Combo Box on PDA and Touch Panel is a 16-bit signed integer numeric representation. The Combo Box is implemented with a Ring data type so you will need to use a Ring Constant as Eric stated.

When creating your VIs make sure you create them while they are under the target (in this case PDA) that they will be running on. Not all controls/indicators/functions are supported for each target, and you may run into problems if you just move a VI from one target to the other. The string combo box cannot even be found on the PDA or Touch Panel palettes.
0 Kudos
Message 3 of 7
(8,296 Views)
This was reported to R&D (# 4ILEEDYF) for further investigation.
Eric V
National Instruments
Applications Engineer
Certified LabVIEW Associate Developer


"I'm a Ramblin' Wreck from Georgia Tech and a helluva (NI Applications) Engineer!"
0 Kudos
Message 4 of 7
(8,291 Views)

Hello Eric,

    Thanks for ur response. But according to the tests i have done on the PDA, i find that the combo box constant indeed works on PDA, but it is the combo box input that is passed to the Sub-VI that does not work. When i pass the combo box constant to the Sub-VI through a string (instead of the earlier combo box input), the correct cases get executed in the Sub-VI. I have attached the modified VIs that work on the PDA. But it would be good if i could get the earlier combo box input to work on PDA. Please let me know if more details are needed.

Thanks & Regards,

Subhashini

 

0 Kudos
Message 5 of 7
(8,194 Views)
how i know  wheather the functions of particuler vi is support for pda target or not?
plese any pdf file which function aand controller support the Labview Pda?
0 Kudos
Message 6 of 7
(7,727 Views)
Shuba, the combo box constant is not supported on PDA or Touch Panel targets, and you should avoid using them. If your VI is under a PDA target, you will see that a combo box constant is not found on the functions palette and that the combo box is a ring type rather than a combo box string type. Please refer to the KB I linked above to see what type of combo box is supported by the PDA and Touch Panel.

Jabili, all the information for PDA and Touch Panel can be found in the LabVIEW Help. Navigate to PDA Module or Touch Panel Moduel >> Creating Touch Panel VIs >> Supported Methods or Supported Properties, and navigate to PDA Module or Touch Panel Moduel >> Creating Touch Panel VIs >> Designing PDA and Touch Panel UI >> Controls and Indicators >> Unsupported Controls and Indicators. You can also select each particular control or indicator to see what functionality is supported by each.

The LabVIEW Help is also searchable online.
0 Kudos
Message 7 of 7
(7,637 Views)