Hi all,
I continually attempted to get a clock frequency of 20 MHz from the internal clock on the PCI 6534 board, whilst trying to regenerate. I could get a clock freq of around 3.3 MHz with the signal regenerating continuouslly as I wanted, yet as the frequency was increased above 3.3 MHz the signal would not regenerate continuouslly, but regenerate for a little amount of time and then stop on the last peice of data of the array to be transfered.
I then tried an external clock to see if it was an internal clock problem and this operated in the same way with the signal dropping out at around 3.3 MHz. I am using all ports with ports 0-1 as a 16 bit output port, port 2 as a 8 bit output port and port 3 as a 8 bit input port. I am also wrting my code in Borland C++.
I have configured the board to regenerate with the following code. I have set the number of samples per sec to the max of the external clock which is 10 MHz at the moment, and I have the external clock being input on PFI2 (pin2), as seen in the code below.
DAQmxErrChk (DAQmxCreateTask("",&taskHandle1));
DAQmxErrChk (DAQmxCreateDOChan(taskHandle1,port1,"",DAQmx_Val_ChanForAllLines));
DAQmxErrChk (DAQmxSetWriteRegenMode(taskHandle1, DAQmx_Val_AllowRegen));
DAQmxErrChk (DAQmxSetSampTimingType(taskHandle1, DAQmx_Val_SampClk));
DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandle1,"/Dev1/PFI2",10000000.0,DAQmx_Val_Rising,DAQmx_Val_ContSamps,10000000));
If anyone could assist me that would be greatlly appreciated.
Thankyou in advance,
Simon