Skip to content

Python Core API HF2 Only Functions

programRT(dev, filename)

Program RT. Only relevant for a HF2 device.

Parameters:

Name Type Description Default
dev str

Device identifier e.g. 'dev99'.

required
filename str

File name of the RT program.

required

update()

Check if additional devices are attached.

Only revelant for connections to an HF2 Data Server. This function is not needed for servers running under windows as devices will be detected automatically.

echoDevice(dev)

Deprecated, see the 'sync' command.

Sends an echo command to a device and blocks until answer is received. This is useful to flush all buffers between API and device to enforce that further code is only executed after the device executed a previous command.

Parameters:

Name Type Description Default
dev str

Device string e.g. 'dev100'.

required

flush()

Deprecated, see the 'sync' command.

The flush command is identical to the sync command.