04-25-2024 01:25 AM
I have a program shown above, whose output i want to send to an oscilloscope through daq assistant. when i connect the array/waveform to daqassist, LabVIEW adds a convert to dynamic data express, whose output is also shown. But I get a buffer error for the daq assistant, what settings should I use to fix this. PLEASE HELP. p.s. I know my program is also inefficient, tips to make it better is also appreciated, thank you.
04-25-2024 01:40 AM - edited 04-25-2024 01:42 AM
Hi mahe,
@mahe3173 wrote:
when i connect the array/waveform to daqassist, LabVIEW adds a convert to dynamic data express, whose output is also shown. But I get a buffer error for the daq assistant, what settings should I use to fix this.
I know my program is also inefficient, tips to make it better is also appreciated, thank you.
Your VI is very inefficient: to make it better you should read this and use plain DAQmx functions!
I would read the error message as "you write new samples too often"…
(When attaching code from recent LabVIEW versions please downconvert: File->Save for previous. Most recommend LV2021 or older, I prefer LV2019.)
04-25-2024 05:55 AM
Thank you so much for the insights.
my issue is that I don't understand how to output a set of values in an array through daq assist. so far I've only sent out waveforms generated by the simulate signal. Ive attached the LV 2019 file below. Thank you!
04-25-2024 06:04 AM - edited 04-25-2024 06:06 AM
Hi mahe,
@mahe3173 wrote:
- I'm not sure I understand your question of which sample rate i want to use.
In the DAQAssistent you activated the checkmark to use the timing of the waveform signal, but you don't provide a waveform in your VI. All you create is an array of samples, with no timing information! The DAQAssistent most probably handles your array as a waveform using a dt of 1, so it outputs the samples at 1Hz…
What is the desired sample rate in your application?
When you create 20 samples per iteration: how long should it take to "play" those samples over the AO channel?
Again: using DAQmx functions and waveform wires is much simpler than understanding DDT wires and what they do to your data!