Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with example vi and 6229

I'm trying to run the Write Dig Chan-Ext Clk.vi, under LabView 8.2.1, using a PCI-6229 board. I have Dev1/port0/line0:7 as the output channel, /Dev1/ai/SampleClock as the clock source, 1000 Hz sample clock rate, and 1000 samples. It appears to run fine in simulation mode, but when writing to the actual hardware I get the following error:

Error -200560 occurred at DAQmx Wait Until Done.vi:2
Possible reason(s):
Measurements: Wait Until Done did not indicate that the task was done within the specified timeout.

According to the example finder, this example should work with this board. The timeout is set to 10 sec. What am I doing wrong?

Jolinda


0 Kudos
Message 1 of 3
(3,472 Views)

Jolinda,

 

This particular example is made to use a PFI line with an external clock.  If you want to use the ai/SampleClock then you must trigger the clock to start with the ai/StartTrigger.  This information can be found in the M-Series User Manual page 4-30, first paragraph. You can accomplish this by setting up a dummy Analog Input task, which will trigger the ai/SampleClock to start.

 

 

 

 

 

 

 

 

 

Regards,

 

Ryan N



Message Edited by Ryan N. on 02-12-2008 03:37 PM

Ryan N
National Instruments
Application Engineer
ni.com/support
0 Kudos
Message 2 of 3
(3,456 Views)
Ah, now I get it. Thanks!
0 Kudos
Message 3 of 3
(3,450 Views)