You could try increasing the timeout for the Wait for RQS in the setups function. An autoset can take quite a while, especially when first called. Frankly, I never use the autoset mode in my programs. I might use when I am experimenting with the scope to see how to best display a signal. When I've done that, then in the program I will issue the specific commands for vertical, horizontal, etc. It is usually quicker that way and then I knwo exxactly what the scope is set to. When using autoset, I've seen some unexpected results and invariably, have to query the scope to see what it though was the best settings. I'd rather send it the specific commands.