05-31-2011 04:47 AM
Hello!
I am new to LabVIEW and have problems with charts. I get data with GPIB communication in numeric array from which
I want to make mutiple chart.
For example in Excel you can draw chart like this, where you have to have one empty row between two data. I would like to make something like that in LabVIEW.
I create numeric array in LabVIEW and want to make that empty row but can´t becuse the value can be only 0 zero.
It could be done with string array but then you can´t draw charts as chart always want numeric type of data.
Thank you for your answers.
Solved! Go to Solution.
05-31-2011 06:58 AM
To do this you will need to make an xy graph in LabVIEW. See my example
05-31-2011 09:10 AM
Sorry to bother you but I can´t open the file Example as I have LabVIEW 8.5. Could you please save it in LabVIEW 8.5 .
Thank you.
05-31-2011 09:13 AM
Here you go.
05-31-2011 09:18 AM
There are also a number of examples that ship with LabVIEW that show you how to use graphs and charts. Just open the Example Finder (Help -> Find Examples) and you can take a look at them.
05-31-2011 10:03 AM
That solution is good if I know how many characteristics it will be in graph.
But I get in array numeric values x and y and I want that some points in the graph are not connected to each other.
I get this and all points are connected to each other.
What I want is this
05-31-2011 10:14 AM
Maybe I am not clear enough.
I get in one array values
1500 0
1480 1
1460 2
1440 3
1400 0
1380 1
1370 2
1360 3
and then I want that some points are connected each other and some are not.
05-31-2011 10:15 AM
With the example that I gave you you can make it do what ever you want. You can change it to have fifty different arrays to plot you can make it so that only points show up. It will take more programming to do that.
How are you going to feed data to this graph?
05-31-2011 10:16 AM
How are yo gong to know when to break and when not to? How are you getting the data? How is this going to work as a program? Are you going to enter these points yourself? will it be driven by data acquisition? Help me help you here? I need more info to give you more help.
06-01-2011 01:15 AM
The data will be get through GPIB communication. I will get two values x and y. Which I join in array numeric.
For example first measurements will be
1500 0
1480 1
1460 2
1420 3
Than after first measuremest I will push the button new measuements and than I will get new values
for example
1400 0
1380 0,5
1360 1
1320 1,5
and than I will push the button new measuements and than I will get new values
for example
1300 0
1280 0,6
1260 1,2
1240 1,8
and etc. if I push the button new measuements .
I was thinking to make some counter and to count how many times I push button the button new measuements .
For example I push the button new measuements once the counter has value 1 and than I make if case
when counter is equal to 1 save values from array in new array and to make chart or graph and then to combine all graphs to one.
Do you have any other better idea or suggestion how to do it?
Thank you.