I'm using the Waveforms 3.21.2 SDK and struggling to get the SerialPort module to at least read the string that is received from another microcontroller board.
This microcontroller board's serial is using the USB CDC and it is a generic Raspberry Pico board. It is connected to the PC like any other serial ports.
For example, here's the code:
var com = new SerialPort();
// wait for the com port to be available:
while(!com.open("COM6",115200)) {}
// The microcontroller board sends a string example: Hello World to the PC after the board is detected and printed on the output:
print(com.read());
However it doesn't read anything - not sure if I missed out something there. Also, any more examples of the SerialPort for the SDK, especially reading strings?
Question
The_YongGrand
Hello Digilent support,
I'm using the Waveforms 3.21.2 SDK and struggling to get the SerialPort module to at least read the string that is received from another microcontroller board.
This microcontroller board's serial is using the USB CDC and it is a generic Raspberry Pico board. It is connected to the PC like any other serial ports.
For example, here's the code:
var com = new SerialPort();
// wait for the com port to be available:
while(!com.open("COM6",115200)) {}
// The microcontroller board sends a string example: Hello World to the PC after the board is detected and printed on the output:
print(com.read());
However it doesn't read anything - not sure if I missed out something there. Also, any more examples of the SerialPort for the SDK, especially reading strings?
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now