LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Streaming displaying xy chart

I'm looking for a possibility to display a realtime/streaming xy chart during
runtime of my vi.
If you have a further look into my attached programm - you see that I want to
display two values (x and y) each iteration of the loop.
Besides I have to loops one for the counting up case and one for the counting down case.
The 2nd problem is, that I have to display the x y values in these different loopsk, in
one xy chart (streaming one by one).
Already tried the xy graph - but there are lot of problems with getting the pevious data.

Do you have some suggestions or solutions for realizing this ?

Thanks

 

0 Kudos
Message 1 of 8
(3,791 Views)

Hi Stefan

I don't want to bother you, but you still have not understood the idea behind the event-structure, which was discussed in an other thread you started. You will never be able to stop the loop as you wired it in the vi attached previously.

Secondly your block diagram is far to big (unless you have a 40'' monitor ;)).

Also the usage of the xy-diagram basically is no problem to achieve what you want. Sorry, but it seems as if you just started LV and wired from scratch without basic knowledge.

Basically it's no problem for the community go give you several solutions, but you should be able to "read" them. You will be able to make much more out of our answers, if you know what we are talking about. I could imagine you to be very annoyed struggling on the basics, which is absolutely unsatisfying.

I suggest you reading the LV manual or getting the basic knowledge on an other way and then try to improve your vi. It is more fun, if you know the basics and you can do great things in very little time.

 

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 2 of 8
(3,778 Views)
thanks buddy you really helped me out with this "comment" but it does rely on my asked post.
So right now I have no prob with being in an event structure and the originally question I asked for
updating a graph or a chart to continuously display my current x and y values in different loops.
 
Believe me I was searching the developer zone and several so called example vi's didn't find anything
what could help me in this situation.
 
The fact is, that I have to run these two seperated loops.
 
...because this event structure "illness " you make me thinkg I have ! - I know some NI - Cracks, unfortunatelly they made me sick because the like it too.
Up to now I don't know how to get rid of that, but whats the prob with starting a main vi and checking the button(s), until something happens and then jump
into the according event ?
Is there a cleaner or easier way - let me know -
 
I'm also familiar with the literature of Mr. Jamal, but even what you guyes call the basics seem to be not mentioned -
 
 
0 Kudos
Message 3 of 8
(3,773 Views)
There is nothing wrong in using the event structure. I use it in every VI that has a user interface, but you have to use it properly. Just for instance - you stop button will never stop the vi, as there is no corresponding event case.
 
If you use LV8.0 I can attach you a simplified solution - still not "perfect" but without two different while loops and with a correctly working event structure.
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 4 of 8
(3,769 Views)

Well - due to the fact that tomorrow I don't have access to the computer with LV on, I post the VI now.

Hope you can get new inputs out of it.

Message Edited by becktho on 04-06-2006 03:52 PM

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 5 of 8
(3,759 Views)

And now the last one for today - without knowing the purpose of your program, I simplified the vi. As you can see by just looking at the file size (>200kb decreased to ~30kb) there is less memory used.

You also have to be aware, that the stop case won't execute until the start case finished execution. To change this, you will have to use "more advanced" methods (producer/consumer pattern is a link on this topic).

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 6 of 8
(3,753 Views)
This is another copy of this thread.

Please don't create multiple threads for the same question.
0 Kudos
Message 7 of 8
(3,744 Views)
sorry cannot open V8.0 Files with my 7 Express Version. If possible post it as compatible format for me - best regards...
0 Kudos
Message 8 of 8
(3,741 Views)