From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
10-05-2012 10:54 AM
Hello *E* I took a look at your VI, and could not understand why you had the enums wired to the obtain queue, enqueue element, or deque element. These VIs should store the data you want the consumer loop to manipulate. I made some changes to this VI and you can find it attached below.
Regards,
Izzy O.
Applications Engineer
National Instruments
10-05-2012 12:39 PM
izzy. O
Thank you very much for your reply!
10-05-2012 02:23 PM
Can you please resend me the VI example in 2011 version or lower please?
10-05-2012 02:36 PM
LV 2011
10-05-2012 05:27 PM
10-05-2012 05:45 PM
If you wire the output from the Dequeue Element node in the lower loop you will get the row of data that the upper loop posted. The queue is used to pass data from one loop to another. One or more loops can post (enqueue) data to the queue. Only one loop should remove (dequeue) data from the queue.
10-05-2012 07:06 PM
10-06-2012 01:06 PM
10-06-2012 01:14 PM
10-09-2012 06:59 AM
In the producer loop I am able to read in the whole spread sheet at one time. Then the data is passed in to an index array then the out put is enqueued. Then it is dequeued at the bottom. Is there a way to make all the data available to the consumer loop soon after it is read in from the producer loop? right now im only able to read it in row by row as it is enqueued by the index array. I would like all rows and columns be available at the same time as a block instead of row 1 then row 2 then row 3 etc. The reason being is the data in the file will be time stamped and over written so it need to all be available at the same time. I think the problem may be that its read in as a 2 D array and going in the enqueue as a 1 D array therefore its dequeue as a 1 D array.