取消
显示结果 
搜索替代 
您的意思是: 

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

0 项奖励
1 条消息(共 14 条)
5,452 次查看
yes
Richard






0 项奖励
2 条消息(共 14 条)
5,450 次查看
just not as a case selector
0 项奖励
3 条消息(共 14 条)
5,443 次查看
How is that achieved?  I have a waveform that is being coverted into a 1D boolean. 
0 项奖励
4 条消息(共 14 条)
5,442 次查看
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 项奖励
5 条消息(共 14 条)
5,440 次查看
Oh I need it to be a case selector.  Is there a way to continuously have the waveform enterend into the case selector?
0 项奖励
6 条消息(共 14 条)
5,439 次查看
Put a for loop around the case structure 极度高兴的表情

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 项奖励
7 条消息(共 14 条)
5,434 次查看
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 项奖励
8 条消息(共 14 条)
5,429 次查看
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 项奖励
9 条消息(共 14 条)
5,427 次查看
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
下载全部
0 项奖励
10 条消息(共 14 条)
5,416 次查看