Hi,
I need some help using 'script' in lxi-tools.
lxi-tools version 2.6, fedora dnf install.
In the 'script' window i have this. Which does not work.
psu = lxi_connect("192.168.1.124", 9221, nil, 2000, "RAW") --
print("psu id = " .. lxi_scpi(psu, "*IDN?"))
lxi_disconnect(psu)
Using the 'scpi' window I can send '*IDN?'', using a manual configured, ip address, RAW/TCP, 9221. This works.
Even using a simple bash script I can get a response.
#!/bin/bash
IP_ADDR=192.168.1.124
PORT=9221
lxi benchmark --address $IP_ADDR --raw --port $PORT
lxi scpi --address $IP_ADDR --raw --port $PORT "*IDN?"
lxi scpi --address $IP_ADDR --raw --port $PORT "v1 12.34"
lxi scpi --address $IP_ADDR --raw --port $PORT "v1?"
But the 'script' window has me stumped.
Can anyone provide advice?