06-26-2024 10:20 AM
Hello,
I am trying to use the onboard clock of my crio 9045 to acquire voltage input but keep getting this error message
I should be able to use the clock. In the project explorer I clicked deploy all as well. Not sure why this is being a pain. I am deploying the code via LabVIEW Real Time
If anyone can help that would be great.
Thank you
Solved! Go to Solution.
06-26-2024 11:02 AM
Short answer: you can probably leave the 'source' input unwired in your call to DAQmx Timing and let DAQmx do its default thing.
Longer answer: that "default thing" will use a high speed internal "Sample Clock Timebase" (possibly even the 10 MHz cRIO clock you tried) to divide down and derive the 100 kHz "Sample Clock" that you want for this acquisition. The call to DAQmx Timing wants you to specify the source of the actual "Sample Clock" signal, not the timebase from which it gets derived.
Leave the source unwired but continue to specify your desired 100 kHz for the rate. DAQmx will handle the underlying details (assuming your DAQ device is capable of 100 kHz sampling).
-Kevin P