Python Examples

View examples for using the Synnax Python client.

One of the best ways to learn how to use the Synnax Python client is to look over and run examples. This page contains a list of links to examples that demonstrate how to perform various tasks.

Examples

NameDescription
Basic Read and WriteDemonstrates a basic read and write of channel data.
Stream WriteShows how to stream simulated sensor data to a set of channels.
Stream ReadShows how to live stream sensor data from a set of channels. Use this in conjunction with the stream_write.py example.
Async Stream ReadShows how to live stream sensor data from a set of channels in an asynchronous fashion. Use this in conjunction with the stream_write.py example.
Calculated ChannelsShows how to create and write to channels that are calculated from other channels. Use this in conjuction with the stream_write.py example
Create RangeCreates a range and reads data from it.
Create ChannelsShows how to create large numbers of channels simultaneously.
SimulationCreates a simulated data acquisition computer that writes a large amount of data to a set of channels.
Advanced Calculated ChannelsDemonstrates how to create calculated channels that are based on channels with different indexes.
ControlSets up a simulated data acquistion computer and then controls the simulation with a control sequence.
National InstrumentsDemonstrates how to use the Synnax Python client with National Instruments hardware.
OPC UADemonstrates how to use the Synnax Python client with OPC UA servers.
ArduinoDemonstrates how to use the Synnax Python client with an Arduino.