LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set input range on my NI 6221 in LabVIEW?

Hallo Alles! Robot surprised

 

I've been trying to do some analog voltage measurments with an NI 6221-card in LabVIEW, but I was thinking that since the specification for this card lists four different input ranges available (+/- 10, 5, 1, and 0,2 V) this input range could be set to the smallest range required for a specific measurment to acquire higher accuracy, am I right or what?

 

How is this accompolished on the block diagram? I've managed to generate the following via the DAQ Assistant:

Could the minimum/maximum input values be changed to achieve this? Maybe this code within a while loop + a case structure could redo the measurment until the smallest possible range was used?

 

And another thing, I've never done any of this "ni-daq programming" before, and I'm still pretty unexperienced with LabVIEW Robot Very Happy, but what other ni-daq actions should be included before and after a measurment like this takes place in an application? Should there any "init/clear"-commands or something? What else must one think of when acquiring data like this?

 

Thanks alot in advance Robot wink

0 Kudos
Message 1 of 2
(2,562 Views)

Hi OscarJ

 

There are some fantastic examples of DAQmx code to be found within the LabVIEW Example Finder, these are a great place to start.

They can be found within LabVIEW by going to Help>>Find Examples... and then navigating into the appropriate folder as shown in the jpeg I have attached.

 

Regards

 

Steve

Message 2 of 2
(2,542 Views)