LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

a question about X-Y plotting

Hi to all,

I am in trouble with my programming right now--after finishing programming for capturing signal from a multimeter and being able to move motor, I could not figure out how to make an X-Y plot! 🙂

The idea for my program is: I am using X-ray to test my samples. X-ray is in the form of a very tiny beam(around 2 millimeters wide). In order to get the best position to put the sample into the beam, I need to use the multimeter to calibrate the position. So I decide to write out a program which can capture the current from a diode and move the motor simultaneously and is able to draw a real-time "motor position vs. current output" plot. However, since the two sub-VIs are in "case" diagram and "while" diagram individual
ly, I can not find a way to make the plot. Also, the output of the motor position is in the form of "double precision real number" while the output for the current is in the form of string, I could not put them into a cluster!(I should admit I am an idiot in string and cluster whatsoever.) Is there anyway for me to make an "easy" x-y plot? Please give me some idea... Thanks!

Best,
Fan
--
Fan Zhang
Dept of Physics and Astronomy
University of Pennsylvania

-----" A journey of a thousand miles must begin with a single step."
0 Kudos
Message 1 of 2
(2,624 Views)
Hi Fan,
could you send an example of string to me?
I'll try to help you.
Mike

Fan Zhang wrote:

> Hi to all, I am in trouble with my programming right now--after
> finishing programming for capturing signal from a multimeter and being
> able to move motor, I could not figure out how to make an X-Y plot!
> 🙂 The idea for my program is: I am using X-ray to test my samples.
> X-ray is in the form of a very tiny beam(around 2 millimeters wide).
> In order to get the best position to put the sample into the beam, I
> need to use the multimeter to calibrate the position. So I decide to
> write out a program which can capture the current from a diode and
> move the motor simultaneously and is able to draw a real-time "motor
> position vs. current output" plot. Howeve
r, since the two sub-VIs are
> in "case" diagram and "while" diagram individually, I can not find a
> way to make the plot. Also, the output of the motor position is in the
> form of "double precision real number" while the output for the
> current is in the form of string, I could not put them into a
> cluster!(I should admit I am an idiot in string and cluster
> whatsoever.) Is there anyway for me to make an "easy" x-y plot? Please
> give me some idea... Thanks! Best,Fan
> --
> Fan Zhang
> Dept of Physics and Astronomy
> University of Pennsylvania -----" A journey of a thousand miles
> must begin with a single step."
0 Kudos
Message 2 of 2
(2,624 Views)