I am not sure if this is a bug or if my code is bad. Trying to script the export of images following each test. On subsequent runs of the script, the image which is exported automatically is identical to the previous one, instead of being updated to reflect the current test results. If I open the instrument window, the image updates and I can export manually. If I continue to run the script without opening the instrument window manually, the image never updates to reflect current test results.
Is there something that I am missing to get the image to update before exporting?
Here is my code:
clear();
var testname = Tool.getText("Test Name:",testname);
var freqfilename = "/Volumes/Macintosh HD/Users/EricDunn/Desktop/TestIn_Freq_"+testname+".png";
Network.single();
Network.wait();
Network.stop();
Network.Export(freqfilename);