LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Arduino N channel read

Hi everyone,
below is the part of my project handling I/O pins of my Arduino mega. I encounter a problem when trying put the "output values" of digital read.vi into a cluster. No matter how many pins i read into the DI channel, it always ends up being 9 elements in the output. In this example I am trying to read 21 pins ("Keyboard" consists of 21 elements) into the digital read (the two read VI's combined).

Does anyone know what I am missing?

0 Kudos
Message 1 of 3
(306 Views)

Hi mezzem,

 


@mezzern wrote:

Does anyone know what I am missing?


Yes: read the (full) help for the ArrayToCluster function.

After reading you can configure this specific function as required…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(259 Views)

My god.. And I used the whole day trying to figure this out... 😄
Thank you so much!

0 Kudos
Message 3 of 3
(239 Views)