ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Queue problem

I am taking data in from a DAQ system. I am trying to store the raw data into an Excel sheet. What I want to do is store all the data in an array and then dump it all into the Excel sheet at one time so that I do not have to continously append data to the Excel Sheet. I am attaching my code this this post. I have the queue working within the main loop. Can anyone help me out? Does anyone have code written for how to work a queue (other than examples on LabVIEW)?

 

Another issue I am having is that I can only put a 2D array into Excel. Using dynamic data, I am only getting a 1D array. Thank you in advance! You guys are awesome!

0 Kudos
Message 1 of 3
(2,880 Views)

You can double click on the Dynamic Data conversion function and select the output type, 2D array.  The following picture shows that the data can be converted to a 2D array.  Also, you can put a 1D array into Excel.  A 2D array would contain several rows and columns while a 1D would only occupy one row.

 

20527iB447E459B62AE5A8

 

You have another place where you placed a Build Array on a Dynamic Data wire.  You don't have to do this.  Remove the Build Array.

 

20531i9080E8778D6F7BD4  Remove Build Array and wire Dyamic Dat to the conversion function.

- tbob

Inventor of the WORM Global
0 Kudos
Message 2 of 3
(2,870 Views)

Chuck seems stuck on the same homework assignment


"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 3
(2,855 Views)