LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Interfacing two VIs

Dear All,

 

I have a problem in interfacing those two VI's. one VI which is called " Easy_RS232_Terminal[1]updated_Modified_Arrray" i use it to obtain information from GPR (Ground Penetrating Radar) those information are obtained out in the ASCII format characters, I created another display which present them in Hexadecimal format.

 

Then I created another VI called "Graph noggin" where I copy the information from the Hexadecimal window of the previous file and paste them in the input display  of the "Graph Noggin". I want to combine the two VI's and make the process in real time and automated. As soon as I obtain the data out from the GPR, It get displayed in the graph.

 

please find files attached

 

SAS

0 Kudos
Message 1 of 4
(2,403 Views)

Could you combine Graph Noggin with the top loop of Easy RS232...?

Two ways of doing it:

 

1. simplest but messier is to drage the contents of Graph Noggin onto the block diagram of Easy RS232 and then proceed to move/merge the code inside the moved loop to the upper loop of Easy RS232.

 

2.  Cleaner:  create a sub-vi of Graph Noggin...  or modify Graph Noggin to become a sub-vi.  Create controls and indicators to replace the shift registers and then remove the While Loop.  Wire the Controls and indicators to the terminals of the sub-vi and then drag the icon of the new Graph Noggin sub-vi into the Upper While Loop of Easy RS232.

 

 

0 Kudos
Message 2 of 4
(2,394 Views)

Hi,

 

You can use your Graph.noggin.vi as a subVI in the first vi. Before doing that open the graph.noggin.vi and right click on the icon on the top right corner of the front panel and select show connector pane. Then connect the controls to the connector pane which should get data from the main VI. Save the subvi and drop it in the main vi's block diagram and connect the inputs to the relevant terminals. 

 

Going through the LabVIEW sub-vi tutorials will be helpful for you ...you can read about the subVIs in detail in the Fundamenls help file with labVIEW (Fundamentals»Creating VIs and SubVIs )


Regards,


Nitzz

(Kudos are always Welcome, Mark as a solution if it is the One;))

0 Kudos
Message 3 of 4
(2,391 Views)

Oh, Ray-R has already explained it better...:)

0 Kudos
Message 4 of 4
(2,390 Views)