02-23-2022 12:17 PM
I am using a PXIe-6545 to acquire 16 bit data. The hardware engineer, for whatever reason, didn't order the bits correctly. So instead of having DIO16 = LSB, DIO15 = LSB+1, ... , DIO31 = MSB, the bits are all random on DIO16-31. I am able to pull all the data from the fixture just fine, but the data bits are all out of order. I am basically using the HSDIO Continuous Acquisition - Stream to Memory.vi in the example to get my data. Is there a quick way to modify the VI so that I can put the bits in the correct order? I'm dreading having to re order all of the data manually. I was hoping that if i just listed the channels in the order I wanted it would order them that way. It doesn't seem to have worked.
Thanks
02-23-2022 12:19 PM
It depends on the order in which you initialized the Acquisition session. Could you please share the connections you have and the actual VI you use?
02-23-2022 12:37 PM
I used the attached VI. The 6545 is connected with the standard NI cable which goes to a PWB fixture. The last 16 channels, (DIO16-31) are wired to a surface mount connector. They are out of order, order should be 29, 19, 18, 20, 31, 21, 17, 22, 26, 23, 30, 24, 28, 16, 25, 27 (LSB to MSB).
02-23-2022 01:00 PM
Try using the channel order you listed in your post (and also reversed) instead of 16-31