FUTEK .NET API Documentation
FUTEK_USB_DLL Assembly / FUTEK_USB_DLL Namespace / USB_DLL Class / Fast_Data_Request Method
Type: System.IntPtr
The handle associated with the USB device.
Type: System.Int32
The delimited style including the delimiter and terminator characters.
Type: System.Int32
The device number associated with the USB device.
Type: System.String
The type of board associated with the USB device.
Type: System.String
The sampling rate associated with the USB device.
Type: System.String
The firmware version associated with the USB device.
Type: System.Byte
The channel number associated with the USB device.


In This Topic
    Fast_Data_Request Method
    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 DelimitedStyle As Integer, _
       ByVal DeviceNumber As Integer, _
       ByVal BoardType As String, _
       ByVal SamplingRate As String, _
       ByVal FirmwareVersion As String, _
       Optional ByVal ChannelNumber 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.String
    A string of samples contained in the buffer; otherwise Error
    Remarks
    The returned value should be a string of data which will vary in size depending on how many samples are in the buffer.
    If there are no ADC Values in the buffer, then the response will be an empty string.
    Example
    If the DelimitedStyle 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 DelimitedStyle 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

    Reference

    USB_DLL Class
    USB_DLL Members

    Related

    DelimitedStyleCodes
    TypeOfBoardCodes
    ADCConfigurationCodes
    Get_Type_of_Board Method
    Get_ADC_Sampling_Rate_Setting Method
    Get_Firmware_Version Method