Online Development Notebook > Index > ODN > USBm DLL Programming > Device Commands > StrobeWrites

StrobeWrites


VERSION 1.34+ of the firmware, VERSION 42+ of the DLL

Description:

Strobe write of a 1 to 6 byte value to a port. This command uses port A or B for the written byte, as well as a polarity (negative or positive) and a line (A.0 - B.7) to toggle based on the previously executed StrobeWrite or StrobeRead call.

 

Command Syntax: (USBm.dll)

USBm_StrobeWrites(device, count, data)

The USBm_StrobeWrites function syntax has these parts:

Part Description
device A zero-based index to address the appropriate USB device.
count The number of bytes (1-6) to send.
data Data to send.

 

Remarks:

Control this command's port for the byte, polarity and strobe line by using the StrobeWrite or StrobeRead call.

 

VB Declaration

Public Declare Function USBm_StrobeWrites _
    Lib "USBm.dll" _
        (ByVal device As Byte, _
        ByRef count As Byte, _
        ByRef data As Byte) _
    As Integer

 

VB Example

Dim dataarray(6) As Byte
    dataarray(0) = &H55
    USBm_StrobeWrites 6, 3, dataarray(0)

Control this command's port for the written byte, polarity and strobe line by using the StrobeWrite or StrobeRead call. This command will then use the same selected port, polarity, and strobe line to write three bytes from dataarray to device number six.

 

C Example

-TBD-


Hardware:  U401 USB Interface    U421 USB Interface
Programming:  USBm DLL Programming    Download Files
Application Notes:  U4x1 Application Notes    Misc Applications and Information    FAQ