LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

seperate window example

I ask a similar question for a few days. But I do not know how to do it.
In this very little applikation I have a rotary knob. I want to show the result in a seperate window.
For this I´ve made a Sub.Vi.
But I cant make it visible. I changed the settings from the Sub.Vi into Strating when called. But know i calles so often that I can´t do anything. Theres the wait function, but that is not good, because it brakes the hole applikation. Later on I want to show different seperate windows.
How can I do that? I send my little VI and SubVI. I you like make some changes and send back!
thorsten_reschke@yahoo.de
0 Kudos
Message 1 of 6
(2,860 Views)
I found your question very interesting.I figured out a way for you to do this using the Data socket server. you will find it a little more robust than the other ways. What i did was right click on the control of the main vi and select data socket connection. from there select publish. In the connect to field type in the path to the vi.I also added a couple of other little neat tricks to close the front panels. on the subvi you can now properly close the vi using the X in the top right hand corner. If you have any more questions let me know. you can also read up on the data socket server on ni.com



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 2 of 6
(2,860 Views)
Many thanks fpr your work. Now the Sub-VI opens only once. But the rotary instrument of the Sub-VI does not update when I change the settings in the main vi. How can I realize this?
0 Kudos
Message 3 of 6
(2,860 Views)
you must have the data socket server open and running before you start running the main VI. if you do not it will appear that the VI does not work correctly. Again read up on the data socket server before running the VI again. If this still does not work write back and I will try to help you more



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 4 of 6
(2,860 Views)
I do not get along with the data socket server.
When I cklick right on the control panel I can take a data socket connection. But then? I cklick on public and then in the upper right search. And then there is Browse Measurement data and Browse file system. What will i have to do? take browse file system and then the path to the subvi?
0 Kudos
Message 5 of 6
(2,860 Views)
this is where you put the path to the main VI.
like this dstp://localhost/mainvi. where MainVI is the name of your application that is calling the subvi. you must start this path with dstp.



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 6 of 6
(2,860 Views)