LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

array stop work when i use reinit to default

Hi guys,

i'm using a array to save data from my DAQ.. and it saves when some seconds elapsed..
the problem is.. when a i use the invoke node "reinit default" of array after it the array gets empty (ok) but dont get more data (problem)..
please help me!

thanks


0 Kudos
Message 1 of 4
(2,555 Views)
That's because you're using the loop index to indicate where to insert. You should not do this. In fact, you shouldn't use Insert Into Array. You should use Build Array.

Also:
  • your formula node can easily be replaced with LabVIEW code.
  • in your formula node you're checking if m<1 - this can't happen
  • rather than using the formula node and the Quotient & Remainder function, use the "Time has Elapsed" output to indicate that 10 seconds have passed
  • you do not have anything wired to the Write To Spreadsheet File function.
  • rather than use the VI Server function to "Reinit to Default" you can use a shift register to hold the snapshot of data over the 10 seconds
  • you should try to not have wires double-back on themselves and have wires looking like they go into the outputs of functions, as in the =0 function
0 Kudos
Message 2 of 4
(2,547 Views)
thank very much ! i'll try the hints!
0 Kudos
Message 3 of 4
(2,524 Views)
smercurio…

sorry the fools mistakes .. i'm learning yet..
u help me a lot!

=D


0 Kudos
Message 4 of 4
(2,522 Views)