Functions, Arguments and Return Values
Write reusable Python functions that accept Dataset descriptors and return summaries, including when some fields are missing.
Write reusable Python functions that accept Dataset descriptors and return summaries, including when some fields are missing.
Declare typed script parameters in GX-TXT and change values in the Script Runner between executions.
Use for, range and enumerate to iterate through sequences. Publish a synthetic series and list Datasets in a GX-TXT Session.
Use a while loop with a counter and stopping condition to read a GX-TXT Dataset in chunks.
Compare values with Python and combine boolean conditions. Check GX-TXT capabilities and the number of available samples.
Use if, elif and else to control a Python script. Check an API version and operation before using it in the GX-TXT Script Runner.
Use Python exceptions to handle unavailable APIs in GX-TXT. See a controlled example of raising, catching and reporting an error.
Work with Python lists, tuples, indices and slices. Use a small set of synthetic readings and inspect available GX-TXT APIs.
Organize data with Python dictionaries, inspect a GX-TXT API descriptor, and read optional fields safely with get.
Distinguish integers, floats and booleans in Python. Calculate an acquisition duration from the sample count and sampling interval in GX-TXT.