MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH ALTIUM TASKING Specifications Page 57

  • Download
  • Add to my manuals
  • Print
  • Page
    / 67
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 56
Appendix A
A-12
PYTHON
Advise(connection, item[
,
timeout][, use_ACKREQ=0][, use_NODATA=0])
Establish an advise loop with a server.
The server will send data changed Advise events when new data is
present. If an advise loop already is present for the specified item, the
existing advise loop will be replaced.
The timeout is default set to 25 days, and has to be specified in
milliseconds. The timeout cannot be disabled.
use_ACKREQ has the server wait for us to tell we are ready for the next
data. Appar
ently required for older Windows versions, not for NT
. See
below. Using this option may cause Advise events to get lost.
use_NODATA tells the server to hold back the data, just send the data
changed notification event. Obtaining the data with a request from inside
the callback (see
Initialize
), causes r
eentrancy problems.
Returns nothing.
Since Python does not support Windows-style asynchronous callbacks,
neither via
Py_AddPendingCall() because of its fixed size buffer,
Advise data is stored in a linked list, which is emptied via one of
GetAdvisedItem(), GetAdvisedItemNoWait(). Hence, regularly call
one of these, to flush the underwater buffer.
WaitForAndProcessAllMessages()
Process forever (pump) all messages for the current thread. Only returns
on WM_QUIT or error. It is necessary for a DDE client to process events,
to service the Advise link. DDE Advise must be serviced, otherwise it
blocks the process's execution. Apparently the DDE callback simply runs
inside the process, on top of its stack.
Retur
ns 1 if a WM_QUIT message was r
eceived, else 0 signalling an error
occurred in
GetMessage().
Poke(connection, item
,
value[, timeout])
Send unsolicited data to the server The timeout is default set to 25 days,
and has to be specified in milliseconds. The timeout cannot be disabled.
Returns nothing.
Page view 56
1 2 ... 52 53 54 55 56 57 58 59 60 61 62 ... 66 67

Comments to this Manuals

No comments