LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to update numeric indicator with digital input

Solved!
Go to solution

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.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 21 of 25
(1,501 Views)

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?

0 Kudos
Message 22 of 25
(1,473 Views)
First, it's a SNIPPET, not a photo. A snippet can be dragged to a block diagram. Second, of course you missed something bit since you did not attach what you did, it's impossible to say where you went wrong.
0 Kudos
Message 23 of 25
(1,463 Views)

I apologize, I forgot to attach it. Also, thanks for the clarification.

0 Kudos
Message 24 of 25
(1,453 Views)
Solution
Accepted by hvazquez

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.  Smiley Wink)

Message 25 of 25
(1,422 Views)