04-29-2009 12:29 PM
Hi folks!
I have it a snag in my code, hopefully a new pair of eyes will shed some light on the issue. I am trying to output a digital word in one line (red highlight in picture attached), however I also want to output a digital waveform (kinda of a pulse train) in another line (blue highlight). The problem is that I want the digital waveform to be the timing source for the digital word output (as seen in picture)..But LabVIEW 8.5 gives back an error report saying that I can't output the digital waveform and use as a timing source....
I am open to suggestion to work around this.
Cheers
P.S. : I have attached the picture and the vi
04-30-2009 08:05 AM
05-02-2009 11:42 AM
Hi Rsilva,
Which board are you using? On most boards, you won't be able to run 2 digital output tasks simultaneously (because there is only one clock circuit on the board). So if you want to generate 2 digital signals simultaneously, you have to put them in the same task (and they will use the same clock).
One thing you can do is generating a pulse train with the counter on your board and use this signal as the clock for your digital signal generation.
(see example in LV: Multi-Function-Ctr Pulse Train Generation for AI Sample Clock.vi )
Best regards,
05-03-2009 06:13 PM
Yes, I want to output the pulse train in one channel and use it as (or use the same clock) to output the digital word, so they are in sync.
Isn´t that what I am doing in my VI?? Because LabVIEW gives back an error....
Any suggestions how to go about it?
I am using a NI-USB-6289 board. I will also check the example you suggested.
Thanks.