11-14-2008 04:25 PM
I am using a USB-6009 to read an anlog input as waveform and update an indicator (waveform chart). Occasionally my waveform chart will clear itself and I have verified this is due to the current timestamp being equal to the previous timestamp. I understand this makes the chart clear but why does the Daqmx Read produce two points with the same timestamp?
I am using the Daqmx Timing function to setup continuous acq, in the range of 100-500 Hz. My Read function is in a loop with a Wait for Next ms Mulitple equal to 10ms, and I read all available samples in the buffer.
Thanks
Dan
11-17-2008 09:45 PM
11-18-2008 08:28 AM
DBerry wrote:I am using a USB-6009 to read an anlog input as waveform and update an indicator (waveform chart). Occasionally my waveform chart will clear itself and I have verified this is due to the current timestamp being equal to the previous timestamp. I understand this makes the chart clear but why does the Daqmx Read produce two points with the same timestamp?
I am using the Daqmx Timing function to setup continuous acq, in the range of 100-500 Hz. My Read function is in a loop with a Wait for Next ms Mulitple equal to 10ms, and I read all available samples in the buffer.
Thanks
Dan
This sounds strangely familiar. I think I recall reading of a bug that fits your description. So first-off, make sure you have the latest a greatest version of the driver.
If you are using the latest version then this may be a bug. Post your code so we can verify.
Ben
11-18-2008 09:01 AM - edited 11-18-2008 09:03 AM
What Ben said. I was off base thinking you are just looking at data. Indeed the timestamp should change.
I recall the issue with repeated timestamps being with RT and/or Shared Variables. At least I know I had plenty of repeated timestamps on RT using SV.
11-18-2008 12:26 PM
Thanks for the replies.
I will update the drivers and see if my problem is solved. I have extracted the problem section of code and uploaded.
I am on a Windows (non RT) system and use no shared variables.
Thanks
Dan
11-18-2008 12:48 PM
Hi Dan,
You did not mention the version your are using so I'll asume you have checked this.
If you replace the "wait Until Next ...." with a simple "Wait ms Timer" with a delay of 100 ms does the problem change? I suspect the actual loop rate is slower than you expect so the delay ends up being a noop. Check the error cluster coming out the the DAQ read to see if you are getting a warning.
Ben
11-18-2008 01:46 PM
Ben,
I am using LV 8.2.1,Daqmx 8.5.0.f5, but I am in the process of updating to Daqmx 8.8
I tried using a Wait ms = 100ms and still get some equal timestamps, but no error from the erro cluster
Thanks
Dan
11-18-2008 03:18 PM
Ben,
I still have the problem with the new drivers installed (8.8). Is it possible the device is faulty?
Is the timestamp set by the device clock, and if so I guess I don't understand how it could be having issues with such a low sample rate (100-500 Hz). I have also used this method in several other applications with similar devices without fault.
Dan
11-19-2008 05:32 AM
Now is the time to wait for NI support to rely to this thread.
I see nothing obvious in the code let them investigate.
Ben
11-19-2008 09:27 AM
Hello All,
I am looking into this issue.....will hopefully have some sort of explanation shortly.