01-21-2015 04:00 PM
Hello everybody,
I am working with a progam that can perform two different tess in sequence. After that, the program saves the values into arrays to be saved in a spreadsheet. Sometimes though, I only need to perform one test. However, my program includes in the spreadsheet the values of the one test I choose not to run by taking the values from the previous run. Is there a way to reinitialize arrays to empty?
Thank you.
Solved! Go to Solution.
01-21-2015 04:04 PM
It is difficult to say without having a good understanding of what your code currently does. A picture says a thousand words; please post what you have so that you can get better davice.
01-21-2015 04:09 PM - edited 01-21-2015 04:09 PM
Thank you. Here is the code. The arrays I would like to reinitialize are the ones called DC Test Values and Pulse Test Values.
01-21-2015 05:05 PM
I didn't see the arrays you mentioned in the submitted code, but creating an empty array is simple -- put an Array constant on the block diagram and fill it with an element of the appropriate type. For example, here is an empty array of Dbl:
Wire this wherever you need an Empty Array to appear.
BS
01-21-2015 05:08 PM
The simple solution is just to write an empty array to all of your test results when you start a test sequence. Maybe add another state for sequence initialization.
01-21-2015 07:43 PM
Thank you.
01-21-2015 07:43 PM
Thank you.