LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Populating an Array with measurements


@JÞB wrote:

@cbutcher

You should look into installing the Code Capture Tool via VIPM

You can automatically backsave snippets

possibleStates_BD.png


It took me a while to figure out how to get it installed (duh) but now, if I could give you more than 1 kudos, I would.

 

As an alternative, have a backsaved snippet.

kudos.png


GCentral
Message 11 of 13
(825 Views)

I have redesigned the program as a state machine.  Everything is still working as desired with the exception of writing the values to a file.  Previously, I was planning to build an array of the number of sites for a given panel.  Then write the file when that array was full.  The idea being that one panels worth of data would be written to a single row in the spreadsheet.

 

I am still having issues getting that array to populate the way I want, so I have moved to writing to the file after each measurement.  The problem I am having with this method is knowing how many readings have been written to the file, in order to add a newline in for a new sheet.

0 Kudos
Message 12 of 13
(818 Views)

If your goal is only to check for the number of Captures equal to the number of Sites, you should be able to add a shift register to your loop, and set the value equal to sites in the Init case. Then in capture, decrement the counter and compare with 0. If (after decrementing) the value on the shift register is equal to zero, you have Sites number of measurements.


GCentral
0 Kudos
Message 13 of 13
(810 Views)