This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to open ALP tool using python or VBA (excel) script

Other Parts Discussed in Thread: ALP

I need to open ALP tool and select the serializer connected with the PC automatically . 

I have tried the following VBA script in excel 

Sub Initialization()

Shell ("C:/AnalogLaunchPADv1.54.0010/MainGUI.exe")

End Sub

But it throws a error like 

Traceback (most recent call last):
File "MainGUI.py", line 28, in ?
ImportError: No module named Strings.

Same i have tried with the following python code

import os
import subprocess, sys
from subprocess import Popen, PIPE
subprocess.Popen(r"C:/AnalogLaunchPADv1.54.0010/MainGUI.exe")

Same error thrown after executing the python script.

Traceback (most recent call last):
File "MainGUI.py", line 28, in ?
ImportError: No module named Strings.

 

But if I open the MainGUI.exe directly it is opening properly without any error.

Can you please tell how to open the ALP tool and select serializer connected automatically through VBA or Python script .

Quick response is most appreciable.

Thanks,

Jaisshri.C

  • Hi Jaissry,

    Alternatively, ALP has a Scripting tab that's essentially a Python shell and that allows you to run Python scripts for configuration of devices. Within this scripting tab you may call macro functions for setting the device to various mode. What device part number are you working on, and what operation are you trying to perform?

    Cordially,

    Rodrigo Natal

    DPS Applications Engineer