12-03-2012 07:57 PM - edited 12-03-2012 07:58 PM
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
12-03-2012 08:29 PM
@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?
12-04-2012 02:25 AM
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?
12-04-2012 02:42 AM
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:
You will need to define the task/channels and wire up error handling.
12-04-2012 05:41 AM
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?
12-04-2012 07:16 PM
Yes, you would substitute the DAQ Write with your DAQ Assistant, making sure to choose the same parameters.