Applies To:
  • CitectSCADA From v5.40

Summary:
How do I find out the number of items in an internal CitectSCADA queue?  

Solution:
The cicode function CitectInfo() can be used for this. e.g.

      int  nCount;
     nCount = CitectInfo("Queue", "mycicodequeue", 0);

The queue name ( "mycicodequeue" ) can be either a users cicode queue or a CitectSCADA queue (e.g. "lan.read "). A value of -1 will be returned for a queue not found. Queues available for a given CitectSCADA configuration can be seen in the output from a cicode "DumpKernel(0x8000, "")" command.

 

Keywords:
 

Attachments