niHSDIO Convert Binary to WDT

NI Digital Waveform Generator/Analyzer

niHSDIO Convert Binary to WDT

Converts unsigned binary data into the digital waveform data type (WDT). Use this VI to easily convert extended state (0, 1, H, L, X, Z) digital waveforms from binary data. Details.

Use the pull-down menu to select an instance of this VI.

Stimulus Data

Converts binary data to drive low (0) or drive high (1) digital waveform data types. You can specify a bitmask to create tristate (Z) data.

dt specifies the time between values in digital waveform.
signal list specifies which bits from data to include in the digital waveform.
data specifies the high and low values (assuming drive enabled is enabled) in the digital waveform.
drive enable specifies the bitmask that selects between tristating and driving the value selected in the data. Bits set to 0 translate to Z (tristate), and bits set to 1 translate to the value of the corresponding bit in data. If drive enable is empty, all the values in the array translate to 0 and 1.
compress data specifies whether the digital waveform data is compressed.
error in describes error conditions that occur before this VI or function runs.
status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.
code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.
source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.
digital waveform contains the converted data for the waveform.
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces.
status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.
code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.
source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Response Data

Converts binary data to expect low (L) or expect high (H) digital waveform data types. A bitmask may be specified to create don't care (X) data.

dt specifies the time between values in digital waveform.
signal list specifies which bits from data to include in the digital waveform.
data specifies the high and low values (assuming drive enabled is enabled) in the digital waveform.
compare enable specifies the bitmask that selects between X (ignore) and a compare value determined by the data array. Bits set to 0 translate to X, and bits set to 1 translate to L (compare low) or H (compare high) depending on the value of the corresponding bit in the data . If this array is empty, all the values in the data array translate to L and H.
compress data specifies whether the digital waveform data is compressed.
error in describes error conditions that occur before this VI or function runs.
status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.
code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.
source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.
digital waveform contains the converted data for the waveform.
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces.
status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.
code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.
source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

Stimulus and Response Data

Compiles binary data to bidirectional drive (0, 1, Z) and compare (H, L, X) data.

Note: A bit cannot be set to 1 in both the drive enable and compare enable arrays. Compare values (H, L, 0, and X) always cause the channel to be set to tristate. Details.

dt specifies the time between values in digital waveform.
signal list specifies which bits from data to include in the digital waveform.
data specifies the high and low values (assuming drive enabled is enabled) in the digital waveform.
drive enable specifies the bitmask that selects between tristating and driving the value selected in the data. Bits set to 0 translate to Z (tristate), and bits set to 1 translate to the value of the corresponding bit in data. If drive enable is empty, this VI translates all bits to 0 or 1 (all drive enable bits are assumed to be set to 1). Refer to Details for more information about how drive enable and compare enable interact.
compare enable specifies the bitmask that selects between X (ignore) and a compare value determined by the data array. Bits set to 0 translate to X, and bits set to 1 translate to L (compare low) or H (compare high) depending on the value of the corresponding bit in data. If compare enable is empty, this VI translates all bits to 0, L, or Z based on data and drive enable. Refer to Details for more information about how drive enable and compare enable interact.
compress data specifies whether the digital waveform data is compressed.
error in describes error conditions that occur before this VI or function runs.
status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.
code is the error or warning code. The default is 0. If status is TRUE, code is a negative error code. If status is FALSE, code is 0 or a warning code.
source identifies where an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.
digital waveform contains the converted data for the waveform.
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces.
status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.
code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.
source identifies where and why an error occurred. The source string includes the name of the VI that produced the error, what inputs are in error, and how to eliminate the error.

niHSDIO Convert Binary To WDT Stimulus And Response Data (U32) Details

The following table shows how the Stimulus and Response instance of this VI translates bits, depending on the values set for drive enable and compare enable.

drive enable
0 1
compare enable 0 Z 0/1*
1 L/H* Error
*This value is determined by the corresponding bit in data.