LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to mux data from seq structures then while loop onto Ethernet?

Hello,
 
I have a vi that currently sends a command over Ethernet to a device using a while loop. It works very well, but I would like to add the ability to configure the device when I first run the vi, then go to the while loop. There are about 4 separate commands that need to be sent once. I would like to use a flat sequential structure and the Select vi to mux the data to the vi section that puts the strings out to Ethernet. My question is two-fold:
 
1. Where can I get the signal to control the s input of the Select vi as each element of the sequential structure runs
2. How can I get the data out of the flat sequential structure as each frame runs?
 
Thank you,
 
Ron
0 Kudos
Message 1 of 2
(2,403 Views)
The input to the Select function is simply a Boolean. You could use a constant. I don't quite understand though, the reasoning for using the Select anyway. If you wanted to use a sequence structure, simply put each command and the write in each frame. Even simpler would be to create an array of commands and wire it into a for loop with the write inside. This will auto-index the array. You would use the error-in/error-out connections to control dataflow.
0 Kudos
Message 2 of 2
(2,390 Views)