HelpWizard Pages Linking Technologies3/en
Version vom 18. März 2022, 08:23 Uhr von Cg (Diskussion | Beiträge)
Linking Technologies: Python Actions
Lets assume, that the input to the C-function should come from a Python function (assume that you have imported a module, which reads a value from a measurement device or your device under test). Python packages are typically installed via the "pip" installer.
Create a new Python-action with input and output pins and type:
# import <your actual modules here> # dummy - in reality you'd call into your module... def readFromDevice(portNr): return "1.23456" def execute(): port = inPin.value() outPin.value( readFromDevice(port) )
This can now be connected to the sequence: