In This Topic
Gets the latest analog-to-digital converter (ADC) values in the buffer of the USB device.
Syntax
'Declaration
Public Function Fast_Data_Request( _
ByVal DeviceHandle As IntPtr, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As String, _
ByVal As String, _
ByVal As String, _
Optional ByVal As Byte _
) As String
'Usage
Dim instance As USB_DLL
Dim DeviceHandle As IntPtr
Dim DelimitedStyle As Integer
Dim DeviceNumber As Integer
Dim BoardType As String
Dim SamplingRate As String
Dim FirmwareVersion As String
Dim ChannelNumber As Byte
Dim value As String
value = instance.Fast_Data_Request(DeviceHandle, DelimitedStyle, DeviceNumber, BoardType, SamplingRate, FirmwareVersion, ChannelNumber)
Parameters
- DeviceHandle
- Type: System.IntPtr
The handle associated with the USB device. - DelimitedStyle
- Type: System.Int32
The delimited style including the delimiter and terminator characters. - DeviceNumber
- Type: System.Int32
The device number associated with the USB device. - BoardType
- Type: System.String
The type of board associated with the USB device. - SamplingRate
- Type: System.String
The sampling rate associated with the USB device. - FirmwareVersion
- Type: System.String
The firmware version associated with the USB device. - ChannelNumber
- Type: System.Byte
The channel number associated with the USB device.
Return Value
Type:
System.StringA string of samples contained in the buffer; otherwise
Error
Example
If the is zero, then the return value will have the following format:
Counter [,] Number of Samples [,] ADC Value [,] Place Holder [,] Place Holder [,] Place Holder [,] Date [,] Time
0,14,13214336,,,,Tuesday, October 18,2011,2:29:27 PM
1,14,13214336,,,,Tuesday, October 18,2011,2:29:27 PM
2,14,13214336,,,,Tuesday, October 18,2011,2:29:27 PM
3,14,13214336,,,,Tuesday, October 18,2011,2:29:27 PM
4,14,13214080,,,,Tuesday, October 18,2011,2:29:27 PM
5,14,13214592,,,,Tuesday, October 18,2011,2:29:27 PM
6,14,13214336,,,,Tuesday, October 18,2011,2:29:27 PM
7,14,13214080,,,,Tuesday, October 18,2011,2:29:27 PM
8,14,13214336,,,,Tuesday, October 18,2011,2:29:27 PM
9,14,13214336,,,,Tuesday, October 18,2011,2:29:27 PM
10,14,13213824,,,,Tuesday, October 18,2011,2:29:27 PM
11,14,13214080,,,,Tuesday, October 18,2011,2:29:27 PM
12,14,13214336,,,,Tuesday, October 18,2011,2:29:27 PM
13,14,13214336,,,,Tuesday, October 18,2011,2:29:27 PM
If the is one, then the return value will have the following format:
Counter [tab] Number of Samples [tab] ADC Value [tab] Place Holder [tab] Place Holder [tab] Place Holder [tab] Date [tab] Time
0 14 13214336 Tuesday, October 18,2011 2:29:27 PM
1 14 13214336 Tuesday, October 18,2011 2:29:27 PM
2 14 13214336 Tuesday, October 18,2011 2:29:27 PM
3 14 13214336 Tuesday, October 18,2011 2:29:27 PM
4 14 13214080 Tuesday, October 18,2011 2:29:27 PM
5 14 13214592 Tuesday, October 18,2011 2:29:27 PM
6 14 13214336 Tuesday, October 18,2011 2:29:27 PM
7 14 13214080 Tuesday, October 18,2011 2:29:27 PM
8 14 13214336 Tuesday, October 18,2011 2:29:27 PM
9 14 13214336 Tuesday, October 18,2011 2:29:27 PM
10 14 13213824 Tuesday, October 18,2011 2:29:27 PM
11 14 13214080 Tuesday, October 18,2011 2:29:27 PM
12 14 13214336 Tuesday, October 18,2011 2:29:27 PM
13 14 13214336 Tuesday, October 18,2011 2:29:27 PM
The three Place Holders are used to reserve the location to insert the calculated tracking, peak and valley values based on the ADC Value.
Example
If the is zero, then the return value will have the following format:
Counter [,] Number of Samples [,] ADC Value [,] Place Holder [,] Place Holder [,] Place Holder [,] Date [,] Time
0,14,13214336,,,,Tuesday, October 18,2011,2:29:27 PM
1,14,13214336,,,,Tuesday, October 18,2011,2:29:27 PM
2,14,13214336,,,,Tuesday, October 18,2011,2:29:27 PM
3,14,13214336,,,,Tuesday, October 18,2011,2:29:27 PM
4,14,13214080,,,,Tuesday, October 18,2011,2:29:27 PM
5,14,13214592,,,,Tuesday, October 18,2011,2:29:27 PM
6,14,13214336,,,,Tuesday, October 18,2011,2:29:27 PM
7,14,13214080,,,,Tuesday, October 18,2011,2:29:27 PM
8,14,13214336,,,,Tuesday, October 18,2011,2:29:27 PM
9,14,13214336,,,,Tuesday, October 18,2011,2:29:27 PM
10,14,13213824,,,,Tuesday, October 18,2011,2:29:27 PM
11,14,13214080,,,,Tuesday, October 18,2011,2:29:27 PM
12,14,13214336,,,,Tuesday, October 18,2011,2:29:27 PM
13,14,13214336,,,,Tuesday, October 18,2011,2:29:27 PM
If the is one, then the return value will have the following format:
Counter [tab] Number of Samples [tab] ADC Value [tab] Place Holder [tab] Place Holder [tab] Place Holder [tab] Date [tab] Time
0 14 13214336 Tuesday, October 18,2011 2:29:27 PM
1 14 13214336 Tuesday, October 18,2011 2:29:27 PM
2 14 13214336 Tuesday, October 18,2011 2:29:27 PM
3 14 13214336 Tuesday, October 18,2011 2:29:27 PM
4 14 13214080 Tuesday, October 18,2011 2:29:27 PM
5 14 13214592 Tuesday, October 18,2011 2:29:27 PM
6 14 13214336 Tuesday, October 18,2011 2:29:27 PM
7 14 13214080 Tuesday, October 18,2011 2:29:27 PM
8 14 13214336 Tuesday, October 18,2011 2:29:27 PM
9 14 13214336 Tuesday, October 18,2011 2:29:27 PM
10 14 13213824 Tuesday, October 18,2011 2:29:27 PM
11 14 13214080 Tuesday, October 18,2011 2:29:27 PM
12 14 13214336 Tuesday, October 18,2011 2:29:27 PM
13 14 13214336 Tuesday, October 18,2011 2:29:27 PM
The three Place Holders are used to reserve the location to insert the calculated tracking, peak and valley values based on the ADC Value.
Requirements
Target Platforms: Windows 10, Windows 11
Target Framework: .NET Framework 4.8 or later
See Also