ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
04-25-2012 10:58 AM
I need feed the same data in a loop into DO lines. These lines should change between two sets of lines from iteration to itetation (you may think there is only two lines to toogle between) i.e. on the first interation the data are fed into first line, then into second, then again into first e.t.c.
What is the most concise way to accoplish this? I'm using DAQmx.
04-25-2012 11:11 AM
One method would be to use the iteration as a switch, divide by two and switch a case off the ramainer ( = 0 or := 0)
Another would be to use a shift register boolean, with an invert inside the loop, to toggle a case, the cases route the lines.
04-25-2012 11:17 AM - edited 04-25-2012 11:18 AM
Like this?
04-25-2012 11:31 AM
What you are talking about isn't a problem here. My question is about how to configure task(s) to be able to use methods similar to mentioned by you, because there can't be several tasks of the same type. To get around this restriction I should combine all the lines in one task, but the solution seems to be quite unwieldy because it forces to generate additional waveforms to achieve desired effect. I'm looking simplier solution.
04-25-2012 11:42 AM
Yes. But, since the dataare not changed in my case , Is it necessary to write data in the loop?