Chapter 3 Software Overview
© National Instruments Corporation
3-11
NI-VXI User Manual
WSEcmd (la, cmdExt, cmd, respflag, response)
WSEcmd
sends an Extended Word Serial command or query to a
message-based Servant. It polls the WR bit before sending the 48-bit
command.
WSEcmd
sends the command by writing the Data Extended
register first with the upper 16 bits of the command (cmdExt),
followed by the Data High register with the middle 16 bits of the
command (upper 16 bits of cmd), and concluding with the Data Low
register with the lower 16 bits of the command (lower 16 bits of cmd).
It then polls the RR bit before reading the 32-bit response from the
Data Low and Data High registers (there are no 48-bit responses for
Extended Longword Serial).
WSEcmd
polls the WR bit after either
sending the command (for a command) or reading the response (for a
query), to guarantee that no protocol errors occurred during the
transfer.
WSgetTmo (actualtimo)
WSgetTmo
retrieves the current timeout period for all of the
Commander Word Serial Protocol functions. It retrieves the current
timeout value in milliseconds to the nearest resolution of the host CPU.
WSLcmd (la, cmd, respflag, response)
WSLcmd
sends a Longword Serial command or query to a
message-based Servant. It polls the WR bit before sending the
command.
WSLcmd
sends the command by writing the Data High
register first with the upper 16 bits of the 32-bit command, and then
writing the Data Low register with the lower 16 bits of the 32-bit
command. It then polls the RR bit before reading the 32-bit response
from the Data Low and Data High registers.
WSLcmd
polls the WR bit
after either sending the command (for a command) or reading the
response (for a query), to guarantee that no protocol errors occurred
during the transfer.
WSLresp (la, response)
WSLresp
retrieves a response to a previously sent Longword Serial
Protocol query from a VXI message-based Servant.
Note:
This function is intended only for debugging purposes.