Hi d.s.,
This should work, and it still does work in DIAdem 8.1, but you have found a bug in DIAdem 9.0. I re-wrote your VBScript so that it would function in both DIAdem 8.1 and DIAdem 9.0 and verified the problem. The critical point is not the saving step but rather the deleting step. You ought to be able to replace the channel = 0 code for each curve with a single GraphObjChnClear("2DAxis1") command-- but again that works in DIAdem 8.1 and not in DIAdem 9.0.
But there is good news. If instead of channel = 0 you use channel = 100000 (or anything greater than the maximum channel number 65536), it does work in DIAdem 9.0. Try the code I enclose below.
Regards,
Brad Turpin
DIAdem Product Support Engineer
National Instruments