|
|
DataqFile Controls > WriteDataqFile > Properties > ChannelCount |
ChannelCount
Applies to: |
WRITEDATAQFILE Active X Control |
Description: |
Specifies the number of channels to write to the file. You must use this property only if you are using the SaveDataEx method to save your data. Since SaveDataEx is an array-based method retrieving binary data, ChannelCount is needed to properly correlate channels. Using the SaveData method, which saves data in variant form, ChannelCount is defined automatically. ChannelCount must equal the channel count of the data in the buffer. If you have acquired multiple channels and derived one new set data from them - that is one channel. If you acquired multiple channels and performed no calculations on the data - then this property would be set equal to the acquired channel count (ADChannelCount in SDK Control or ChannelCount in WinDaq Control). |
Syntax: |
WriteDataqFile1.ChannelCount=variable (where variable is the number of channels to be written to the file) |
Variable: |
|
Example: |
Dim ChannelList(32) As Integer Dim A(10000) As Integer
Private Sub Form_Load() ChannelList(0) = 0 ChannelList(1) = 7 End Sub
Private Sub DataqSdk1_ NewData(ByVal Count As Integer) DataqSdk1. GetDataEx A(0), Count WriteDataqFile1. SaveDataEx A(0), Count DQChart1. ChartEx A(0), 1, Count End Sub
Private Sub Start_Click() DataqSdk1. ADChannelCount = 2 DataqSdk1. EventPoint = 20 DataqSdk1. SampleRate = 1000 DataqSdk1. ADChannelList (ChannelList) WriteDataqFile1.ChannelCount = 2 DataqSdk1. Start WriteDataqFile1. Open End Sub
Private Sub Stop_Click() DataqSdk1. Stop WriteDataqFile1. Close End Sub |