LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I construct a custom PDA dialog?

OK, here is my attempt. (LabVIEW and PDA for PPC2003 module 8.5). Feel free to laugh out loud.

Run the test vi, it uses the control. It's always there, all I do is switch the visibility.

Text, CB1 and CB2 field contents are used to populate the control when it's made visible. LED's report back which button closed (hid) the dialog.

Adding a decoration to the control for the blue banner at the top fails, although it's part of the control it always remains visible. I cheated/got creative and used a second text indicator coloured blue.

Modern style buttons wouldn't reset when read. I had to use system buttons.

The triangle decoration and slide control on the main panel are just there to give the dialog control something to apear in front of. It has to be ordered to the front to do this.

Constructive criticism of this crude lash up is welcome.

Bandit.

0 Kudos
Message 11 of 17
(5,725 Views)

A subpanel allows you to show the front panels of VIs you call by reference, but contained within the main front panel.

I believe Graham's idea was to actually have the SubVI in your block diagram, but change the call properties to show the front panel on call (in the VI Properties dialogue).  This would make it behave more like a popup window.



Message Edited by JeffOverton on 02-06-2008 12:02 PM
0 Kudos
Message 12 of 17
(5,724 Views)

You will be wanting the code I suppose;o)

OK, here is my attempt. (LabVIEW and PDA for PPC2003 module 8.5). Feel free to laugh out loud.

Run the test vi, it uses the control. It's always there, all I do is switch the visibility.

Text, CB1 and CB2 field contents are used to populate the control when it's made visible. LED's report back which button closed (hid) the dialog.

Adding a decoration to the control for the blue banner at the top fails, although it's part of the control it always remains visible. I cheated/got creative and used a second text indicator coloured blue.

Modern style buttons wouldn't reset when read. I had to use system buttons.

The triangle decoration and slide control on the main panel are just there to give the dialog control something to apear in front of. It has to be ordered to the front to do this.

Constructive criticism of this crude lash up is welcome.

Bandit.

0 Kudos
Message 13 of 17
(5,722 Views)

OK Jeff, I'll have to take another look at that - thanks.

Bandit

0 Kudos
Message 14 of 17
(5,717 Views)

Hi Jef,

I have looked into the sub-panel idea, but sub-panels are not available on the PDA module.

Using a sub-vi and adjusting the parameters doesn't work either. The panel always appears full size no matter what settings you make.

Regards,

Bandit.

0 Kudos
Message 15 of 17
(5,325 Views)

Again re:tab control

re-size the tab control such that the tabs can't be seen.

This is the technique we used in this app.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 16 of 17
(5,308 Views)
As an Idea - I haven't tested this on PDA so I dont know quite how it would work.
 
As the PDA module inherently works on a fullscreen principle then to create a popup you could just make a false screen behind your dialog box using an imported image.
 
If you take a screenshot of your front panel and then use this as the background of your dialoge box. Then place a box or boundary in the center of your screen and bring this to the front. Then place your custom buttons within this. This would give the appearance of a dialog box that appeared in the middle of the screen while allowing labview to load a full screen window.
 
Its not a great Idea but could do what you want.
Graham Green
Software Product Marketing
NI | Emerson
0 Kudos
Message 17 of 17
(5,288 Views)