Hi Kay,
The long time is because of the
clear all
command you have in the starting. This commands removes all functions from memory and therefore when you execute
analogoutput
it has to load all the drivers and functions needed. So if you try to run your script again without the clear all, you will see a substantial decrease in the time taken.
Hope that helps,
Manisha