PROLOGIX_HELP
Download Flojoy Studio to try this app
  
 Return a list of available Prologix USB-to-GPIB firmware commands. Requires an OPEN_SERIAL block.  Params:    connection : Serial  The open serial connection with the instrument.     Returns:    out : String  A list of available Prologix USB-to-GPIB firmware commands    
Python Code
import traceback
from typing import Optional, cast
import serial
from flojoy import DataContainer, SerialConnection, String, flojoy
@flojoy(inject_connection=True)
def PROLOGIX_HELP(
    connection: SerialConnection,
    default: Optional[DataContainer] = None,
) -> String:
    """Return a list of available Prologix USB-to-GPIB firmware commands.
    Requires an OPEN_SERIAL block.
    Parameters
    ----------
    connection: Serial
        The open serial connection with the instrument.
    Returns
    -------
    String
        A list of available Prologix USB-to-GPIB firmware commands
    """
    try:
        # Start serial communication with the instrument
        set = cast(serial.Serial, connection.get_handle())
        if set is None:
            raise ValueError("Serial communication is not open")
        set.write(b"++help\n")
        s = set.read(1000).decode()
    except Exception:
        s = traceback.format_exc()
    return String(s)
Videos
Control Agilent 34410A multimeter with Flojoy
Example App
Having problems with this example app? Join our Discord community and we will help you out!