WinDaq Control > Methods > GetIntercept

Previous | Next

GetIntercept

Applies to:

WINDAQ Active X Control

Description:

WinDaq applies a linear scale for each channel it acquires using the equation y=mx+b, where y is scaled units, x is ADReading (binary data), m is the slope and b is the intercept. In GetIntercept, the software returns the intercept (b) for the channel specified.

The channel is the logical channel in the index on the channel list, not the physical channel. For example, if the channel list is 1, 5, 8, 9, 10, and you want the intercept of channel 8, you would set the channel argument of GetIntercept to 2. If you want the intercept of channel 1, you would set the channel argument of GetIntercept to 0.

Syntax:

variable=Windaq1.GetIntercept(Channel) (where Channel is the logical channel in the index on the channel list)

Variable:

Double

Example:

Private Sub Stop_Click()

WinDaq1. Stop

End Sub

 

Private Sub Start_Click()

WinDaq1. EventLevel = 10

WinDaq1. Start

End Sub

 

Private Sub WinDaq1_ NewData(ByVal Count As Integer)

DQChart1. Chart (WinDaq1. GetDataStream(FormatBinary))

'this gets information associated with the first channel

Label1.Caption = "The intercept is " & WinDaq1.GetIntercept(0)

End Sub

 

Reference Materials | Top