LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to calibrate multiple channels seprately?

Hi, 

I want to measure data (force- bridge) of 8 channels, for each channel I use compression load cell. Each load cell should be calibrated respectively.

I tried to modified the Bridge example provided by NI by changing the single channel to multiple channel, but how to calibrate all the channels, in fact I have the calibration information of each load cell (like, y=kx+C).

 

The file has been uploaded. The problem now is I have three channels, and the problem comes from the sample clock. I have no idea, anybody can give advice? Thanks!

0 Kudos
Message 1 of 4
(3,523 Views)

How much experience to you have with DAQmx?  Have you "played" with your device using MAX, the Measurement and Automation eXplorer?  MAX (and DAQmx) allow you to set up a task to take multiple channels of data from a Device, calibrating the channels individually.  It might behoove you to explore your Device using MAX, specifically to see how to set up acquisitions from all three channels at once.

 

The Example Code you copied was for a single Channel, and probably has more Bells and Whistles than you need.  My advice would be to first simplify the Example as much as possible to make it easier for you to understand and to test.  Then define your Physical Channel input to be the AI channels of the Device you are using.  Replace the scale/calibration value with an array of calibrations, and apply them (using a For loop) to the respective channels.  Note that there is a single timing function (for the device), a single Start, a single Read, etc., since these are defined for a "three-channel device".  The Read should give you an array-of-three output, either a 1D array of 3 waveforms (if you've chosen Waveform outputs) or a 2D array of Reals (if you've chosen to have your Channel output as an array of reals).

 

Bob Schor

0 Kudos
Message 2 of 4
(3,479 Views)

Hi. Bob,

 

In fact I am new to the NI labview. Finally, I used NI DAQ assistant to help me with the very urgent task.

 

Thanks for your advice.

 

0 Kudos
Message 3 of 4
(3,452 Views)

Ah, the Dreaded DAQ Assistant, the Crutch of Beginners and Bane of Doing What You Want to Do with DAQmx.  If you are serious about doing useful things with LabVIEW and learning a bit more, read Learn 10 Functions in NI-DAQmx and Handle 80 Percent of Your Data Acquisition Applications, especially Sections 3-12 where it tells you how (and why) to banish the DAQ Assistant.

 

Bob Schor

0 Kudos
Message 4 of 4
(3,443 Views)