Very Nice and thanks alot
I will try it by sure.
Robert
Installed all.
But already the first Command don't Work
import pyvisa
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
Cell In[4], line 1
----> 1 import pyvisa
ModuleNotFoundError: No module named 'pyvisa'
Also tried this:
import PyVISA
Same Error:
Not sure why
I am Installed all on C: with the Default Values the Installation Rutine gave me....
Installed Python 3 than Anaconda and as last NI_VISA all on C:
Jupiter starts and i open an Notebook session but it wont't work
So not sure whats going on
Also this way i Checked it:
(base) C:\WINDOWS\system32>py -m pip install --upgrade pip setuptools wheel
Requirement already satisfied: pip in c:\users\frunse\appdata\local\programs\python\python312\lib\site-packages (24.1.2)
Requirement already satisfied: setuptools in c:\users\frunse\appdata\local\programs\python\python312\lib\site-packages (70.3.0)
Requirement already satisfied: wheel in c:\users\frunse\appdata\local\programs\python\python312\lib\site-packages (0.43.0)
(base) C:\WINDOWS\system32>py -m pip install PyVISA
Requirement already satisfied: PyVISA in c:\users\frunse\appdata\local\programs\python\python312\lib\site-packages (1.14.1)
Requirement already satisfied: typing-extensions in c:\users\frunse\appdata\local\programs\python\python312\lib\site-packages (from PyVISA) (4.12.2)
(base) C:\WINDOWS\system32>
May be something is wrong with the PATH Variable on Windows
Found Help need to instal pyvisa this way on Conda Shell:
conda install -c conda-forge pyvisa
Now it looks like this but something didn't work also no massages whats going on here??? See attached picture.
Anaconda Shell tells that!!!
[I 2024-07-11 13:32:00.389 ServerApp] Connecting to kernel d89653e5-2b7f-4a61-a3fc-ac3fdfc1d611.
[I 2024-07-11 13:32:00.389 ServerApp] Restoring connection for d89653e5-2b7f-4a61-a3fc-ac3fdfc1d611:70119777-695e-4c42-bc23-ee2fd58194cb
0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
It seems realy slow here now i gott all Informations and it works like suggested!
So Kommunication with Generator works also
generator=rm.open_resource('TCPIP0::192.168.0.103::INSTR')
generator.read_termination = '\n'
print(generator.query('*IDN?'))
Got this:
Siglent Technologies,SDG2122X,0123456789,2.01.01.38R4
If i am right i need to do this next:
Commands for Generator to start an sweep between Start and Stop Frequencies with @ specified Voltage
Commands for Scope to get the recordet Values from SCOPE ADC after DUT (Filter or anything like this) on specified Channel (Triggering ?)
Commands to Plot an Graph from transfered Values.
Easy ....LOL ....NOT Realy
Colected some Commands that works so far with my Generator as Example:
Preparation for Sweeping Wave:
generator.write('C1:SWWV STATE,ON')
generator.write('C1:SWWV TIME,30S')
generator.write('C1:SWWV STOP,20000HZ')
generator.write('C1:SWWV START,20HZ')
generator.write('C1:SWWV CARR,AMP,0.5V')
generator.write('C1:SWWV CARR,OFST,0.1V')
generator.write('C1:SWWV CARR,PHSE,20')
generator.write('C1:SWWV STATE,OFF')
Output Aktivation Settings:
generator.write('C1:OUTP LOAD,50')
generator.write('C1:OUTP ON')
generator.write('C1:OUTP OFF')
Bassis Wave Command:
generator.write('C1:BSWV MAX_OUTPUT_AMP,2')
More next days
Robert