Dear friends,
What code do I use to connect the Vaisala PTB-330 barometer to the CR-850? I need it to give me pressure readings every second using COM2.
The configuration below is giving me random letters, symbols, and numbers.
I ask for your help. Thanks.
SerialOpen (Com2,9600,0,10,1000)
Var=CHR(114)+CHR(13) 'CHR() = caracter "R"
SerialOut (Com2,Var,"",0,100)
Delay(0,100,msec)
SerialIn (Pressao_ATM,Com2,100,13,5000)
Delay(0,100,msec)
SerialFlush (Com2)
Check the configuration of the PTB330. It might be set to different serial port parameters like baud rate.
Thanks very much @JDavis!
The baud rate setting was incorrect. Now it's working.