03-10-2021 05:29 AM
Hello,
I have recently acquired a DRUCK GE PACE1000 in our Radiotherapy Physics department and want to be able to view the current air pressure reading over our network. So far I have been able to access the device page by typing its hostname or IP address into a web browser, but there is no obvious way to see a current pressure measurement. I don't need to be able to control the device or anything, just get a measurement. I can't see a way to do this from the instruction manual or device settings, other than maybe to download LabVIEW software and drivers. But this isn't really the solution I'm are looking for since I want to be able to access an air pressure reading from anywhere without having to install software on every possible computer we may want to access it from.
Is there actually a way to achieve this?
Thanks
Solved! Go to Solution.
03-11-2021 05:55 AM
It's a bit difficult, to do it without specific software developed for sharing it. Actually, you can achive the goal with a LabVIEW simple program. So why don't you want to do it?
03-16-2021 08:43 AM
import pyvisa
# instantiate the PyVISA-py backend using '@py'
rm = pyvisa.ResourceManager('@py')
# Initialise the instrument using the VXI-11 Address String. Edit to your own device.
with rm.open_resource("TCPIP::192.168.186.120::inst0::INSTR") as druck:
sens_press = float(druck.query(':SENSe:PRESsure?').split()[1]) #Query returns string, so must split and float to get pressure value alone.
print(f'{sens_press:.2f}mbar')