LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to use a dialog to show the dynamic date?

anyone can tell me how to use a dialog to show the dynamic date(like the amplitude of a waveform)? thanks a lot!
0 Kudos
Message 1 of 5
(2,614 Views)

Hello HappyBird,

Do you mean date or data? And what do you mean by dynamic? It's really not clear as to what you're trying to accomplish.

It will be helpful if you can explain your goal in much detail, preferably with a simple VI demonstrating your attempts.

Regards,

Khalid

0 Kudos
Message 2 of 5
(2,614 Views)
sorry about that,yes,it is data,i have make a simplified VI to show my goal.
when i run this VI,i can see the dialog ,but i can not close it and i can not go to the main VI(The sine waveform) can you tell me what i should do to improve it? thanks!
Download All
0 Kudos
Message 3 of 5
(2,614 Views)
Hi,

If you are using LV7, you can simlpy set the windows property to "floating"
(in VI Properties>Window Appearance). You also need to set "Show front panel
when called" but not "Close afterwards...". w the first time the VI is
called (with the updated data), the windows pops up. Because it is floating,
the main UI can still be used.

Regards,

WIebe.






"happybird" wrote in message
news:506500000005000000929F0100-1079395200000@exchange.ni.com...
> sorry about that,yes,it is data,i have make a simplified VI to show my
> goal.
> when i run this VI,i can see the dialog ,but i can not close it and i
> can not go to the main VI(The sine waveform) can you tell me what i
> should do to improve it? thanks!
0 Kudos
Message 4 of 5
(2,614 Views)
Hi Happybird,
I opened your program and tried to do what you were trying and understand why your are having problems. Since you have the subVI in the loop, each time that VI is run, LabVIEW changes focus from the main window to the subVI window. So now you cannot use the main window even though you see it.
The best way to get around this is not to have the subVI in the loop. Instead I suggest using a global variable to transfer data between the two VI's The subVI should have a loop of its own and stop whenever the stop button on the main VI is pressed. I am attaching the changes I made to your VI. I have an additional file called global.vi. This is a global variable VI and doesn't have a block diagram. If you would like to learn more about global
variables, there are several good tutorials on ni.com
Hope this gives you a better idea about how to achieve what you are trying to do.

Regards,
Jack J.
Applications Engineer
National Instruments
Download All
0 Kudos
Message 5 of 5
(2,614 Views)