Editing Instrument control package
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 171: | Line 171: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | }} | ||
Most 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, | s2 = serial("/dev/ttyS0", 9600, 6, "odd", 2) # Opens serial port ttyS0 in | ||
# 9600, 6-O-2 configuration | |||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | }} |