09-12-2005 07:08 PM
09-12-2005 09:15 PM
09-13-2005 04:26 PM
09-13-2005 05:52 PM
Hi TMDATA,
While it's difficult to know what's happening based on the pictures, I do have a comment and suggestion(s),
Comment: The loop to the left of 1/x has the potential to demand lots of memory for buffered result array. (How many times does it loop? What are the dimensions of the input array?)
Maybe not here, but sometimes it's useful to use Highlight Execution (the light-bulb) to identify where code gets "stuck". This way, right before the error, you may see execution dissappear into a sub-vi, or notice a loop that iterates too may times. Please don't be offended if I suggest that using sub-vis to compartmentalize logic, would help in debug (as well as makes diagram more readable!)
Cheers!
09-13-2005 06:24 PM
09-13-2005 06:47 PM
... I did run highlight execution mode and found that sometimes it points to the build array, just in front of the format array to string function.
That is interesting. At that build-array, LabVIEW will have to allocate memory to accommodate a table wide enough for the single-array and with as many rows as the existing table +1. The single-array is data-samples wide (I think), but, correct me if I'm wrong the table is only Channel-count wide? Like I said, it's hard to _know_ what's happening, but
... perhaps the single-array should be appended to the table _before_ the Transpose?
Cheers.
09-13-2005 07:40 PM
If I appended the single-array _before_ the Transpose the data would get up into rows, instead of columns correct? Here is a sample of the file that it outputs when I leave the 1/x multiply by the element output from the index array out of the build array before it gets to format array to a string. There is the header, and then the data below. The first column is raw data from ch0, the 2nd column is scaled units data of ch0. The 3 column is ch1 raw data and the 4th column is scaled units data of ch1. Which all looks fine. But when you connect up the whole 1/x multiply by the element ........... it bombs with the memory error. It should just make the 1st column in the spreadsheet of time (ms), then the 2nd column ch0 raw, 3rd column ch0 scaled units....etc. And it worked as of last friday, but now I get this error for some reason.
09-13-2005 08:11 PM - edited 09-13-2005 08:11 PM
Hi TMDATA,
Per pic, the affect of THE build array, will be to add a [top] ROW (think "left to right") not a column. If the same build is put before the Transpose, the added-row will become the first (left-most) column (see example - attached).
@TMDATA wrote:
...Which all looks fine. But when you connect up the whole 1/x multiply by the element ........... it bombs with the memory error. It should just make the 1st column in the spreadsheet of time (ms), then the 2nd column ch0 raw, 3rd column ch0 scaled units....etc. And it worked as of last friday, but now I get this error for some reason.
This problem is consistent with my diagnoses - adding a very wide row would force LabVIEW to allocate memory for samples-squared cells..
But if it was working (per pic) and nothing has changed (except maybe number of samples acquired) then I give up!
Message Edited by Dynamik on 09-13-2005 08:12 PM
Message Edited by Dynamik on 09-13-2005 08:15 PM
Message Edited by Dynamik on 09-13-2005 08:16 PM
Message Edited by Dynamik on 09-13-2005 08:17 PM