LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Analogue Output from Numeric Value

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

 

0 Kudos
Message 1 of 10
(3,110 Views)

Could you post your code? Is the buffer error that it's too small?

---

UnCertified LabVIEW Student
Mistakes are for learning, that's why suggestions are always welcome!
0 Kudos
Message 2 of 10
(3,108 Views)

Hi.

 

Yes the buffer is too small. Attached is my VI.

 

Thanks.

0 Kudos
Message 3 of 10
(3,103 Views)

could you save it in 2011?

---

UnCertified LabVIEW Student
Mistakes are for learning, that's why suggestions are always welcome!
0 Kudos
Message 4 of 10
(3,098 Views)

I only have 2013 I'm afraid...

0 Kudos
Message 5 of 10
(3,084 Views)

@r.youden wrote:

I only have 2013 I'm afraid...


File menu >> Save for Previous Version.

0 Kudos
Message 6 of 10
(3,080 Views)

Thanks 😉

 

Files are attached save under version 11.0/

Download All
0 Kudos
Message 7 of 10
(3,074 Views)

Your samples per channel is too high.

Or you can configure your input buffer size, with use of the daqmx vi provided.

---

UnCertified LabVIEW Student
Mistakes are for learning, that's why suggestions are always welcome!
0 Kudos
Message 8 of 10
(3,063 Views)

How would I go about reducing the number of samples per channel?

 

Thaks for your help

0 Kudos
Message 9 of 10
(3,056 Views)

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,

 

James Kent | Applications Engineer | National Instruments UK & Ireland
w: uk.ni.com | ireland.ni.com
0 Kudos
Message 10 of 10
(3,003 Views)