Posted Mon, 20 Mar 2023 23:03:54 GMT by B, Michael
My coworker and I are both encountering difficulty getting the RSA API to work for us in Python.<br> <br> We both have the 3.23.0022 version installed from RSAAPI-64_3_23_0022_066169110.exe<br> I have the SignalVu PC application 5.0.0146 installed from SignalVu_PC_5.0.0146_066143440.exe - apparently downloaded during a limited window when that was available.<br> She has 5.0.0169 installed.<br> <br> I have these in the Windows PATH variable as reported in Powershell with &quot;echo $Env:path&quot;:<br> C:\Tektronix\RSA_API\lib\x64<br> C:\Program Files\Tektronix\SignalVu-PC\RSA\Client\<br> <br> I am starting &quot;py&quot; from Powershell in the C:\Tektronix\RSA_API\lib\x64 directory and running this: <pre>PS C:\Tektronix\RSA_API\lib\x64&gt; py Python 3.11.2 (tags/v3.11.2:878ead1, Feb 7 2023, 16:38:35) [MSC v.1934 64 bit (AMD64)] on win32 Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information. &gt;&gt;&gt; import os &gt;&gt;&gt; from ctypes import * &gt;&gt;&gt; rsa = cdll.LoadLibrary(&quot;RSA_API.dll&quot;) Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; File &quot;C:\Users\username\AppData\Local\Programs\Python\Python311\Lib\ctypes\__init__.py&quot;, line 454, in LoadLibrary return self._dlltype(name) ^^^^^^^^^^^^^^^^^^^ File &quot;C:\Users\username\AppData\Local\Programs\Python\Python311\Lib\ctypes\__init__.py&quot;, line 376, in __init__ self._handle = _dlopen(self._name, mode) ^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: Could not find module 'RSA_API.dll' (or one of its dependencies). Try using the full path with constructor syntax. &gt;&gt;&gt;</pre> <p>I've downloaded &quot;Dependencies&quot; from https://github.com/lucasg/Dependencies to try to figure out what DLL dependencies might be causing problems.<br> <br> So far I can see these problems in the red-marked items, typed here instead of showing a screenshot:<br> <br> C:\Tektronix\RSA_API\lib\x64\RSA_API.dll<br> depends on<br> C:\Tektronix\RSA_API\lib\x64\GPMeasDSP.dll<br> depends on<br> ...<br> RSAShared (&quot;could not be found on disk&quot;)<br> SAPlatformShared (&quot;could not be found on disk&quot;)<br> ...<br> <br> and<br> <br> C:\Tektronix\RSA_API\lib\x64\RSA_API.dll<br> depends on<br> C:\Tektronix\RSA_API\lib\x64\BaseDSPL.dll<br> depends on<br> ...<br> SAPlatformShared (&quot;could not be found on disk&quot;)<br> ...<br> <br> <br> <br> Both RSAShared and SAPlatformShared are DLLs in C:\Program Files\Tektronix\SignalVu-PC\RSA\Client\ - adding that directory to my path, in the hopes that DLLs would be located there, has not helped.<br> <br> Is there a compatibility problem between SignalVu PC released in 2023 and this API released in 2019? Is there another way we can try to figure out what it is about our installations that is making the RSA_API.dll mad?<br> <br> Thank you,<br> <br> -Michael</p>
Posted Tue, 21 Mar 2023 17:31:26 GMT by Teles, Afonso
Hi Michael,<br> <br> First of all, the RSA API is unsupported and is not meant for general purpose automation, for that there is the much better supported and easier to use programming interface for SignalVu-PC: <a href="https://download.tek.com/manual/SignalVu-PC-Programmer-Manual-077072107.pdf">https://download.tek.com/manual/SignalVu-PC-Programmer-Manual-077072107.pdf</a>.<br> <br> If you still wish to use the RSA API (main advantage being speed and Linux support), then here are a few tips:<br> 1) .dll files should usually be placed in the Windows System32 directory so they can be loaded dynamically<br> 2) the RSA API works independently of SignalVu-PC and, in fact, it is best to not have both running at the same time as they can interfere with each other

You must be signed in to post in this forum.