07-16-2021 08:08 AM
This is WAY overcomplicated. The example that GerdW gave takes the data from the VISA read and logs it to a file. There's no reason for a queue if you're not sending it to another loop. If sending to another loop then the queue should be created prior to the loops and the queue reference wired to both loops (no local variables).
08-05-2021 10:51 PM
Hi,
Here is my new VI. This time i used state machine pattern. Unfortunately I don't have a device to try this VI therefore I used a boolean. So I was able to see if the queue was working or not but i have no idea about the other side.
Could you please help me?
Best regards.
08-06-2021 06:49 AM - edited 08-06-2021 06:49 AM
Based on what you supplied, I would not use a State Machine. You can just do the action inside of the Event Structure. But even then, you are not doing anything with the queues, so why even have them? If you are after a Producer/Consumer, then you will want something more like this.
08-06-2021 07:05 AM
Hi,
Thank you for your answer. I'm going to try Producer/Consumer in my VI.
Also, thanks again for the example.
Best regards.