Instrument control package: Difference between revisions

m
Serial opening time parameters
m (added direct link to forge)
m (Serial opening time parameters)
Line 46: Line 46:
</syntaxhighlight>
</syntaxhighlight>
}}
}}
Most properties can be set at opening time
Some properties can be set at opening time
{{Code|Serial port example: constructor call|<syntaxhighlight lang="octave" style="font-size:13px">
{{Code|Serial port example: constructor call|<syntaxhighlight lang="octave" style="font-size:13px">
s2 = serial("/dev/ttyS0", 9600, 6, "odd", 2) # Opens serial port ttyS0 in
s2 = serial("/dev/ttyS0", 9600, 10) # Opens serial port ttyS0 in
                                            # 9600, 6-O-2 configuration
                                    # 9600 baudrate with 1s read timeout
</syntaxhighlight>
</syntaxhighlight>
}}
}}
10

edits