07-21-2008 06:24 PM
07-21-2008 09:01 PM
How fast are you acquiring the data and for how long? Will it be a continuous data acquisition? Also, witht he DAQmx you can make a task (using the Measurement & Automation program), which will allow you to use just one DAQmx with all 13 channels. I have used the DAQ Assisant and it is easy to use, but for fast continuous acquisitions, you may run into problems.
Writing to a Measurement VI has worked well for me and you can open it in excel afterwards. Again, if you are aquiring alot of data quickly, a more efficient write to file may be needed.
However, looking at you example of the data, it appears that you ar collecting data slowly (on the order of minutes). In this case, I would recommend the DAQ Assistant and the Write to Measurement VI for ease of use. Using other options would give you more choice on how things are done, but would be more complex.
Hope this helps.
--Robert
07-21-2008 09:21 PM
07-21-2008 09:33 PM - edited 07-21-2008 09:35 PM
What you don't explain is what you are using to control the valves. Is this digital output? If you are using separate DAQ Assistants for this, then each task may be starting and stopping each time. You could combine all channels into a single DAQ Assistant and have comparable performance to the low level DAQmx functions with all channels in a single task. If you wanted separate tasks, then I would recomend using DAQmx and create/start the tasks outside your main loop. Close the tasks when the loop finishes.
p.s. To me, creating a task in MAX is silly. It's just as easy to create the task in the code.
07-22-2008 12:19 PM
They are 24 V solenoid valves. We are going to use the NI 9472 to control the valves. However, while we are waiting for this to arrive, we are currently using an old BNC-2120 that has 8 BNC Analog inputs, 2 analog outputs, and a 8 digital I/O port.
I've tried to use the DAQmx to simply send out a LabVIEW generated sine wave, but I receive an error 200288. I've also tried using the DAQ assistant to send out the same sine wave, and I try measuring it on an O-Scope, but all I get is noise. I can use the DAQ assistant to get data from the BNC-2120 no problem, but cannot send analog or digital outputs correctly. I've attached the two test VI's I was working on. Maybe I'm completely using these features incorrectly. LabVIEW 7 was really easy to control individual inputs and outputs with AI Acquire Waveform.Vi and Write to Digital Line.VI, but I cannot find those features on 8.5.
If I'm using these tools incorrectly, please tell me the proper way to use them. I've tried using the LabVIEW help menu, but that is like reading foreign language to me.
07-22-2008 02:06 PM
07-22-2008 02:35 PM
07-22-2008 02:36 PM
07-22-2008 02:52 PM
07-22-2008 03:05 PM