LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Showing 4 graphs problem

Hi!

I have limited screen area (8"), and that's why I have to put 4 graphs one on the other. I want to show filtered data and rawdata. Both of them Power Spectrum and waveform graphs. I tried to do it with property nodes so that when I select which data I'm going to show(Graphs selector) other graphs are not visible. (Attached Graph test.vi explains better what I mean).

Is this possible to do with property nodes or can I show data in one graph only. Less the buttons the better.

Second question is about the optimizing the code.

Can I do something for the aquisition so that the scan backlog don't rise so much?

Thanks:
Neuvos
0 Kudos
Message 1 of 9
(3,081 Views)
I've modified a little bit your VI to what I would do if I were you.

The graph selector chooses the way of processing signals and the Data/Power Spectrum chooses the graph to display. I think you only need two graph. You could also reduce this to one graph but it's up to you.
Don't forget to check for errors during the loop.
Use the scan backlog to decide how many points you need to read at a time. It will stop increasing.

Hope this helps !
Julien
Message 2 of 9
(3,081 Views)
Merci Monsieur Julien!

The graph solution was easier than I thought, I got little bit angry for myself. Things should always be kept as simple as possible.

Thanks
Neuvos
0 Kudos
Message 3 of 9
(3,081 Views)
The pleasure was mine !
As you've seen I'm French and I'm happy to be understood by a non French person because it's not always the case.
Feel free to ask other questions, I'll do my best to answer them.

Julien
0 Kudos
Message 4 of 9
(3,081 Views)
Hi!

You don't have enough time to answer all my questions, because I've lot of them. But I ask at least one.

I have little problem with graphs especially with clearing them. I have a case where I save to file data, and draw a history graph of min.max and average values. Everything works fine, but When I stop and restart program, the old values are still in the graph. And if I clear graph by data operationd -> clear graph, it clears, but after I save again the old values are still there.

I think it has to do something with the case structure,but I don't figure it out. The History Draw sub.vi I think is the main problem.

I have studied a little while in France, maybe that's the reason why I understood you.


Neuvos
Download All
0 Kudos
Message 5 of 9
(3,081 Views)
Hi Neuvos,

What I often do in this case is add a sequence structure at the beginning of the program in order to initialize all the controls I need to initialize.

Don't forget to make a data dependency in order to be sure that the sequuence structure executes first.

Hope this helps !
Julien
0 Kudos
Message 6 of 9
(3,081 Views)
Hi Julien

In my case that solution ain't work, it still got the old values some/where/how. I think that the problem is in History draw sub.vi. I have there feedback nodes which store the old data and I think that those should be formatted when program is closed. I tried to initilize those but then then the history data didn't draw anymore.

I think that I should do the graph draw different way. Any thoughts how to do that??

Neuvos
0 Kudos
Message 7 of 9
(3,081 Views)
Look at this image. I'm sure you gonna like it !

Julien
0 Kudos
Message 8 of 9
(3,081 Views)
That's the thing I needed. Merci beaucoup!

Je ouvrir une verre, if we see someday. I have to admit that I've never seen before First Call? function, or maybe once, but it didn't came to my mind. Now the vi works fine.

Thanks again,
Neuvos
0 Kudos
Message 9 of 9
(3,081 Views)