LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Some basic questions...

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.

0 Kudos
Message 1 of 3
(2,456 Views)

Hi aqua,

 

some basic tutorials are to be found here Smiley Wink 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?

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,453 Views)

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

0 Kudos
Message 3 of 3
(2,408 Views)