03-02-2006 07:21 PM
03-03-2006 08:58 AM
Try this (you won't be able to use the DAQmx timing VI):
Use the DAQmx timing property node and set the Sample Clock.Timebase.Source to the pin where your 100k signal is at. Then set the SampleClock.Timebase Divisor to 5. This should work
StuartG
03-03-2006 09:58 AM
03-03-2006 09:59 AM
03-03-2006 12:24 PM
03-03-2006 12:42 PM
Hi Robert-
The reason your acquisition is completing so quickly is that you're not explicitly specifying the number of samples to read with each iteration, so NI-DAQmx just tries to read whatever is buffered. In the case of your acquisition, it seems you are not buffering data as fast as you're attempting to read, so I would recommend specifying the "Samples to Read" input as the number that you want to pull from the buffer and write to file with each iteration of the loop.
It would be easier to use a finite acquisition since in essence you are really determining the number of points to acquire based on the user input. I would suggest using the DAQmx Timing VI to specify "Finite Samples" with the number of samples equal to [amount of time to acquire] * [sampling rate]. This way you only need to call the DAQmx Read once and you will pull the entire acquisition from the buffer and write to file all in one step.
Can you please let me know the error number you're seeing and attach a screenshot if possible? Thanks a lot-
03-03-2006 03:09 PM
03-03-2006 06:22 PM
Hi Robert-
The reason your app is failing with that error is because in order to use a sample clock divisor you actually have to perform a division.
If you want to sample at the full rate of your sample clock input you can simply skip the specification of an external sample timebase and just specify the sample clock source to the DAQmx Timing VI as some PFI line. If you need to switch back and forth between division and no division, I would just monitor for any changes to the sample clock specification and calculate whether a sample clock division is necessary or not. If so, you can just destroy the existing task and create a new task that uses the appropriate sample timing definition.
Hopefully this helps-
07-31-2010 04:47 PM
I am designing a custom test board for an IC that I designed. Unfortunately, today I realized that I made a mistake and should have divided down the external sampling clock on the test board. I was hoping that this trick would work for me, but unfortunately I get an error when I try this.
Error -200452 occurred at Property Node DAQmx Timing (arg 1) in Acquire - FDM 2 - 2.vi
Possible reason(s):
Measurements: Specified property is not supported by the device or is not applicable to the task.
Property: SampClk.Timebase.Rate
Task Name: _unnamedTask<15>
What I have is a 20 MHz external sampling clock (connected to APFI1) that I want to divide by 2 to use as the sampling clock (digital inputs). I am trying to use an NI-6289. Any suggestions would be greatly appreciated.
Thanks,
Drew
08-03-2010 12:55 PM
Just a quick update, it doesn't look like I can use a counter because I only need to divide by 2 not 4 (which it seems that the counter option is limited to). I really hope that this is possible!!
Thanks,
Drew