LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ao buffer write (waveform)

I have a 4 x 14,700 single precision text file and I want to download it into the ao buffer and run that file continuously. What I need to do is to compare what is comming into the daq to the actual file that is in the buffer. In the ao buffer write.vi there is a
update progress cluster that has a output mark and a write mark. What I need to know is, do these marks follow the rows of data that was placed in the buffer from the file that was downloaded?
0 Kudos
Message 1 of 2
(2,642 Views)
I had an app where I wanted to do a simultaneous read and write of AI and AO. My local rep said I couldn't do it on the same device. I sort of got it working but it was extremely unreliable. Apparently this is a limitation of NIDAQ or the hardware, not sure which. I don't know how fast you want to run or how accurately you need to time each read/write or how close together they need to be in time but what I ended up doing was doing the AO and AI config and building an array of the data I wanted to write out the AO. I then put an AOSingleUpdate and AISingleScan in a for loop. At this point you can do your compare and, for example, flag a fault. Put the for loop inside a while loop to run continuously. Put the AO and AI config, file read and any other one time stu
ff outside the while loop. I think you could probably run this loop, depending on hardware down to about 10 - 15 mSec.

Hope this helps.
0 Kudos
Message 2 of 2
(2,642 Views)