We're tryign to use a PCIe-6363 to do some waveform outputs. Basically, we have 32 synchronous serial devices (SPI), and we're attempting to control them all in parallel. We're building the serial stream, and writing it out Port 0, which is working.
Now we're attempting to export a clock, and that's more challenging...We figured that we could export the doSampleClock or doSampleClockTimebase to a PFI port to get that done. Those are generating pulses (so it just does a small pulse at the given time, not a typical clock square wave -- that's expected, I believe? Or is it not?).
So, I think that we need to enable a counter, set it to the right frequency and duty cycle, use it for the do task, and then also export it to a PFI, right? Is that possible? We're hitting some serious brick walls in our attempt to do so, and there are just a lot of various functions calls and internal names and clocks, etc that are giving us a tough time. What's the magic combination here? Any help would be appreciated!
tmp=NI.NI_6363.DAQmxCreateDOChan(taskHandle,"Dev1/port0","hi",NI.NI_6363.DAQmx_Val_ChanForAllLines); tmp=NI.NI_6363.DAQmxCreateCOPulseChanFreq(taskHandle2,"Dev1/Ctr2","",NI.NI_6363.DAQmx_Val_Hz,NI.NI_6363.DAQmx_Val_Low,0.0,25.00,0.50); tmp=NI.NI_6363.DAQmxCfgImplicitTiming(taskHandle2,NI.NI_6363.DAQmx_Val_ContSamps,1000); tmp=NI.NI_6363.DAQmxCfgSampClkTiming(taskHandle,"/Dev1/Ctr2InternalOutput",100.0,NI.NI_6363.DAQmx_Val_Rising, NI.NI_6363.DAQmx_Val_ContSamps, 1000 );
//also have tried exportsignal, connectterms, and other functions. What's the preferred way here? tmp=NI.NI_6363.DAQmxSetExportedSampClkOutputTerm(taskHandle,"/Dev1/PFI1");