LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing axis source

Solved!
Go to solution

Hello everybody, I'm a newbie on labview so please be nice 😅. I am trying to take data from a DMM with DAQ devices and plot data to save them in labview. I want to get the measurement error on the y-axis and the relative tension on the x-axis, but I don't know how to change the axis-sources. I tried to look around the forum for similar problems without any luck. Can you please explain me how to do it? 

Here you have the subVI for the data analysis

 

0 Kudos
Message 1 of 9
(2,265 Views)

Buona sera sefhits,

 

you forgot to attach your subVI!

 

See these changes to your VI:

 


@sefhits wrote:

I want to get the measurement error on the y-axis and the relative tension on the x-axis, but I don't know how to change the axis-sources. I tried to look around the forum for similar problems without any luck. Can you please explain me how to do it? 


When you want arbitrary values for X and Y axis then you should not use a chart.

The XYGraph would be the "natural" choice for your problem…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 9
(2,226 Views)

I'm sorry there it is the subVI. Howevere I still don't know how to do it even with the X-Y graph. As I see I can only change the name of the axis, but not the source. 

0 Kudos
Message 3 of 9
(2,207 Views)
Solution
Accepted by topic author sefhits

Following up on @GerdW's excellent observation that if you are plotting two sampled values (measurement error and relative tension) against each other, you need to use an X-Y graph (with "relative tension" on X and "measurement error" on Y), you need to do the following:

  1. Take your sampled DMM data (which consists of Cycles (I32) of Samples (I32), from which you compute two Dbl Arrays (Relative Tension and Measurement Error) of length Cycles * Samples (I32).
  2. Create a Cluster that contains the X Array (Relative Tension) and the Y Array (Measurement Error).
  3. Wire to an XY Graph.

Note that there are other ways to arrange the Data for an XY Graph.  One (easy, quick) way to learn "How to" do it in LabVIEW is to turn on "Context Help" (type Ctrl-H) and hover your cursor over the XY Graph on the Block Diagram.  Read the Help and Detailed Help.

 

Bob Schor

0 Kudos
Message 4 of 9
(2,161 Views)

Thank you so much. I did It!


 

0 Kudos
Message 5 of 9
(2,142 Views)

Hello everybody. I am trying to plot a graph with measurement from a DMM and then on the same plot I want to show the measurement errors and accuracy of the DMM itself. So I want to get the ideal tension on the x-axis, measurements error on the y-axis plotted as points in the graphs, and show the accuracy range of the DMM so I can show every point if the measure is in the accuracy range, the error and what the measur should be. That's my VI, really don't know how to do it. I tried to put the tension and errors on x and y axis respectively with a X-Y graph but I don't know how to show the accuracy range in the same plot. Here it is the VI and a picture of what I would like to get.

 

Download All
0 Kudos
Message 6 of 9
(2,117 Views)

Given this post is a continuation of your previous post, it would be best to continue the discussion there instead of a new one.

 

https://forums.ni.com/t5/LabVIEW/Changing-axis-source/m-p/4260755#M1240660

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 7 of 9
(2,092 Views)

I'm sorry I thought to do another topic because I marked the other one as 'solved'. Should I delete this one and continue on the first one?

0 Kudos
Message 8 of 9
(2,083 Views)

I successfully plotted everything, but I want to know if there is some better way to plot the accuracy range, the one in blue on the image, because I feel like the VI is getting bigger with no sense. I was wondering if there is a way to shift the accuracy line of a certain value to get the range in a easier way. Would you be so nice to take some advice? There it is the VI and and image of what I would like to get. Be carefull, data in the VI are created randomly because I should get this data on laboratory with a DMM

0 Kudos
Message 9 of 9
(2,023 Views)