01-23-2016 08:36 PM - edited 01-23-2016 08:37 PM
hvazquez wrote:
I have one last question before closing this discussion. I attempted to add a secondary switch, however, both signals (LEDs) and counter behave in the exact same way.
How can I have the counters be independant from each other? I also tried to add a png to this message, however, for some reason I am not able to, so I attached the code.
Sounds like this is what you are looking for. The numeric array is keeping all of the counts. For display purposes, you could just use the single array or use Index Array to pull out the individual counts you care about.

01-23-2016 09:56 PM
Hi crossrulz, thanks for the feedback.
I tried to write the code like the one you uploaded the photo of, however, the connections to both of the arrays are shown like broken wires, I'm I missing something?
01-23-2016 10:08 PM
01-23-2016 10:11 PM
I apologize, I forgot to attach it. Also, thanks for the clarification.
01-24-2016 12:27 AM
The SW1 and SW2 indicators are booleans, not array of boolean like you created. Likewise for the numeric indicators for the rising edge counts.
(If you turn on context help and hover over the broken wires, it will actually tell you why the wires are broken.
)