Writes an 8-bit, 16-bit, 32-bit, or 64-bit value to the specified address.
void viPoke8(ViSession vi, ViAddr addr, ViUInt8 val8)
void viPoke16(ViSession vi, ViAddr addr, ViUInt16 val16)
void viPoke32(ViSession vi, ViAddr addr, ViUInt32 val32)
void viPoke64(ViSession vi, ViAddr addr, ViUInt64 val64)
viPoke8(ByVal vi&, ByVal addr&, ByVal val8 as Byte)
viPoke16(ByVal vi&, ByVal addr&, ByVal val16%)
viPoke32(ByVal vi&, ByVal addr&, ByVal val32&)
PXI INSTR, PXI MEMACC, VXI INSTR, VXI MEMACC
Name | Direction | Description |
---|---|---|
vi |
IN |
Unique logical identifier to a session. |
addr |
IN |
Destination address to store the value. |
val8, val16, val32, or val64 |
IN |
Value to be stored (8 bits for viPoke8(), 16 bits for viPoke16(), 32 bits for viPoke32(), 64 bits for viPoke64()). |
None
The viPokeXX() operations store the content of an 8-bit, 16-bit, 32-bit value, or 64-bit value, respectively, to the address pointed to by addr. The address must be a valid memory address in the current process mapped by a previous viMapAddress() call.
![]() |
Note If you use NI I/O Trace to debug these operations, enable the Force peek/poke calls to appear in NI I/O Trace option in Measurement & Automation Explorer (Windows), visaconf (Linux), or NI-VISA Configuration (Mac OS X). If you do not enable this option, NI I/O Trace might not log these operations. |
Related Topics