DataqFile Controls > ReadDataqFile > Methods > EUTag

Previous | Next

EUTag

Applies to:

READDATAQFILE Active X Control

Description:

Returns the engineering units tag of a specified channel.

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 engineering units tag of channel 8, you would set the channel argument of EUTag to 2. If you want the engineering units tag of channel 1, you would set the channel argument of EUTag to 0.

Syntax:

variable=ReadDataqFile.EUTag (Channel)

Variable:

String

Example:

Private Sub Exit_Click()

ReadDataqFile1. Close

End

End Sub

 

Private Sub Form_Load()

ReadDataqFile1. Open

DQChart1. Chart (ReadDataqFile1. GetData(DQChart1. Xmax, FormatBinary))

Label1.Caption = "The first channel is in " & ReadDataqFile1.EUTag(0) & "engineering units."

Label2.Caption = "The second channel is in " & ReadDataqFile1.EUTag(1) & " engineering units."

End Sub

 

Private Sub MoveRight_Click()

ReadDataqFile1. MoveTo DQChart1. Xmax, 1

DQChart1. Chart (ReadDataqFile1. GetData(DQChart1. Xmax, FormatBinary))

End Sub

 

Private Sub MoveLeft_Click()

ReadDataqFile1. MoveTo -DQChart1. Xmax, 1

DQChart1. Chart (ReadDataqFile1. GetData(DQChart1. Xmax, FormatBinary))

End Sub

 

Reference Materials | Top