Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple digital Outputs are not working while programming using internal clock

*Facing problems while using NIDAQ 6259 (m series) with ANSI C in windows 2000*

I am attaching an ANSI C program, which outputs two digital signals based on certain conditions.
I have configured the digital output channels using
DAQmxErrChk
(DAQmxCreateDOChan(taskHandle1,"Dev1/port0/line0:1","",DAQmx_Val_ChanPerLine));
and oututting the values in a loop using onboard clock using
DAQmxErrChk
(DAQmxWriteDigitalU32(taskHandle1,1,1,10.0,DAQmx_Val_GroupByChannel,data,NULL,NULL));

My problem is this:

While checking the outputs at the line 0 and line 1 of port 0, I am
getting the outputs only on line 0, while line 1 does not show the output.
I tried to configure it also as "Dev1/port0/line1:2". In this case, it is
not showing any of the outputs. The change of ports also does not seem to
be working.

Please guide me asap.

Thank you.
0 Kudos
Message 1 of 2
(3,032 Views)
shukla,

Please try running the attached code.  It should set lines 0 and 1 of Dev1/port0 low and then high in an alternating pattern.  I have tested this code and it worked on my PCI-6251, so it should work for you.  Try to compare the basic structure of your code to this simple example.  This may help you to find what is going wrong. 

Best regards,
0 Kudos
Message 2 of 2
(3,022 Views)