08-08-2018 11:36 AM - edited 08-08-2018 11:38 AM
Well there's no code in the True condition, and the stacked sequence, which has the data collection code inside, is within the false condition. Unless, of course, I'm overlooking a different case structure. The original creator had a rather janky way of doing things.
08-08-2018 11:47 AM
As a quick sanity check, just wire a True constant to the case structure to prove that you can write more than one line to a file and determine if therer is something wonky about the conditions that heed to be met.
Ben
08-08-2018 11:48 AM
I'll give that a test once the data collection is over!
08-08-2018 11:52 AM
@etvg wrote:
Well there's no code in the True condition ....
In the code I am looking at, the FALSE case is empty, while only the TRUE case writes to the file. If your's is different, please attach the correct code.
.
08-08-2018 11:54 AM
Also note that you are creating a new unique file with each run, so make sure you are not looking at a stale data file from long ago.
08-08-2018 11:55 AM
That's my fault, I thought you were talking about the larger case structure, I am looking at an older version of the code on a different machine and forgot about that case structure to delete the first few rows. Sorry about that. I can completely remove that case structure and see if it works. Only reason that is there is because the function generator acts up and creates false data at the beginning.
08-08-2018 11:57 AM
The code writes to multiple lines by the way, it just won't produce data from multiple data collections.
08-08-2018 12:27 PM
What's your definition of "multiple data collections"? (Successive runs? Successive iterations of the outer loop? Something else?)
08-08-2018 01:04 PM
So the innermost for loop within stacked sequence 5 scans resonances of a frequency range defined on the front panel. By multiple data collections I mean scan and record this frequency range multiple times (as well as populate the output file with the frequencies and resonance amplitudes from all the scans).
08-08-2018 01:43 PM
I am relatively sure I solved this issue by getting rid of the shift register on the "How many scans?" for loop, making the save file subVI refnum and error nodes "last value" to replace the shift registers and deleting the "close file" function.