02-23-2017 06:31 AM
Hi all,
I am a beginner in labview. I am using a cDAQ-9188 and since I transfered a VI from lv2014 to lv2016 which initialize the DAQ, the sample clock is not initialized anymore.
Is this a known bug? How can I go around it?
Thank you for your help!
Solved! Go to Solution.
02-27-2017 05:19 AM
Hello qqun,
can you post the code instead of the picture?
What happens if the enable disable structure part is changed?
Is the external clock connected?
What is the error number you get?
03-02-2017 11:35 AM
Hello Allexander,
Here is the code. The external clock is connected.
The error says that the sampling rate is too high for the DAQ to play out a waveform (OnBoard clock is 20 or 80 MHz whereas the DAQ only supports 25kHz). I will look up the exact error number.
If I change the enable structure, I get the same error.
The only case I could make it work was by initializing the SampleClock directly with the external clock, not having the enable structure and setting the external clock to a 25kHz sampling rate.
But I could not make the enable structure change the SampleClock properties.
Thanks and best regards,
Laetitia
03-03-2017 01:43 AM
Hello qqun,
this workaround is working on your side, if i understand you correct
Is this okay for you or must the external clock devided, because they is faster?
03-03-2017 02:26 AM
Hello qqun,
with this setting in the screenshot from me, the divider will be set automatically in the driver, the external clock should be devided, or you can disable the DAQmx Timing vi and only use the properties, like in this way, then also the devider will be set automatically.
03-03-2017 02:40 AM
Hello Duffy2007,
Thank you for your answer!
Yes, the workaround of the first screenshot work in the sense that the VI does not complain anymore. However, the data are now really strange. It used to work with the divider and the data were fine.
I will try using the property node instead of the VI as you suggested.
Thank you and best regards,
Laetitia