06-27-2018 01:22 PM
I believe I've done that, feel free to correct me if I'm wrong. Do the trailing zeros stay there? The documentation for the DAC says that data is sent in 24 bit cycles, and the VI only accepts U8 arrays.
06-27-2018 01:42 PM - edited 06-27-2018 01:43 PM
06-27-2018 01:53 PM
You're right, the VI is not connected, but the VI will be connected to Array and Array 2. I am preemptively troubleshooting by monitoring the values stored in Array and Array 2. I am still unsure if whether or not the data will be input into the arrays correctly (specifically, I am concerned about trailing and leading zeros).
- I will change the Rube code part.
- Other case (False) is empty, VI not finished.
- will remove local variable and just insert the wire.
- will remove the 7s. But yes, it is an 8x8 array.
- outside the cropped area is the picture I posted before, just going from the slider value to a 12 bit number with 4 trailing zeros.
Thanks
06-27-2018 02:00 PM
If the array is 8x8 and you only want to use 7x7 of the data, you need to wire N.
If you want to watch the data for verification, maybe you should add a small wait (e.g. 0.5-1 second in the inner loop. Binary data is just that, zeroes are a cosmetic property of the indicator. Format the elements of the output arrays (U8 array) as binary with 8 digits and zero-padding (%08b)to more easily see what it contains when troubleshooting.
06-27-2018 02:09 PM
@lmcohen2 wrote:
Do the trailing zeros stay there?
Why would a 16-bit value suddenly drop bits? There are 16 bits allocated specifically for that value.
06-27-2018 02:12 PM
Ok. When I do that, the data output into the arrays is displayed on the front panel as I would like it to be sent to the Aardvark. I was unsure if this was is way it will be sent to the VI, but crossrulz answer gave me some reassurance that it is.
I am not a very experienced programmer, so I am just trying my best to understand it all. Thanks for all the responses and help, though.