LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

turn on and off an led depend on user input value

1.jpg

Hello, i want to turn on and off a LED for given time. i want to use digital output( all my analog inputs are used). as you can see it gives error (source is boolean and sink is 1-d array of boolean). can u give me a solution. timing range is big ( minutes). I just need to turn on and off the LED for given time using any method.

thanks 

0 Kudos
Message 1 of 3
(2,667 Views)

Your daq assistant will need to be configured for a single line instead of a port, then the input will not be an array (I could be wrong I dont use express vis but setting up a DO task I would set for write line).

 

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 2 of 3
(2,660 Views)

The way you have the i < a value and the i > a value, it looks like you could simplify by using the In Range and Coerce function.  It will give a boolean output that tells when the input is in range of the other two inputs.

0 Kudos
Message 3 of 3
(2,655 Views)