ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

9375 RSI shared variable array data order

I'm using a 9375 (16 DI, 16 DO). I plop the RSI module refnum on the block diagram, wire it into a Scanned Variable Read VI, give it a Boolean Array data type and voila, I'm reading all 32 bits (the outputs are in read mode). This seems like a great idea eliminating serpentine error wire mess if you're just reading all the shared variables.

 

However, instead of a logical data order they are scrambled. DO2 shows up at bit 4 of the array, D01 bit 8 and D03 bit 11. I could go through all thirty two bits, but I was wondering if there is a logical sorting to these values or will they change over time and/or software changes?

0 Kudos
Message 1 of 3
(714 Views)

Hello Stuart,

Can you please attach a screenshot of the output/code? I suspect the issue might be related to the pinout, but maybe the output can help us decipher the origin.

Messenger2

If someone's answer helped you find a solution or provided insight into an issue, the best way to show your appreciation and acknowledgement is by giving them a kudo or marking their reply as a solution.
0 Kudos
Message 2 of 3
(623 Views)

StuartWilson_0-1744839448427.png

The shared variables are in order from top to bottom, DO0 to D015. On the front panel, Data Write is a 16-element array and Data Read is a 32-element array. When I toggle each of the 16 elements of Data Write they map to Data Read like this (the ones in red are DI bits):

StuartWilson_1-1744839887830.png

 



0 Kudos
Message 3 of 3
(579 Views)