Author Topic: Keithley DMM7510 - Synchronizing TSP & Python codes  (Read 1075 times)

0 Members and 1 Guest are viewing this topic.

Offline Coolboy4999Topic starter

  • Newbie
  • Posts: 6
  • Country: pt
Keithley DMM7510 - Synchronizing TSP & Python codes
« on: July 05, 2022, 08:59:24 am »
Hello.

I'm working on getting a DMM7510 to work through Python code, which implements TSP commands with py_visa/py_visa_py libs.

The best way I've found to send TSP commands is with a "loadscript X (...) endscript" approach, with the "my_instrumet.write()" function calls.
However, Python just runs separately from TSP after sending the commands and the only way I've found to retrieve data/values from the DMM is through Python also with code such as:
Code: [Select]
my_instrument.write("print(tostring(tsp_value_to_return))")
value_in_py = my_instrument.read()

So, my questions here are:
  • Is there another way to get information from the DMM beyond the Python/TSP write("print(...)") & read functions?
  • If there is how could I get my Python code to check if a script has finished running in the DMM?
  • What is the difference between status.standard.enable and status.request_enable and how do they work? How can I check that something is ready to be read in the Output Queue?

Thanks for the attention.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf