LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Caibrating a graph

Dear all,

I am a new user of LabView 7.1, thus I am very ignorant about how
powerful LabView can be.

Currently, I am using DAQ with LabView to digitalize the analogue
voltage output from my AMR sensor. I hope to calibrate a graph that
that shows the relationship between the input to the AMR sensor and the
output of the AMR sensor, in my application. After that, I would like
to some sort of save the calibrated graph to Labview so that whenever
the AMR sensor encounter its varying input, LabView would be able to
take the value of the corresponding output according to the calibrated
graph in its "memory" and do some mathematical calculation (for my
application) to output the computations to the VI.

I have this architectual concept, however I do not know about how to go
about utilising LabView to realise my application. I hope that sonmeone
can enlighten me on that. And last thing, can my apllication i.e.
output the computation to VI be real-time, almost real-time is also
enough, as the input to the AMR sensor will be dynamic.

Hereby, I wish to express my sincere appreciation for any kind souls
and also LabView pros to answer my questions.

Thank you very much.

0 Kudos
Message 1 of 8
(3,410 Views)

HI enigma,

 

I think the first place to start is that the graph is just a way to represent an array of data.  The array "lives" in the block diagram, and you represent it on a graph.  So when you say you want to calibrate a graph, you need to start with the array(s) of data, and then "massage" the data in the array, and then push the array into the graph.

 

I am a little confused on your exact application, but it sound like you have two acquisition channels.  One before the sensor, and one after the sensor.  The data for these two channels will come out of a NI-DAQ Read VI as column arrays (2 col, and N rows, where N = number of scans to read at a time).  You can wire the 2D array directly into a waveform graph (right click the graph and select Transpose Array) for viewing.  If you want to "calibrate" the data, you could subtract ch1 from ch 0 (or vise versa) to get kind of a differential value, and then wire the resulting 1D array into the graph.  Try the array tools for indexing indiv columns for your math operations.

 

For the "memory" need, that will probably be harder.  If the acquisition is triggered, then you can expect point N to have a certain value (as long as the test is the same for each test run).  but if the acquisition is not triggered, then a certain value may occur at x index n on one test run, and at index m on another.  You would need to do use some type of sliding window to recenter the data with each new acquisition...

 

As for the real time, the data streaming will be function of the DAQ Read returning.  As long as your data comes in a couple of times a sec, you won't be able to notice any delay while the buffer fills up and the DAQ read is waiting to retrieve the "number of scans to read" parameter that you gave it.

 

Let me know if you have any questions.

Joel

Message 2 of 8
(3,373 Views)
Hi Joel,

Thank you very much much for your advice. Maybe I should explain to you
in details for my application. Actually, I have a magnetic sensor that
gives analogue voltage output which I feed into my DAQ, so in fact, I
am only using 1 channel in my DAQ. Therefore, this analogue voltage
will be going to vary as I change the orientation of the magnet, which
is near the magnetic sensor, manually by hand.

Thus, I hope to capture that instantaneous analogue voltage
corresponding to the orientation of the magnet which I set. Then I hope
to plot this relationship in a graph of Voltage (as Y-axis) against
Oreintation of Magnet (as X -axis in term of degrees from -25 to +25).

Could you please give me some advice on how I should go about doing
that?

Tahnk you,
Andy

0 Kudos
Message 3 of 8
(3,345 Views)

Hi Andy,

XY plot would do the job.

so, if you have a mathematical equation for convering voltage to orientation,

read voltage (you seem to be reading single point) , scale/convet it to oscillations, now you will have two points.

Plot them on the graph as shown in the VI attached

Regards

Dev

 

 

Message Edited by devchander on 01-03-2006 01:17 AM

0 Kudos
Message 4 of 8
(3,340 Views)
Hi Dev,

I having problem running Volt_osc.vi because I am using LabView 7.0,
not 7.1. Sorry about that.

Is it possible that you could upload the 7.0 version one. Thank you.

Regards,
Andy

0 Kudos
Message 5 of 8
(3,325 Views)
Hi Dev,

To clarify on my problem, I do not have the equation of converting the
voltage to orientation. But, I would like to plot a gaph of voltage in
relationship with orientation, through experiment and my DAQ. After
that I have such a graph, that would serve as my read-off table, so
that as I dynamically turn my magnet orientation without knowing its
orientation, but just by reading the voltage signal at that instant, I
be able to tell the the oreintation from the graph.

Regards,
Andy

0 Kudos
Message 6 of 8
(3,325 Views)
Hi Dev,

To clarify on my problem, I do not have the equation of converting the
voltage to orientation. But, I would like to plot a gaph of voltage in
relationship with orientation, through experiment and my DAQ. After
that I have such a graph, that would serve as my read-off table, so
that as I dynamically turn my magnet orientation without knowing its
orientation, but just by reading the voltage signal at that instant, I
be able to tell the the oreintation from the graph.

Regards,
Andy

0 Kudos
Message 7 of 8
(3,327 Views)
Hi,
Herez the VI in LabVIEW 7.0
 
Regards
Dev
 

Message Edited by devchander on 01-03-2006 05:07 AM

0 Kudos
Message 8 of 8
(3,325 Views)