LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

A multi-plot grah that has a buffer and lets you scroll back

Solved!
Go to solution

chilly charly wrote:
I have modified sightly the previous example to show how multiple plots can be handled simply. You can use several instances of the buffer without worrying about making copies with different names, since I have made it re-entrant now (Ben I got you here 😉 😄 !)

 

 

How can I find fault in you exploiting the fact that the buffers only appear once on your diagram (if I did not allow exploitation of corner cases then I would have to amdit that I have never written code that out-performs Christian's stuff Smiley Mad ) ?

 

To the casual reader:

When a VI is re-entrant, a new copy of the VI is loaded and used for each instance of that VI in a diagram. In CC's example, there are two instances so there are two copies. That is how he by-passed my req to create a copy of the buffer. If the reading of the buffer is required elsewhere in the code, the new instance used in the other part of the code will not be the same one written by the DAQ sub-system and will never get updates.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 11 of 22
(1,560 Views)

Thanks for all the responses and feedback, I really want to figure out how this is going to work... Could someone please help me out, I can't open the file that CC attached, I have labview 8.5 on my machine, and it can't open this 8.6 file.  Could someone repost it as a previous version please?

 

Much Thanks! 

0 Kudos
Message 12 of 22
(1,543 Views)

Hi Fibo,

 

I don't have LV 8.6 on this machine but...

 

to make a VI re-entrant you pop-up on its icon and choose properties. from there you go to the "execution" page and there is a check box that allows you to make the VI re-entrant. The default is non-re-entrant.

 

Then just make the wire changes shown in the posted image.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 13 of 22
(1,541 Views)

Ben a écrit:

Hi Fibo,

to make a VI re-entrant you pop-up on its icon and choose properties. from there you go to the "execution" page and there is a check box that allows you to make the VI re-entrant. The default is non-re-entrant.

 Then just make the wire changes shown in the posted image.


... and in the other case of the case structure, use a "write" connected to the blue wire 😉 

 

Chilly Charly    (aka CC)
Message 14 of 22
(1,538 Views)

Much thanks to both of you, it has been a lot of help.  I've modified the original 8.5 code as suggested, and made the vi's reentrant, but somehow I've lost the ability of the graph to scroll.... it just stays stuck... I'm attaching what I've done.

 

thanks!

0 Kudos
Message 15 of 22
(1,524 Views)
ok so, I see it starts to scroll after the buffer is full.... for my application, I'm gonna be running this for 8 hours, and need the buffer to hold 4 hours worth of data.... is there any way to get it to start scrolling before the buffer is full?
0 Kudos
Message 16 of 22
(1,516 Views)

Fibo a écrit:
ok so, I see it starts to scroll after the buffer is full.... for my application, I'm gonna be running this for 8 hours, and need the buffer to hold 4 hours worth of data.... is there any way to get it to start scrolling before the buffer is full?

 

😮 Fibo, with a look at the example(s), you should find an update X axis VI  (and the corresponding button...) that does this function !..
Chilly Charly    (aka CC)
0 Kudos
Message 17 of 22
(1,512 Views)
Hello CC, I'm using it.... it still doesn't start moving until the buffer is full.... is it working differently for you?
0 Kudos
Message 18 of 22
(1,506 Views)

Fibo a écrit:
ok so, I see it starts to scroll after the buffer is full.... for my application, I'm gonna be running this for 8 hours, and need the buffer to hold 4 hours worth of data.... is there any way to get it to start scrolling before the buffer is full?
Sorry, I misunderstood the question... The answer is still simple : set the graph X scale to autoscale !

 

Chilly Charly    (aka CC)
0 Kudos
Message 19 of 22
(1,506 Views)

Message Edité par chilly charly le 01-01-2009 04:30 AM
Chilly Charly    (aka CC)
0 Kudos
Message 20 of 22
(1,503 Views)