LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple charts

Solved!
Go to solution
Spoiler
 

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.

 

 

chart.JPG

0 Kudos
Message 1 of 22
(4,578 Views)

To do this you will need to make an xy graph in LabVIEW. See my example

Tim
GHSP
0 Kudos
Message 2 of 22
(4,563 Views)

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.

0 Kudos
Message 3 of 22
(4,549 Views)

Here you go.

Tim
GHSP
0 Kudos
Message 4 of 22
(4,547 Views)

 

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.

0 Kudos
Message 5 of 22
(4,543 Views)

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.

 

1.JPG

 

 

 

What I want is this 2.JPG

0 Kudos
Message 6 of 22
(4,532 Views)

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.

 

0 Kudos
Message 7 of 22
(4,528 Views)

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?

Tim
GHSP
0 Kudos
Message 8 of 22
(4,527 Views)

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.

Tim
GHSP
0 Kudos
Message 9 of 22
(4,524 Views)

 

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.

 

 

                                                    

0 Kudos
Message 10 of 22
(4,499 Views)