01-08-2011 05:25 AM
I have built a code which sent 14 digital values to the DO of my DAQ card. The change of digital code happened manually by buttons.
Now I wanted to automatise that so I had to change my code accordingly.
I attached a VI that shows the old solution on the left and the new one on the right. The first number goes from 0 to 60, the second one from 0 to 4.
The question is whether both the solutions deliver identical results.
Thanks,
Krivan
01-08-2011 02:07 PM - edited 01-08-2011 02:08 PM
Why don't you just make a simulation and try for yourself? 😉
In principle it's close, but depending on the desired outcome you might have to reverse the two boolean arrays. I am not sure how the bits are numbered. So remove the "reverse array" if needed. I don't know your specifications.
Trimming the arrays is most easily done using reshape array.
Combining the arrays can be done in one step.
Here's a quick draft... (LV 2009)
01-09-2011 04:29 AM
thanks for the suggestions altenbach! It did help a lot.