11-24-2009 02:10 PM
11-25-2009 06:14 AM
Hello,
thank vsh and Mark for your suggestion
Mark a question do you succeed to open 2009 release ?
I tried yet queued 'exit' in front of queue but with no change , for the moment i will put a 10ms wait in while loop
even if is not state of art it works...
In a next approach i will try to write kind of code like example we see in Theatre light code but it is not enough similar to be used
in a quick time
Thank you
Best regards
Tinnitus
11-25-2009 06:20 AM
11-25-2009 06:35 AM
Hello vsh,
Yes, but the probleme is that i need to producer loop to be responding in a correct time so
i will a to apply this method any time i want to change of scenario , that means for exit, for launch calibration , for change of probe
so i can't see very well where is the interest of using queued if it needs to add little tips ( this its just my opinion )
I think i 'm not enough 'easy' with queued management
if some one can advise me 'real' existing code, literature or books about kind of codind i will appreciate
Best regards
Tinnitus
11-25-2009 06:48 AM - edited 11-25-2009 06:54 AM
Best place to get help on producer consumer architecture is from LabVIEW bookshelf.
Select File>New. You will find the template for producer consumer. (See the attachment)
You can also find helps here, and here
I still cannot understand what is the problem in not executing the STTM Q MGR_new.vi when the exit case is executed/dequed. You just have to do what I have shown in the image. It will solve your problem. You need to have one case for Exit which will do nothing, and other case as a default, which shall execute for all other e-num values of etat courant.
11-25-2009 06:56 AM
I have attached copies of both my duel loop (producer/consumer) and single loop (UI and none mission critical timing) QSM structures.
It is a bit of a learning curve, but if nothing else, should point you in the correct direction. it allows for messaging between loops and handles exits pretty well, as long as the producer loop is not holding up execution.
Because it is a .lvlib file, you may have some issues with recreating the directory structure, but you should be able to get through it.
This is one of many similiar type of implementations.
11-25-2009 07:00 AM
hello Vsh,
i really apreciate your help and links,
but example done are very basics and don't show example with user interaction and interaction of consumer on it self ...
i don't understand ppt doc it's just a theoric presentation or i don't have a good ppt reader
Best Regards
Tinnitus
11-25-2009 07:18 AM
Hello PJS,
user Events and consummer are in the same loop !!
Tell me if i missunderstood but it's look like JKI state machine , no ?
Best regards
Tinnitus
11-25-2009 07:22 AM
Can't speak for the JKI statemachine, but most QSM templates look VERY similiar. There are subtle differences usually in the way the Exit, initializatoin, error handling, queue creation and debug features that seperate one from another.
Consumer and user events are handled in the same loop. However, using the design of the duel loop, it is easy to create a third if desired, although in the last decade and a half of doing this, I have never found a need for that personally.
11-25-2009 09:06 AM
Sorry, my screen it 's a small one i didn't see the top one
A question in multipe loop are loop slave of other or both are dependent and can naturally share Global fonctionnal for example
If it's not abused have you a little example ( not professional ) that could demonstrate fonctionnality of base loop and multiple loop
Best Regards
Tinnitus