LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

why is it the NI elvis writer does not compare properly?

Solved!
Go to solution

I  am trying to write the signal from line 0, line 1, line 8 and line 9 so i have 2 NI Elvis writer as i am operating two different circuit. I am trying to compare if its 1/0 in lines and it line 0 corresponds with line 8 (while line 1 with line 9), a non physical LED will light up to indicated the value matches. It only light up when i press onthe button for line 0 and line 8. but when i press the next buttons for each DO lines control, the LED doesnt light up.

 

Please help! >< 

0 Kudos
Message 1 of 5
(2,472 Views)

The reason the LED only lights for lines 0 and 8 is because of the Index Array functions on the diagram.  You are only indexing element 0 of each of the arrays, which correspond to line 0 and line 8, respectively.  In order to see the results for lines 1 and 9, you would need to use element 1 as the index.

 

Alternatively, you could just wire each array directly to the AND function and it will return an array of all 8 lines and the result of an AND.

Donovan
0 Kudos
Message 2 of 5
(2,452 Views)

Thanks! but how do i wire each array directly to the AND function? 

0 Kudos
Message 3 of 5
(2,437 Views)
Solution
Accepted by topic author txrxmo

Sorry, I don't have the elvis drivers, so I had to comment them out, but here's one possibility...

Message 4 of 5
(2,433 Views)

Thank you very much! i shall try it now. 😃

0 Kudos
Message 5 of 5
(2,416 Views)