Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

Code to use CR-850 with Barometer PTB-330 Vaisala.


Unilab Jan 26, 2026 03:13 PM
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)

JDavis Jan 26, 2026 04:12 PM

Check the configuration of the PTB330. It might be set to different serial port parameters like baud rate.


Unilab Jan 26, 2026 05:54 PM

Thanks very much @JDavis!

The baud rate setting was incorrect. Now it's working. 

Log in or register to post/reply in the forum.