10-11-2012 08:49 AM
Please help!
I'm attempting to send a command signal (Sine wave or trapezoid wave) to a device through a DAQ 6215, and then read the devices feedback continuously. Both command and feedback signals will plot in the UI. The comand signal will be constantly changing. I've copied the DAQ portion of the code from a LabVIEW example called Multi-Function AI-AO.vi, but keep getting errors from the small changes I made.
I know the code is a bit stringy, but any fixes will be greatly appreciated!!
Thanks,
Christopher
10-11-2012 09:22 AM
OK Christopher, Thats a bit better than yesterday but,
And DO look at the shipping examples for LabVIEW
10-12-2012 09:09 AM - edited 10-12-2012 09:10 AM
Thanks for the reply again Jeff.
I've switched to max tasks (instead of virtual channels). Why is it that I can read and write symultanioulsy with Max tasks but not with vitrual channels?
I have a few more questions:
There are two arrays in my vi, on is 1D and the other is multipleD. Is there anywhy I can put them on the same plot? Right now I've made one plot transparent and put it direclty on top of the other. This looks ok, but the data won't export into the same excel file.
What did you mean when you said: "Local variable use is totally wrong. Read the unwired terminals." Could you show an example?
In my first post you mentioned that something was wrong with the 'Settings' buttons, how can I find the error?
Thanks for your help!
10-15-2012 05:08 PM
Chris,
The LabVIEW Help File steps through how to put more than more than one plot on a graph.
Also the steps that Jeff·Þ·Bohrer suggested should help your code run more effeciently.
You should also look at the DAQmx Getting Started Page for more examples and programming tips.
10-15-2012 06:15 PM
Thanks guys for all the help! My project is up and running now.
-Christopher