Hi...
Would anyone help me, how to use serial lib?
Any example?
Thank you very much,
cat3282828
How to use serial port?
Moderator: MSandro
Re: How to use serial port?
Here are the built-in GP serial port functions:
-- Serial Port --
listSerialPorts
openSerialPort
isOpenSerialPort
closeSerialPort
readSerialPort
writeSerialPort
I got this by running the 'help' function in a workspace window. (To open a workspace, first enter developer mode, then select 'workspace...' from the stage menu.)
This gave me a long list of built-in functions. You can scroll down to find the serial port functions.
You can use the 'help' function with the name of a built-in function in a workspace like this:
That opens a new window that says what the function does:
A good way to learn about the serial port is to plug some device into the serial port and experiment with the serial port blocks.
I hope that helps!
-- Serial Port --
listSerialPorts
openSerialPort
isOpenSerialPort
closeSerialPort
readSerialPort
writeSerialPort
I got this by running the 'help' function in a workspace window. (To open a workspace, first enter developer mode, then select 'workspace...' from the stage menu.)
This gave me a long list of built-in functions. You can scroll down to find the serial port functions.
You can use the 'help' function with the name of a built-in function in a workspace like this:
That opens a new window that says what the function does:
A good way to learn about the serial port is to plug some device into the serial port and experiment with the serial port blocks.
I hope that helps!