Instrument control package: Difference between revisions

Jump to navigation Jump to search
Check for interface support script example
(Added compatibility table)
(Check for interface support script example)
Line 20: Line 20:


Where: <span style="background:green">(VER)</span> - Included since VER version; <span style="background:yellow">(WIP)</span> - Work In Progress and will probably be included in next release; (-) - Not supported / Untested.
Where: <span style="background:green">(VER)</span> - Included since VER version; <span style="background:yellow">(WIP)</span> - Work In Progress and will probably be included in next release; (-) - Not supported / Untested.
You might see errors while doing "pkg install", which mean that package is unable to support related interface on your platform (e.g. due to missing header files), therefore one should <b>always</b> check for the supported interfaces before trying to use them:
{{Code|Check for interface support|<syntaxhighlight lang="octave" style="font-size:13px">
if (exist("serial") == 3)
    disp("Serial: Supported")
else
    disp("Serial: Unsupported")
endif
#similarly with:
#exist("parallel") == 3
#exist("i2c") == 3
</syntaxhighlight>}}


= Examples =
= Examples =
10

edits

Navigation menu