PROLOGIX_HELP
 
 Return a list of available Prologix USB-to-GPIB firmware commands. Inputs
------
default: DataContainer
    Any DataContainer - likely connected to the output of the OPEN_SERIAL block.  Params:    connection : Serial  The open serial connection with the instrument.     Returns:    out : TextBlob  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, TextBlob, flojoy
@flojoy(deps={"pyserial": "3.5"}, inject_connection=True)
def PROLOGIX_HELP(
    connection: SerialConnection,
    default: Optional[DataContainer] = None,
) -> TextBlob:
    """Return a list of available Prologix USB-to-GPIB firmware commands.
    Inputs
    ------
    default: DataContainer
        Any DataContainer - likely connected to the output of the OPEN_SERIAL block.
    Parameters
    ----------
    connection: Serial
        The open serial connection with the instrument.
    Returns
    -------
    TextBlob
        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\r\n")
        s = set.read(1000).decode()
    except Exception:
        s = traceback.format_exc()
    return TextBlob(s)
Videos
Control Agilent 34410A multimeter with Flojoy
Example
Having problems with this example app? Join our Discord community and we will help you out!