Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

object memory management problem

When I am trying to write a data to ROM, I always encountered error -70063 which is "The buffer has not been configured properly. Buffer type cannot be changed. The buffer might exist in ROM, but has not been configured since the last power cycle."
It was all right at the first run, but got error after that.

The simple program is attached.

Could you find anything wrong?

Thanks.
0 Kudos
Message 1 of 2
(2,989 Views)
I was able to take a quick look at your code, and it looks like the error may be occurring do to how you have the sequence of VIs configured. By having the Delete wedged between Config and Write buffer then you may be destroying the buffer before writing it. I rearranged the code and it is running on my machine without any errors. I was not able to replicate your error message, but look at the attached code and see if it corrects the error for you.

The code deletes the existing buffer in memory and then recreates a buffer and saves it.

Regards,
Michael
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,989 Views)