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 509: | Line 509: | ||
instrhwinfo will display the avilable devices in the system | instrhwinfo will display the avilable devices in the system | ||
{{Code| | {{Code|GPIB example|<syntaxhighlight lang="octave" style="font-size:13px"> | ||
instrhwinfo("spi") | instrhwinfo("spi") | ||
}} | }} | ||
Line 519: | Line 518: | ||
Example opening an performing IO on a device /dev/spidev0.0. | Example opening an performing IO on a device /dev/spidev0.0. | ||
{{Code| | {{Code|GPIB example|<syntaxhighlight lang="octave" style="font-size:13px"> | ||
# open device | # open device | ||
spidev = spi("/dev/spidev0.0", 'clockpolarity', 'idlehigh', 'clockphase', 'firstedge') | spidev = spi("/dev/spidev0.0", 'clockpolarity', 'idlehigh', 'clockphase', 'firstedge') | ||
Line 529: | Line 528: | ||
# close the device | # close the device | ||
clear spidev | clear spidev | ||
}} | }} | ||
[[Category:Octave Forge]][[Category:Packages]] | [[Category:Octave Forge]][[Category:Packages]] |