LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do i open a new window? serial communication problem

I am trying to make a serial communication interface, with changeable settings,
but i wanted it to be that the settings to be openend in a new window, how am i able to do that.
 
I tried to make a separate subvi, but unable to do that, here is my explanation in images and the vi files.
 
 
-Just a student-
0 Kudos
Message 1 of 7
(5,674 Views)
Hello Nandha,

SubVI's can be created by selecting the part that you want in the subVI and than select "create subVI" from the "Edit" menu.

Or cut the selected part and open a new VI and paste in the code. Then you have to connect all the controls and indicators to your connector pane. To do this right click the icon in the upper right corner and "Show connector". Select a pattern that has enough connectors, my personal favorite is the 4x4x4. Select the wire tool and select a connector and then the control or indicator you want to connect. Try to keep controls to the left and indicator to the right.

Now you have to figure out when you want to show the settings window. Is it necessary that the communication goes on during manipulation of the settings?

Kind regards,

André

Regards,
André (CLA, CLED)
0 Kudos
Message 2 of 7
(5,667 Views)
It is not necessary for the communication to go on during the settings, what i wanted is that all the settings is being done in a seperate window.
how am i going to do that?
-Just a student-
Message 3 of 7
(5,665 Views)
Nandha,

For your architecture, you could add another case in your user interface loop, just like the clear, the new button should be latched. Put the newly created subVI in the true case and select the VI properties of the subVI. In the sub manu " VI appearance" select custom and set the VI front panel to be opened when called and to close when previously closed.

When the VI is called it should open the front panel and when you exit the setting the front panel is closed.

Kind regards,

André
Regards,
André (CLA, CLED)
0 Kudos
Message 4 of 7
(5,661 Views)
is it like this??
why it won't work?
-Just a student-
0 Kudos
Message 5 of 7
(5,653 Views)
Nandha,

Place the case structure and its controls/indicators in the while loop, currently the code is only executed once.

Next time also post any subVI's nec or essary. I could not review the subVI you created.

There are also some great books about LabVIEW, which will introduce you to the LabVIEW basics (try amazon or other bookstore).

Regards,

André
Regards,
André (CLA, CLED)
Message 6 of 7
(5,646 Views)
Thanks for the advice..
-Just a student-
0 Kudos
Message 7 of 7
(5,625 Views)