vorlex Posted November 21, 2016 Report Share Posted November 21, 2016 Hello, i want to create graph with 3x axis and Y axis First Axis must be: 500 1000 1500 2000 and to repeat until the end Second Axis must be: 10 20 30 and to repeat until the end Third Axis must be: 25 55 85 and to repeat until the end How can i do that? Quote Link to comment
hooovahh Posted November 21, 2016 Report Share Posted November 21, 2016 What have you tried? There are Waveform Charts, Waveform Graphs, XY Graphs, and Mixed Signal Graphs, which are you using? What is the data type of the data you have? Do you have an example VI with sample data? It should be possible it would just be nice to have more information before attempting to help. Quote Link to comment
vorlex Posted November 22, 2016 Author Report Share Posted November 22, 2016 Column 2,3,6 as X axis and 5 column to be as Y on points. Sorry, Thanks in advance gg.vi gz.txt Quote Link to comment
hooovahh Posted November 22, 2016 Report Share Posted November 22, 2016 Well you are using a Waveform Graph. This means that every X value is separated by the same amount. This is generally used for displaying something like DAQ measurements where you know each sample is always separated by some amount of time like 1ms. So you have a start time and date, you have the amount of time between samples, and you have an array of Y values which are every increasing on the X axis. If your data always adheres to these restrictions then you can use a Waveform Graph. I'm still not fully understanding what the data is so I can't say for sure, but I suspect you actually want an XY graph, where you specify the X and Y value for each point to be displayed. Do you want three lines? You also claim column "2, 3, 6" are X and 5 is Y. Do you mean index 2, 3, and 6, or the second, third, and sixth column? Remember LabVIEW starts counting at 0. But even so lets just look at "column 2", where are the Y values for this axis? Are they the same for all three X axis? Attached is a version that uses an XY graph, setting up the minimum and maximum as the values seen from index 1, 2, and 5. Three lines are shown each using one of those X Axis, and all using the same Y data from column index 4. These are constants on the block diagram. gg Hooovahh Edit.vi Quote Link to comment
vorlex Posted November 22, 2016 Author Report Share Posted November 22, 2016 2 hours ago, hooovahh said: Well you are using a Waveform Graph. This means that every X value is separated by the same amount. This is generally used for displaying something like DAQ measurements where you know each sample is always separated by some amount of time like 1ms. So you have a start time and date, you have the amount of time between samples, and you have an array of Y values which are every increasing on the X axis. If your data always adheres to these restrictions then you can use a Waveform Graph. I'm still not fully understanding what the data is so I can't say for sure, but I suspect you actually want an XY graph, where you specify the X and Y value for each point to be displayed. Do you want three lines? You also claim column "2, 3, 6" are X and 5 is Y. Do you mean index 2, 3, and 6, or the second, third, and sixth column? Remember LabVIEW starts counting at 0. But even so lets just look at "column 2", where are the Y values for this axis? Are they the same for all three X axis? Attached is a version that uses an XY graph, setting up the minimum and maximum as the values seen from index 1, 2, and 5. Three lines are shown each using one of those X Axis, and all using the same Y data from column index 4. These are constants on the block diagram. gg Hooovahh Edit.vi you dont understand me right, because i dont explain it good I want to look like that: Quote Link to comment
hooovahh Posted November 22, 2016 Report Share Posted November 22, 2016 Oh that is interesting. Well you aren't dealing with any graph type because what you want to show isn't an X axis. An axis on any graph type always increases to the right and decreases as you go left. To make a UI like this I can think of a couple of solutions, but most are going to be very static and won't resize with the UI. Adjusting the number of points on the UI will likely break things. The only thing I can think of that will scale well, would be to make a 2D picture control, then increasing or decreasing the font size of the numbers on the bottom based on the size of the image, and number of points. This will give the most amount of control for things like rotating the font, which in LabVIEW is generally more difficult than it should be. As for the graph part, yes that should probably be a Waveform Graph since each point is the same distance apart, which in this case the units and size don't matter since the real X axis is not shown. Quote Link to comment
MikaelH Posted November 22, 2016 Report Share Posted November 22, 2016 I would use a Picture control together with a plot, something like this. ExtraX-Scales.vi Quote Link to comment
vorlex Posted November 23, 2016 Author Report Share Posted November 23, 2016 12 hours ago, MikaelH said: I would use a Picture control together with a plot, something like this. ExtraX-Scales.vi Thanks, but it dont work for me, or just i cant fix it to work Quote Link to comment
vorlex Posted November 23, 2016 Author Report Share Posted November 23, 2016 Thats my data can u help with it ?, Thanks! 1.vi Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.