I have my sensor connected to com1. Here is my code:
Private Sub CWButton1_ValueChanged(ByVal Value As Boolean)
Do While CWButton1.Value = True
Data = CWSerial1.Read
AllData = AllData + Data
TextIn.Text = AllData
CWGraph1.ChartY Val(Data)
DoEvents
Loop
End Sub
My problem is I just want one sample per loop, but I'm getting like 10. I don't know if I can change the output of the sensor. Is there a way to just get one sample at a time?
BTW I'm new with measurement studio, but it is very cool!
thanks,
Brian