LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

more terminals to sub vi

Hi thanks for the comment. I have done most of my programming in Matlab. I have only been using Labview for maybe 2 years and never had formal training. Although, I have certainly gotten up to speed using the training on the threads and also the training posted on NI site. This code is fairly complicated in that I am going to have over 30 Analog Inputs into DAQmx and about 4 Analog Outputs. What I am accustom to doing with programing is creating subfunctions to do certain things in Matlab and thus it makes the code more readable. I will have a startup sequence where I am ramping up several power supplies in sequential order and hence I created a sub vi to do just that.  Also, I have a shutdown sequence to implement and I created a subvi to do that. This is why I will need to change the control values that are input into the DAQmx with references. I don't want to do all of this in one vi because the screen space needed would be like 10 ft by 10 ft long with wires everywhere. I'm trying to make it as understandable as possible.  I appreciate the helpful comments.
0 Kudos
Message 11 of 12
(512 Views)
for something like that, I would suggest an array or cluster, OR even an array of clusters/typedefs with the typedef defining one setup (powersupply, DAQ Channel names) then set have your subVI just start up/shut down a single power supply, and toss it into an indexed for loop. You can use the index to update the front panel.
0 Kudos
Message 12 of 12
(490 Views)