01-03-2011 04:16 AM
Hi,
I am doing a simple program in Labview, but I have some doughts...
- My program has 2 analog inputs, so I have put in the front panel 2 DAQ channels. Is this enought to read them?
- I want to read this 2 values and then save them to use later (in the next cycle). How can I make this?
- As I want the program to read the 2 analog inputs from 200ms to 200ms I have put in the block diagram a Time Delay. Is this good?
Thanks for your help.
01-03-2011 04:26 AM - edited 01-03-2011 04:27 AM
Hi aqua,
some basic tutorials are to be found here Have you looked at the examples coming with LabVIEW?
"in the front panel 2 DAQ channels. Is this enought to read them?"
Surely not. You need some DAQmx-Read-commands...
"use later (in the next cycle)."
Use a shift register...
"a Time Delay. Is this good?"
What could be bad with a Time Delay?
01-03-2011 09:58 AM
To your DAQ question:
Make a single (1) task for both AIs. After the read DAQmx, use a index array function. Resize the IndexArray to show two indices, don't wire the indices. They are automagically set to index 0 and 1.
We can point out more issues when you post code/screenshots.
Felix