LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

running labview application on two displays

Hi,

actually the q should be: how to write labview application that supports drag and drop?

my labview application consists of many "tachos" or meters/gauge (see the attachment) and i'm working with labview express on win XP. now, there is a nice possibility to work with two or more desktops - one desktop pro tft display.

what i want is to have running my application on laptop (like a controlling device), and on other laptop or tft i want that my test person is seeing just one or more tachos (meters), because completelly application is not interesting him. the best sollution is to drag and drop the meters to other screen but HOW???

thanx a lot

vedran divkovic
rub germany
0 Kudos
Message 1 of 5
(2,887 Views)
Hi,

You'll have to make several floating windows. Each windows has a control.
The Control is also wired to the connector pane, so in the main VI, the
connector is used to update the control. The separate windows are floating,
so the main vi operates normally. The windows can be dragged just like all
windows. You can also use the VI properties to set the screen coordinates
from the program.

If you want to exceed yourself, you can use the event structure to check if
the original control (like you have know), is being clicked. If there is
mouse movement without releasing the button, and the mouse pointer leaves
the front panel, open the front panel of the floating vi. Optionally hide
the original control. The reverse is also possible, but it is easier
to let
the user close the window. It would be easier to let the user click the
control to open the floating vi, and close the vi if he is tiered of it, or
make an checkable menu item "Show gauge #nr" for each control.

Regards,

Wiebe.


"vedran" wrote in message
news:50650000000800000027E20000-1079395200000@exchange.ni.com...
> Hi,
>
> actually the q should be: how to write labview application that
> supports drag and drop?
>
> my labview application consists of many "tachos" or meters/gauge (see
> the attachment) and i'm working with labview express on win XP. now,
> there is a nice possibility to work with two or more desktops - one
> desktop pro tft display.
>
> what i want is to have running my application on laptop (like a
> controlling device), and on other laptop or tft i want that my test
> person is seeing just one or more tachos (meters), because completelly
> application is not interesting him. the best sollution is to drag and
> drop the meters to other scree
n but HOW???
>
> thanx a lot
>
> vedran divkovic
> rub germany



[Attachment floating gauge main.vi, see below]


[Attachment floating gauge.vi, see below]
Download All
0 Kudos
Message 2 of 5
(2,887 Views)
Is it possible to have a dummy representation on the second desktop? You could have a main program (on the laptop) receiving the data and performing any control neccessary and then sending the appropriate values to the dummy panel which simply shows the values on the second desktop.

I think notifiers are the best solution for this, but maybe someone else has a better idea.


It might also work if you communicate via global variables. Problems MAY occur if you need two-way communication, but your description sounds to me like it's pretty much one-way.
<\hope nobody's listening>

Hope this helps

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 3 of 5
(2,887 Views)
Have you any examples for this, it sounds interesting.
0 Kudos
Message 4 of 5
(2,887 Views)
Here's a simple example.

Copy both VIs to the same directory and run "sender.vi". By making sure the "receiver" is on the second display (I'm not familiar with this part), you can have a dummy representation of the control panel.

Hope this helps.

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
Download All
0 Kudos
Message 5 of 5
(2,887 Views)