beautypg.com

Comm object settings – Vernier LabPro User Manual

Page 91

background image

Revision Date: 08/02/02

LabPro Technical Manual

D-4

inputvalue = Mid(labpro.Input, 5, 4)

Else REM the exponent is not zero

REM input value is equal to 4.40904 ^ 00
range = "." + Mid(labpro.Input, 5, 4) ^ Mid(labpro.Input, 15, 1)

End If

If you are using negative numbers you will need to add If statements to check if the 4th and 13th
characters are "+" or "-". (Mid(labpro.Input, 4,1) and Mid(labpro.Input, 13,1))

Comm Object Settings

In the Property Window of your Comm Object you will need to set some properties so that it can
communicate with LabPro correctly.

DtrEnable = False
EofEnable = False
HandShaking = 0-comNone
RtsEnable = True
Settings = 38400,n,8,1
SThreshold and RThreshold = 0

Make sure that the baud rate = 38400 and the parity is off.