11-19-2013 08:03 AM
I have a VI which converts a digital signal into a speed based on the number of pulses per revolution. What I would like to do is now output that numeric value as a scaled 0-5V channel. I have tried to use the DAQassistant as with all of my other analogue outputs but it gives a buffer error. I know it can't be that hard to implement, can someone point me in the right direction...
Thanks,
Richard
11-19-2013 08:06 AM
Could you post your code? Is the buffer error that it's too small?
11-19-2013 08:10 AM
Hi.
Yes the buffer is too small. Attached is my VI.
Thanks.
11-19-2013 08:12 AM
could you save it in 2011?
11-19-2013 08:19 AM
I only have 2013 I'm afraid...
11-19-2013 08:24 AM - edited 11-19-2013 08:25 AM
@r.youden wrote:
I only have 2013 I'm afraid...
File menu >> Save for Previous Version.
11-19-2013 08:28 AM
Thanks 😉
Files are attached save under version 11.0/
11-19-2013 08:36 AM - edited 11-19-2013 08:40 AM
Your samples per channel is too high.
Or you can configure your input buffer size, with use of the daqmx vi provided.
11-19-2013 08:48 AM
How would I go about reducing the number of samples per channel?
Thaks for your help
11-25-2013 08:06 AM
Hi Youden,
Have you tried averaging your samples of frequency then outputting that as a hardware timed single point value to an analog output channel? This should do the I/O slow enough to not cause the DAQmx buffers to fill.
You could try taking 1000 samples of pulse frequency from the counter, averaging that with the Mean VI, then outputting that to an analog output channel setup for hardware timed single point output.
Best Regards,