07-14-2008 01:53 PM
07-14-2008 01:55 PM
Here is the previous example in LV8.2
R
07-15-2008 07:43 AM
07-16-2008 07:38 AM
kmous wrote:
Hi Ray ,
when i run the Vi , i connot stop it using stop acquire or stop at the top!! it always freeze up and i have to stop it using end task in ctrl+alt+del !
should i select my signals before I run it ? you have select bottom at the top !! what does this do ? i think i have to select the signals i want to acquire and then push select and then acquire right ? this is how i understood from the block diagram !!
Thank you
07-16-2008 11:58 AM
07-17-2008 07:53 AM
I wish I had Labview installed over here to look a the code. 😞
The description you provided did put a light on what is going on. So a small change to the dequeue architecture may do the trick.
Try this: Move the dequeue portion of the code into the "idle" state. Acually, the bottom loop is a state machine. You will need to put a shift register for each of the queued elements (qty 3). There is already one for the state selection. So add one for the string (? i think) and the third one is the run/stop boolean that you can pass to a shift register and wire to the OR gate that I mentionned in my previous post.
All dequeues will be done in the idle state. That means that the next state after the acquire data now has to be idle state. I think it was already.. I think all states would now have to point to this one, except fot the stop / exit state.
Change the code and post a screen capture of the block diagram.
R
07-18-2008 07:11 AM
How did it go?
Have you tried my last suggestions?
R
07-21-2008 09:50 AM
07-22-2008 06:44 AM
I was away myself and had limited access to the internet and no access to Labview.
I'll have a look at the code this morning.
R
07-23-2008 02:15 PM
I made some changes and added a status window. It is useful for debugging and you may wish to leave it there.
The purpose of the status window is to let you know when an error occurs and it stops the loop, thereby giving you the impression that nothing works. You may want to display the Abort Execution button while developping / debugging your application. That one can be removed once it is ready to be deployed.
I also created a state for the stop button to force the exit of the program if it is pressed.
R