DataqSdk Control > Properties > DigitalOutput

Previous | Next

DigitalOutput

Applies to:

DATAQSDK Active X Control

Description:

Output digital pattern if digital out is available. This is an immediate function that writes (outputs) a word to the digital output port. The valid output value varies between devices (how many output ports are available). See also Digital In and Out Locations.

This property is not available when using a DI-194, DI-195B , DI-154 or DI-1100.

Syntax:

DataqSdk1.DigitalOutput=variable (where variable is designated by the programmer or user as the word to send to the digital port)

Variable:

Integer

Example:

Private Sub DataqSdk1_ NewData(ByVal Count As Integer)

DQChart1. Chart (DataqSdk1. GetData)

If toggle = True Then

    'sends signal to digital ports

    DataqSdk1.DigitalOutput = 32767

    toggle = False

Else

    'this toggles the digital output ports to off

    DataqSdk1.DigitalOutput = 0

    toggle = True

End If

End Sub

 

Private Sub Start_Click()

DataqSdk1. EventPoint = 20

DataqSdk1. Start

End Sub

 

Private Sub Stop_Click()

DataqSdk1. Stop

End Sub

To set the direction of bidirectional bits see Setting Bidirectional Digital Bits.

 

Reference Materials | Top