Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

how to make it simple on my complex program (Modbus)

hi all, i create a program for my machine, its need 4 device that support rs-485 communication for 1 machine. i make a complex program for this project, my program now just for 1 machine, but for future i`ll make it for 12 machine (4 x 12 machine = 48 device) its will be 12x complex program, i want to make its a simple program by use subVI, the different for every machine is just on peripheral number of device (Serial Parameter)

SubVI.png

 

please help me how to made simple program by subVI, i try subVI on while loop its over than 28 connector, any idea ?

i hope you understand what i mean. thanks~

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

Check out this tutorial from Berkeley. You need to identify what output and inputs you want available outside the subVI. Then wire those outputs and inputs on the connector pane on the front panel.

 

http://ptolemy.eecs.berkeley.edu/eecs20/labs/LabVIEW_Tutorials_PDF/HowtoCreateaSub-VITutorial.pdf

Michael Bilyk
Former NI Software Engineer (IT)
0 Kudos
Message 2 of 2
(4,382 Views)