Discussion:
How to set input range on my NI 6221 in LabVIEW?
(too old to reply)
OscarJ
2008-08-13 11:40:22 UTC
Permalink
Hallo Alles! :robotsurprised:&nbsp;I've been trying to do some analog voltage measurments with an NI 6221-card in LabVIEW, but I was thinking that&nbsp;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&nbsp;acquire higher accuracy, am I right or what?&nbsp;How is this accompolished on the block diagram? I've managed to generate the following via the DAQ Assistant:<img src="Loading Image..." border="0" width="572" height="334"> 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?&nbsp;And another thing, I've never done any of this&nbsp;&quot;ni-daq programming&quot; before, and I'm still&nbsp;pretty unexperienced with LabVIEW :robotvery-happy:, but what other&nbsp;ni-daq&nbsp;actions should be included before and after a measurment like this takes place in an application? Should there&nbsp;any &quot;init/clear&quot;-commands or something? What else must one think of when acquiring data like this?&nbsp;Thanks alot in advance :robotwink:
StevenH
2008-08-13 14:10:06 UTC
Permalink
Hi OscarJ&nbsp;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&gt;&gt;Find Examples... and then navigating into the appropriate folder as shown in the jpeg I have attached.&nbsp;Regards&nbsp;Steve


DAQmx Examples.JPG:
http://forums.ni.com/ni/attachments/ni/170/348953/1/DAQmx Examples.JPG
Loading...