LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can a 1D array of boolean be entered into a case structure?

0 Kudos
Message 1 of 14
(5,308 Views)
yes
Richard






0 Kudos
Message 2 of 14
(5,306 Views)
just not as a case selector
0 Kudos
Message 3 of 14
(5,299 Views)
How is that achieved?  I have a waveform that is being coverted into a 1D boolean. 
0 Kudos
Message 4 of 14
(5,298 Views)
take your 1D array and wire it to the edge of the case structure.  this will let you use the data in the case structure, but it will not let you select a case based off of the entire array.
0 Kudos
Message 5 of 14
(5,296 Views)
Oh I need it to be a case selector.  Is there a way to continuously have the waveform enterend into the case selector?
0 Kudos
Message 6 of 14
(5,295 Views)
Put a for loop around the case structure Smiley Very Happy

But you should start with telling us where the data come from and what you want to do with it...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 14
(5,290 Views)
Using an array as a case selector makes me think you want to do true or false conversion, in which case you can wire a boolean array to "bool to 0,1" and get a binary array, which you can then do math on easily.
0 Kudos
Message 8 of 14
(5,285 Views)
I have a DAQ card hooked up to an optical tachometer.  With every rotation of the drum, the voltage jumps to 3.2V. 
I am using the case selector to count the number of times the voltage is over 3 to count the number of pulses. 
This will be relayed into a equation to calculate RPM, but I want this to be continuous.


0 Kudos
Message 9 of 14
(5,283 Views)
here's two options
 


edit - to get to the boolean array, you can just wire your waveform to a Greater Than primitive.

Message Edited by JeffOverton on 04-03-2008 05:05 PM
Download All
0 Kudos
Message 10 of 14
(5,272 Views)