12-31-2008 11:00 AM
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
) ?
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
12-31-2008 02:15 PM
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!
12-31-2008 02:23 PM
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
12-31-2008 02:37 PM
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 😉
12-31-2008 05:21 PM
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!
12-31-2008 08:00 PM
12-31-2008 08:16 PM
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 !..
12-31-2008 09:01 PM
12-31-2008 09:02 PM
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 !
12-31-2008 09:22 PM - edited 12-31-2008 09:30 PM