11-12-2017 06:59 AM
Hi all,
I created a vi using analog output task using usb 6211 and AO0 has to increase the voltage gradually based on the control value and AO2 has an fixed value and now i need to increase the AO0 output in a certain interval or per second here i have used wait(ms)function to control the timing but is there anyway to use timing DAQmx timing.vi to control the output because if i use wait(ms)function it affects the other code here i have attached you the sample code so that you can verify.
regards,
paul
11-12-2017 01:52 PM
I don't have this device, so can't run any tests (or try it out in MAX), but I can read the Data Sheet which reveals that this device has a buffer and can accept an array of values to be output at some user-determined clock rate. So if you want to make it do a ramp, where you change the voltage from 0 to 1 volt 100 times a second, you could do the following:
Hmm -- though I don't have your device, I do have a myDAQ at work that has 2-channel AO, so I could try this myself, but you'll learn a lot more if you try it with your hardware. Feel free to experiment with MAX, and to read the documentation for your device. You can also do a Web search for Generating Analog Waveform LabVIEW, which will probably turn up something helpful.
Bob Schor