LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to plot a XY graph in labview 2011

Solved!
Go to solution

You need to change the property of X axis.

Right click on XT graph -> Display format --> select x axis & change the property.

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 11 of 17
(1,863 Views)

what property I have to change. Please tell that also. I need intensity versus motor counts not time please kindly help me.

0 Kudos
Message 12 of 17
(1,860 Views)

I got the Xaxis changed by small changes made . I 'am attaching that Vi. But issue is that I'am not seeeing the plot, the graph is moving but never show the plot line. So please help me.

0 Kudos
Message 13 of 17
(1,856 Views)
Solution
Accepted by perumpadapu

I did that changes. Please run the program and let me know. 

I cant verify because your code is posing problem.

 

Then also if it doesnot work compare the properties with my previious attachments & see what is the difference.

 

Thanks

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 14 of 17
(1,853 Views)

Your array of X values only has one element. There needs to be one X value for each Y value.

Try creating a VI with expected data and see if you can get that to work.

Or run your VI so the Indicators have the data you want, copy those Indicators to a new VI, change them to Controls or Constants. Then work on your graphing problem.

Divide and conquer.

Note that your Express VI is collecting 1000 samples, but the "Signal 1" through "Signal 4" Indicators only show the last of those values.

Also note that if all your X values are the same, the Y values will all show up in one vertical line.

Try "Find Examples" for "XY Graph".

the program for data simulation.png

0 Kudos
Message 15 of 17
(1,843 Views)

Moved to here.

 

None of the answers in this thread are correct. Some are down right silly like building an array from the scalar from the serial read. In order to populate a normal XY graph as the loop iterates, shift registers are required to append new data to old.

0 Kudos
Message 16 of 17
(1,830 Views)

😞

Got it. No baby-steps.

Seemed that was what the OP needed.

The scalar-to-array was already in there. Just trying to push them in the right direction.

0 Kudos
Message 17 of 17
(1,826 Views)