Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Generating analog output with USB DAQ 6009

Hello All,
I am trying to generate a single square wave with my USB DAQ 6009. I am using "On demand"
signal type which is the only signal type not giving error. And I defined my square wave
conveniently with the built in function generator on simulated signals. My program runs OK
but I cannot read the wave form that I supposed to. Please see the attached pictures for my
program and how I connected the ports on the DAQ to read the generated signal back.
Any help would be appreciated. And if this is not practical with USB DAQ 6009, I am open to
hear any other option I have, like other affordable DAQ cards.
Thank you,
SC

0 Kudos
Message 1 of 8
(4,983 Views)

You cannot use a waveform to generate an analog output. Since it is software timed, you must pass one point at a time. You will be Iimited to very low frequencies with considerable jitter have no idea how the evil dynamic data type acctually works in this case. You may be getting an error but your current program is ignoring whatever error you might be getting.

 

You can go to the products page to find a DAQ device that has hardware timed analog output. You have not provided any information at all to make a recomendation.

0 Kudos
Message 2 of 8
(4,965 Views)

Hi Dennis,

I will drive a valve with the output signal and the range for the analog output should be in 0-10V range. I will need to send squance of square and/or triangle waves. Each wave is to have duration of about 0.3 s. Under these circumstances, what would be you recommendation for a DAQ to achieve the task?

And also, I did further search and found out this link: https://decibel.ni.com/content/docs/DOC-14687

Confirm you this link also says there is one data point at a time and you can set the sampling time to very low values, say 5ms and generate a function of your need. Does this make sense to you?

And if this is not a solution either, I would be very glad if you ca recommend me a DAQ with the most affordable price.

Please let me know. 

Thanks,

SC

0 Kudos
Message 3 of 8
(4,956 Views)
I already said that you needed to write a single point at a time. I also said you would have considerable jitter. A delay of 5ms in one iteration could easily be 50 or 500 the next. That is simply windows behavior. Of course, you also have the amplitude problem since the device cannot output 10V.
0 Kudos
Message 4 of 8
(4,942 Views)

OK. So any recommendation on other DAQ devices?

I realized we do have ni pci mio 16xe 50 CB-68LP DAQ which is approaching to End Of Life if it hasn't already. Would I be able to do the same task with this device? I would be very glad if you can direct me to an example code also.

Thanks again,

SC

0 Kudos
Message 5 of 8
(4,932 Views)
Have you even gone to the products page to do a search yourself? I don't know what other features you might need - number of channels, analog input, digital I/O, counter, form factor, etc. This is all information you have but I don't. Call your local NI Sales Engineer if you cant publicly share the information.

Frankly, I don't know if that old device is supported by DAQmx. It would be simple to plug it in and see if it's recognized.
0 Kudos
Message 6 of 8
(4,922 Views)

Yes, the computer recognized pci mio 16xe 50 but I don't know how to start with this one. Do you have any example or recommendation? Any link?

Thanks,

0 Kudos
Message 7 of 8
(4,899 Views)
Help> Find Examples.

You'll want Hardware Input and Output>DAQmx. You can limit your search to specific hardware.
0 Kudos
Message 8 of 8
(4,897 Views)