03-19-2019 02:50 PM - edited 03-19-2019 02:52 PM
Hello Everyone!
I am simulating a NI9189 Chassis with a NI9425 module. I am trying to read all the digital inputs and display their states to the user by converting the array of digital data to a cluster and then unbundling it by name.
For some reason it is only showing me the first 8 digital channels and not the remaining 8 channels that I specified in the task. It happens when I convert the digital array to a cluster. If you look in the Block Diagram you will see that "data[8]" continuously repeats itself and does not show the next digital data point in the array. Does anyone have any idea why this is and how to fix it?
Attached are images and my code.
Thank you so much!
Solved! Go to Solution.
03-19-2019 03:42 PM
You need to change the cluster size. Right click on the array to cluster VI and set the cluster size to 16:
03-19-2019 03:44 PM - edited 03-19-2019 03:45 PM
You are actually seeing the first 9 channels.
Better yet. Don't use Array to Cluster at all.
You should be using Index Array when you want to show the elements of an array.
03-19-2019 08:37 PM
Thank you this worked wonders
03-19-2019 08:39 PM
You are right about the 9 channels. I was typing this quickly and forgot about zero indexing.