08-26-2013 08:00 PM
08-26-2013 08:18 PM
If you say so, please take a look. I'll be glad if there would be a way to fix it. Thank you.
08-26-2013 08:39 PM
08-26-2013 08:56 PM
That I don't know. Would you explain what is hidden code and where to find, please?
And unmodified VI examples don't fit with the circuit I'm using, so the result in LabView isn't correct. Thank you.
08-26-2013 09:39 PM
08-26-2013 10:30 PM
In your original code just remove START function (the one with Green play button symbol) and then try running your code... The issue could be, as you have a triggering setup, this code will wait for that specific trigger to happen before starting reading the samples (from device to software). But when you choose to START the task the acquisition of samples starts and it starts filling the CIRCULAR BUFFER..Even in this situation your code is waiting for Trigger to happen and as soon as the specified Trigger event happens, 'DAQmx Read.vi' tries to read overwritten samples (at CIRCULAR BUFFER) and throws an error...
You might want to check this... I don't have hardware so can run your code only with SIMULATED device.
08-26-2013 11:07 PM
@moderator1983 wrote:
In your original code just remove START function (the one with Green play button symbol) and then try running your code... The issue could be, as you have a triggering setup, this code will wait for that specific trigger to happen before starting reading the samples (from device to software). But when you choose to START the task the acquisition of samples starts and it starts filling the CIRCULAR BUFFER..Even in this situation your code is waiting for Trigger to happen and as soon as the specified Trigger event happens, 'DAQmx Read.vi' tries to read overwritten samples (at CIRCULAR BUFFER) and throws an error...
You might want to check this... I don't have hardware so can run your code only with SIMULATED device.
I've tried as you adviced, but it won't work for me. I think I should adjust my system for DAQ to sample properly.
Thank you for your concern.
08-27-2013 09:27 AM
@0utlaw wrote:
Hello Azurenight,
The 6259 is a multiplexed M-series DAQ card, meaning that it isn't possible to sample each signal at the same instant, rather the channels are all sent through the same ADC and must be sampled in order. More information on this can be found here:
LabVIEW Help: Multiplexed Versus Simultaneous Sampling
http://zone.ni.com/reference/en-XX/help/370466W-01/mxcncpts/multisimulsamp/
It might still be possible to get the data you need with the card you have- could you provide more information on the maximum allowable delay between samples on different channels?
If you need *actual* simultaneous sampling, you'll likely need different hardware.
Regards,
I've fixed the error based on Tom's advice. My DAQ could not sample all four signals instantly,
so I adjusted my circuit to provide the output signals a bit longer and to send the trigger signal by a wide margin.
As my DAQ was able to take enough time for multiplexed sampling, the data were acquired properly.
Thank you.