LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use shift register in this structure?

Dear All,
In order to use less variety of graph, I want to use shift register to manage and send data to graph.
But there is not only event structure in my vi, for some reason(because I want to use only one button to control running and stop, and this must do through variety of button, I can't put this loop into the event structure) I must use other while loops, I don't know how to use shift register in this structure.
Please tell me anything helpful.
Thank you!
0 Kudos
Message 1 of 5
(3,233 Views)
Cannot clearly understand what is your requirement.
 
Do You want to create/acquire data in one loop, display the same data on  a waveform graph in another loop which halso handles certain front panel events??
 
Kindly explain so that we can suggest better
 

Message Edited by devchander on 08-21-2006 06:35 AM

Message 2 of 5
(3,228 Views)

hi there

there are a lot of solutions. my favorite one is the usage of a so called "FGV" (functional global variable). this allows you to strore, manipulate and transport data through your app with a minimum of wires. see attachment.. (other users may have other favorite solutions...)

 

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
Message 3 of 5
(3,225 Views)
Thank you very much for your reply.
 
To Devchander,
I am sorry, my English is not good.
I mean that, I produce 2d array in while loop, and manage it(for example:move the plot upward or downward) in the event case.
 
To Chrisger,
That's a good idea. It is a very useful way.
Due to curious, can I use shift rigister in the whole while loop?
 
PS, Is there any way to put the while loop to the event case?(Because I have use the variety of button to stop the while loop)
 
Thank you again.
0 Kudos
Message 4 of 5
(3,204 Views)
For such a scenerio, my favourite approach would be producer consumer pattern
 
Here you will have two seperate while loops.
 
In one loop, you collect data.
In the other, you plot and manage your graphical display.
 
see if it suits your purpose
 
Message 5 of 5
(3,174 Views)