LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I am using the one button dialog (Using Labview) as a wait so the user can adjust some voltages then once the voltages are

set then the user presses the "OK" button to continue. My problem is that the dialog box is covering some of the voltage read outs on the front panel. Is there a way to put the dialog box in another location on the screen instead of right in the center?
0 Kudos
Message 1 of 7
(3,964 Views)
set then the user presses the "OK" button to continue. My problem is that the dialog box is covering some of the voltage read outs on the front panel. Is there a way to put the dialog box in another location on the screen instead of right in the center?Probably the easiest way is to do this is to create
your own dialog box as a SubVI. The SubVI is just a while loop with a timer in it. The OK button stops the loop and closes the SubVI. Before you save the SubVI move it to a location that is out of the way. After you save it, it will open up in the same place. You can also use the VI server and the property node to set the location at runtime.
Message 2 of 7
(3,964 Views)
set then the user presses the "OK" button to continue. My problem is that the dialog box is covering some of the voltage read outs on the front panel. Is there a way to put the dialog box in another location on the screen instead of right in the center?Hi,


Here is a simple VI which will met your requirements. When run it will position its self in the top left hand corner of your screen, open the front panel and run. When you press the OK button it will close the VI.

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 3 of 7
(3,964 Views)
set then the user presses the "OK" button to continue. My problem is that the dialog box is covering some of the voltage read outs on the front panel. Is there a way to put the dialog box in another location on the screen instead of right in the center?Thanks, for the reply but I should have said I already knew that I could use an extra VI to complete this task but I was just wondering if you could do the same thing with a dialog box.
Thanks,
Rob
0 Kudos
Message 4 of 7
(3,964 Views)
set then the user presses the "OK" button to continue. My problem is that the dialog box is covering some of the voltage read outs on the front panel. Is there a way to put the dialog box in another location on the screen instead of right in the center?How do you open "dialog.vi" to see how it's implemented?
0 Kudos
Message 5 of 7
(3,964 Views)
set then the user presses the "OK" button to continue. My problem is that the dialog box is covering some of the voltage read outs on the front panel. Is there a way to put the dialog box in another location on the screen instead of right in the center?place the vi as a subvi in another diagram, then double click
0 Kudos
Message 6 of 7
(3,964 Views)
set then the user presses the "OK" button to continue. My problem is that the dialog box is covering some of the voltage read outs on the front panel. Is there a way to put the dialog box in another location on the screen instead of right in the center?Why not have a Continue or OK button on the VI that's displaying the voltages? That button would be in a While loop waiting for the user to press it. You could use attribute nodes to enable or disable it at various points in your program.
Anytime you have a loop waiting for operator response, (including in a sub-VI you created as a dialog box) you should put a call to the wait mS function (from the Time & Dialog palette) in the loop. I usually wait 100 mS. That will give more time to Windows (and LabView) to do other things (like taking voltage measurements) while you're waiting for the user. Without a wait mS, the CPU will be so busy checking the button that everything else will slow down.
0 Kudos
Message 7 of 7
(3,964 Views)