Instrument control package: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 116: Line 116:
fclose(s1) # Closes and releases serial interface object
fclose(s1) # Closes and releases serial interface object
fclose(s2) # Closes and releases serial interface object
fclose(s2) # Closes and releases serial interface object
</syntaxhighlight>
}}
=== Example: Windows, serial port >COM9 ===
Opening a serial port higher than COM9 requires special syntax. [https://support.microsoft.com/en-us/kb/115831]
{{Code|open Windows higher serial port example|<syntaxhighlight lang="octave" style="font-size:13px">
# Opens serial port COM10
s1 = serial("\\\\.\\COM10");
</syntaxhighlight>
</syntaxhighlight>
}}
}}
Anonymous user

Navigation menu