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.

TSW1400EVM: Problem to load HSDCProAutomation.dll with Python 2.7

Part Number: TSW1400EVM

Dear all,

could someone paste a script-snippet to load this dll with Python 2.7.

I always get the error: no win32 application!

I am confused.

Thanks a lot.

Regards,

Frank

  • Hi Frank,

    I have tested this just now and it seems that my python2.7 is a 32 bit version. This forces me the use of the 32 bit dll. After doing so, it seems to solve my loading of the dll problem. To check this, you can run the check_python2p7_32_64_bit.py script to see whether your python 2.7 is 32 or 64 bit. 

    I work with python 3 near 100% of the time and have created my own wrapper for the HSDC Pro DLL to use for my automation in the lab. What I have quickly done is remove all of the syntax and format problems which cause errors in python 2.7 and then created a very basic test script. This script (example.py) simply minimizes hsdc pro, waits 1 second, then re-opens the window, it prints the snr to console, takes a new capture, and then prints all of the single tone parameters.

    Feel free to use this wrapper as you would like or just reference for building your own. Please note that I will not be able to support any questions about this wrapper since it is not something we have officially released and that some of these functions may not have properly carried over to python 2.7. Hope this helps.

    HSDCPro_dll_wrapper_python2p7.zip

    Regards, Chase