LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Blink LEDs in a DAQ

Hey guys,

so what I was thinking to do is to make a case structure and put the sub vi for the DAQ inside.

And outside the case structure keep inputting true and false at a frequency so DAQ goes on and off.

is there any element in labview that gives true and false together and automatically changes its value?

Thanks

Mathew

0 Kudos
Message 1 of 6
(4,108 Views)

@Mathew999 wrote:

Hey guys,

so what I was thinking to do is to make a case structure and put the sub vi for the DAQ inside.

And outside the case structure keep inputting true and false at a frequency so DAQ goes on and off.

is there any element in labview that gives true and false together and automatically changes its value?

Thanks

Mathew


What do you mean "so DAQ goes on and off"? Do you mean you want to write a 50% duty cycle binary signal to a DAQ card? If so, you don't need the case statement, Just toggle the boolean each iteration of a for/while loop. And there are better ways such as setting up the timing for the DAQ and writing a waveform (digital waveform, 1 channel N samples), otherwise you will get jitter in the output signal.

 

Can you specify more details on what you are trying to accomplish?

0 Kudos
Message 2 of 6
(4,100 Views)

In my DAQ I have 8 LEDs, I want to blink those LEDs. i can oyay make it light now, so I was thinking of toggling on and off the chase structure which contains the DAQ sub VI to light the LED. Is it clear now?

0 Kudos
Message 3 of 6
(4,081 Views)

Toggling the case structure doesn't make sense. You want to toggle the signal that's going into the DAQ Write. For that you would use a For loop or While loop. Since you have 8 LEDs, you will want an array of 8 booleans. Something like this:

 

BlinkLEDs.png

 

You will need to define the task/channels and wire up error handling.

0 Kudos
Message 4 of 6
(4,076 Views)

so where do i connect my DAQ assistant? I am using DAQ Assistant to light my LED in the DAQ. Or is it like if using DAQ write , no need to use DAQ Assitant?

0 Kudos
Message 5 of 6
(4,067 Views)

Yes, you would substitute the DAQ Write with your DAQ Assistant, making sure to choose the same parameters.

0 Kudos
Message 6 of 6
(4,038 Views)