06-17-2010 09:12 AM
I am using a queue and trying to connect to a sink of type 1-dArray of double...
I used the release queue and it says I have a 1-d (sub)array of cluster of 1 element.
I am new to programing and I do not know how to fix this or if I am doing something wrong.
Thanks for helping
06-17-2010 09:15 AM

06-17-2010 09:31 AM
here it is. I want to be able to view a chart of the data but only when I click a button. And I do not want the chart to have just started I want the past 5 min to show up on the chart when I click the button. So I believe I am doint this right to put the array of data into the history. I recieve data at 10hz.
That help?
06-17-2010 09:44 AM
06-17-2010 09:49 AM
I think you need to post your actual VI so we can see all that you are trying to do. It doesn't make sense to be placing an array into a queue, then proceeding to destroy the queue. Why are you doing that?
The output of release queue is a 1-D array of cluster of a 1-D arrays. So you need to iterate through your 1-D array, then use the unbundle function to get your array out of the cluster.
06-17-2010 09:53 AM
Well yesterday I asked how I should make this array so that the elements would be replaced by new elements on this page...
http://forums.ni.com/ni/board/message?board.id=170&thread.id=505780
and they suggested I use a queue.
06-17-2010 09:55 AM - edited 06-17-2010 09:56 AM
Also the subarray going into the queue is just 1 element. I want to make an array of these elements. Does that make sence?
sorry for double post
06-17-2010 09:57 AM
Okay, a lossy queue makes sense for storing a finite history worth of queue elements. But why are you releasing the queue right after adding an element to it? That kills the history and the queue meaning you can't add anything to it again.
You should only kill the queue at the end. To see the elements that are in the queue history, you want to use Get Queue Status.
06-17-2010 10:01 AM
06-17-2010 10:09 AM