11-18-2009 06:32 AM
Hi all,
I am having some problems with my program. The problem is that the program runs perfectly on the first run, creating an array of data that is received from the serial port and writes it to a spreadsheet. However when the program is run again without closing the window or changing anything in the block diagram, the new array is written to the spreadsheet along with the unwanted old one, this time in two columns.
If something in the block diagram is moved the program runs perfectly on the next run. Does anyone know why this data is getting stuck in mwemory somewhere and how to get rid of it without having to reopen the program each time??
Any help is welcome
Solved! Go to Solution.
11-18-2009 06:36 AM
I assume that you are using uninitialized shiftregisters to collect your data in combination with "build array".
Solution: If you don't want to have old data in the shiftregister, you have to init it.
Note: this is desired behavior
hope this helps,
Norbert
11-18-2009 06:46 AM
Or if you are using a waveform chart, you will need to clear the history. Do this with a property node.
11-18-2009 06:50 AM
11-18-2009 06:52 AM
11-18-2009 06:53 AM
In your case, you are using a feedback node which is similar to the shiftregister:
Norbert
11-18-2009 06:56 AM
Wire the initialize input on the node.
11-18-2009 07:08 AM
Can i Init a feedback node somehow?
11-18-2009 07:12 AM - edited 11-18-2009 07:16 AM
? It is shown in the picture in my last post
Never Mind 😉
11-18-2009 07:12 AM