snap ethernet-based i/o units protocols and programming guide
snap ethernet-based i/o units protocols and programming guide
snap ethernet-based i/o units protocols and programming guide
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Analog Bank Methods<br />
CHAPTER 3: USING THE SNAP ETHERNET I/O DRIVER TOOLKIT<br />
Use the following methods to read <strong>and</strong> write information in the analog bank area of the memory<br />
map. For more information, see “Analog Bank Read—Read Only” on page 120, “Analog Bank<br />
Write—Read/Write” on page 120, <strong>and</strong> “IEEE Float Data” on page 43.<br />
Return values are shown on page 61.<br />
Status Methods<br />
Read Methods Description<br />
GetAnaBankValuesEx<br />
[out] SIOMM_AnaBank pBankData<br />
GetAnaBankCountsEx<br />
[out] SIOMM_AnaBank pBankData<br />
GetAnaBankMinValuesEx<br />
[out] SIOMM_AnaBank pBankData<br />
GetAnaBankMaxValuesEx<br />
[out] SIOMM_AnaBank pBankData<br />
Retrieves the values of the entire analog bank.<br />
Retrieves the counts of the entire analog bank.<br />
Retrieves the minimum values of the entire analog bank.<br />
Retrieves the maximum values of the entire analog bank.<br />
Write Methods Description<br />
SetAnaBankValuesEx<br />
[in] SIOMM_AnaBank pBankData<br />
SetAnaBankCountsEx<br />
[in] SIOMM_AnaBank pBankData<br />
Sets the values of the entire analog bank.<br />
Sets the counts of the entire analog bank.<br />
Use the following methods to read from the status area of the brain. For more information about<br />
the status area of the memory map, see “Status Area Read—Read Only” on page 105.<br />
Read Methods Description<br />
GetStatusVersion V (ActiveX Only)<br />
[out] long pnMapVer<br />
[out] long pnLoaderVersion<br />
[out] long pnKernelVersion<br />
GetStatusVersionEx (C++ Class Only)<br />
[out] SIOMM_StatusVersion pVersionData<br />
GetStatusHardware V (ActiveX Only)<br />
[out] long pnIoUnitType<br />
[out] byte pbyHwdVerMonth<br />
[out] byte pbyHwdVerDay<br />
[out] short pwHwdVerYear<br />
[out] long pnRamSize<br />
Retrieves version information about the SNAP<br />
brain's memory map, loader, <strong>and</strong> kernel.<br />
Same as GetStatusVersion, except this method<br />
uses a structure.<br />
Retrieves hardware information about the SNAP<br />
brain's unit type, hardware revision date, <strong>and</strong><br />
quantity of bytes of installed RAM.<br />
SNAP Ethernet-Based I/O Units Protocols <strong>and</strong> Programming Guide 69