User`s guide

Getting Star ted with RTDX™
15 16 14 18 19
16 17 18 19 20
17 18 19 20 21
18 19 20 21 22
19 20 21 22 23
20 21 22 23 24
21 22 23 24 25
21 Recheck the number of messages in the queue to see that ve remain.
22 flush lets you remove messages from the queue without reading them.
Data in the message yo u remove is l ost. U se ush to remove the next
message in the read queue. Then check the waiting message count.
cc.rtdx.flush('ochan',1)
num_of_msgs = cc.rtdx.msgcount('ochan')
num_of_msgs =
4
23 Empty the remaining messages from the queue and verify that the queue is
empty.
cc.rtdx.flush('ochan','all')
With the all option, flush discards all messages in the ochan queue.
Closing the Connections and Channels or Cleaning Up
One of the most important programmatic processes y ou should do in every
RTDX sessio n is to clean up at the end. Cleaning up includes stopping
your processor, disabling the RTDX channels you enabled, disabling RTDX
and closing your open channels. Performing this series of tasks ensures
that future processes avoid trouble caus ed by unexpected interactions with
remaining handles, channels, and links from earlier development work.
Best practices suggest that you include the following tasks (or an appro priate
subset that me ets your developm ent needs) in your development scripts and
programs.
2-39