DLL Func to Switch Between Oscilloscope - Spectrum Analyzer

I’m currently developing a cross compatible desktop application that anyone can hook up PCSGU250 or PCS1000 and start using it. What i want is completely disable
and hide original GUI app (pclab) for both 250 & 1000 ; and handle everything over my app.

I implemented almost every function for both PCSGU250 and PCSU1000 DLL files; but can’t handle the switch between modes.

How can I click the button “Oscilloscope” and “Spectrum Analyzer” located on the original GUI via DLL, or pure serial messages to device?

My other problem is determining the wait time before calling RunOn functions. It’s different for both devices and their corresponding demo modes.
Currently my solution is to wait ( 3000ms * attemptCount ) after calling Start_X and check for DataReady function to whether it returned “true”.
How can I determine if the GUI is ready and can accept new commands? Any better way to do this?

[quote]How can I click the button “Oscilloscope” and “Spectrum Analyzer” located on the original GUI via DLL, or pure serial messages to device?[/quote]I’m sorry, the Spectrum Analyzer mode is not supported by the DLL.

[quote]What i want is completely disable
and hide original GUI app (pclab) for both 250 & 1000 ; and handle everything over my app.[/quote]You can do this by opening in a text editor the file PCSGU250.ini in the folder:
C:\Users<username>\AppData\Local\Velleman\PCSGU250
In the section [ScopeMainForm] change the value “Top” to e.g.:
Top=2000
The GUI will be beyond the visible screen area of the screen.

Do the same with the ‘Top’ in the section [ScopeMainForm_1000] of the file WinDso.ini located in the folder:
C:\Users<username>\AppData\Local\VirtualStore\Program Files (x86)\Velleman\PCLab2000SE