LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Mr. Knutson, how can I change the slot # on my channel vi (probably through a conditional statement) when I reach the half-way mark in the 40th iteration of a 80 iteration for loop.

I am using the external multimeter and the mux as you have suggested with the channel vi. It works great for the 40 channels on the first mux module, but I have two. I need to access the second slot automatically once the first slot's channels have been measured. I have tried boolean comparisons and case structures but they won't work properly for me. Any guidance you could give would be greatly appreciated.

Thanks,
Baird
0 Kudos
Message 1 of 3
(2,680 Views)
If you compare the iteration to greater than or equal to 40 and place the slot number inside of a case statement (False = 1, True = 2), it should work.
Message 2 of 3
(2,680 Views)
Mr Knutson,

This answer is exactly what I was looking for. However, I discovered how to do this before you had a chance to respond. I did it exactly the way that you described it.

Thanks again, I may be calling on your expertise in the future no doubt.
Baird
0 Kudos
Message 3 of 3
(2,680 Views)