Discussion:
no output with external clock on PFI2...
(too old to reply)
fabienClere
2008-05-21 14:10:10 UTC
Permalink
Hi,I would like to generate digital data with external clock.so I use PFI2 for the external clock, and send data on Port0, but nothing is output on port0.I use:DAQmxCfgSampClkTiming (hTask, "Dev1/PFI2", 1000, DAQmx_Val_Rising, DAQmx_Val_FiniteSamps, 1000);if replace Dev1/PFI2 by "onboradclock" the data is outputing.I check with an oscillo an I show the clock on PFI2.The functions I use are:DAQmxCreateTask("",&hTask);DAQmxCreateDOChan (hTask, "Dev1/port0_32", "", DAQmx_Val_ChanForAllLines);DAQmxCfgSampClkTiming (hTask, "Dev1/PFI2", 1000, DAQmx_Val_Rising, DAQmx_Val_FiniteSamps, 1000);DAQmxWriteDigitalU32 (hTask, 2, 0, 10.0, DAQmx_Val_GroupByChannel, data, NULL, NULL);DAQmxStartTask(hTask);DAQmxStopTask(hTask);any help will be welcome, thanks.Fabien.Message Edité par fabienClere le 05-21-2008 08:51 AM
Jérémy Marliot
2008-05-27 17:10:20 UTC
Permalink
Hi Fablien,
 
May you give us a little more informations. Which device have you got to make your acquisition? Did you try to import the external clock using another PFI line? Did you try any example using external clock?
 
Regards,
fabienClere
2008-06-02 08:40:08 UTC
Permalink
The board is a DIO32HS. I try some example and they don't work also... so I check the Connector, and there was a probleme on the interface board connected to to the DIO.Now it's work fine.Thanks to have take a time to answer.Fabien.
Loading...