06-30-2016 10:55 AM
The question is simple. I don't know if there is a command (similar to "..") to represent a group of cases of a true table into a "Case structure".
I attach an example in LV2011 in zip (it has been impossible to upload the vi!!)
Vicen
LabVIEW 2010/2011 with WinXP/10
Solved! Go to Solution.
06-30-2016 10:58 AM
You could do this with VI scripting, but you'll have to weigh whether or not that's worth your time. It depends on how often you plan on doing this or how big your table will end up being.
This article may prove useful.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
06-30-2016 11:12 AM
For the sitution where we only have a handful of booleans I like to cast as an enum to make it esy to decode the combinations.
Ben
06-30-2016 11:18 AM - edited 06-30-2016 11:18 AM
@Ben wrote:For the sitution where we only have a handful of booleans I like to cast as an enum to make it esy to decode the combinations.
Ben
I like this. I am going to use this now.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
06-30-2016 11:18 AM
Thank you, James and Ben. I'll work with these two possibilities.
Answering the question... I suppose there isn't a "magic command", is it?
Vicen
06-30-2016 11:21 AM
Try ...
"First value in range" ... "last in range"
Ben
06-30-2016 11:26 AM
@Ben wrote:"First value in range" ... "last in range"
In this case, I think that would only work if he reversed the array. Currently the "Do Not Care" are in the MSb. Reverse the array and they go into the LSb, making the range for the case structure possible.
06-30-2016 11:32 AM - edited 06-30-2016 11:32 AM
Here's an example of reversing the array and then using the range capability of the case structure. The snippet has all of the cases configured if you want to use it. Do note that I have not tested it.