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.
GetLastStreamSt<strong>and</strong>ardBlock (ActiveX only)<br />
[out] long pnIpAddressArg<br />
[out] f_array fAnalogValues<br />
[out] l_array nDigPointFeature<br />
[out] long pnStatePts63to32<br />
[out] long pnStatePts31to0<br />
[out] long pnOnLatchStatePts63to32<br />
[out] long pnOnLatchStatePts31to0<br />
[out] long pnOffLatchStatePts63to32<br />
[out] long pnOffLatchStatePts31to0<br />
[out] long pnActiveCountersPts63to32<br />
[out] long pnActiveCountersPts31to0<br />
CHAPTER 3: USING THE SNAP ETHERNET I/O DRIVER TOOLKIT<br />
GetLastStreamSt<strong>and</strong>ardBlockEx<br />
[out] O22_SIOMM_StreamSt<strong>and</strong>ardBlock pData<br />
GetLastStreamCustomBlockEx<br />
[out] O22_SIOMM_StreamCustomBlock pData<br />
SetCallbackFunctions (C++ Only)<br />
[in] STREAM_CALLBACK_PROC<br />
pStartThreadCallbackFunc<br />
[in] void * pStartThreadParam<br />
[in] STREAM_EVENT_CALLBACK_PROC<br />
pStreamEventCallbackFunc<br />
[in] void * pStreamEventParam,<br />
[in] STREAM_CALLBACK_PROC<br />
pStopThreadCallbackFunc,<br />
[in] void * pStopThreadParam<br />
Methods Description<br />
Retrieves the last st<strong>and</strong>ard stream block that was<br />
received. The IP address of the brain that sent the<br />
packet is in the pnIpAddressArg parameter. The<br />
other parameters contain the analog <strong>and</strong> digital<br />
point values.<br />
This method should only be called if the st<strong>and</strong>ard<br />
type was set in the OptoStreaming() method.<br />
This method should be called immediately after<br />
receiving an OnStreamEvent ActiveX event (see<br />
below).<br />
Retrieves the last st<strong>and</strong>ard stream block that was<br />
received. The IP address of the brain that sent the<br />
packet is in the pnIpAddressArg field. The other<br />
parameters contain the analog <strong>and</strong> digital point<br />
value.<br />
This method should only be called if the st<strong>and</strong>ard<br />
type was set in the OptoStreaming() method.<br />
ActiveX: This method should be called<br />
immediately after receiving an OnStreamEvent<br />
event .<br />
C++: This method should be called immediately<br />
after receiving a packet event via the<br />
pStreamEventCallbackFunc callback function set<br />
in StartStreamListening().<br />
Retrieves the last custom stream block that was<br />
received. The IP address of the brain that sent the<br />
packet is in the pnIpAddressArg field. The other<br />
parameters contain binary data <strong>and</strong> the starting<br />
memory map address of the data.<br />
This method should only be called if the custom<br />
type was set in the OptoStreaming() method.<br />
ActiveX: This method should be called<br />
immediately after receiving an OnStreamEvent<br />
event .<br />
C++: This method should be called immediately<br />
after receiving a packet event via the<br />
pStreamEventCallbackFunc callback function set<br />
in StartStreamListening().<br />
Sets the three callback functions for the C++<br />
class. The pStreamEventCallbackFunc callback<br />
is called whenever a stream packet of interest is<br />
received.<br />
See the comments for the method in the<br />
O22SIOST.H <strong>and</strong> O22SIOST.CPP files for more<br />
information.<br />
SNAP Ethernet-Based I/O Units Protocols <strong>and</strong> Programming Guide 77