SOURCEICE

From ICE Enterprises
Jump to navigation Jump to search

Manage acquisition or copy of ICE packets into a Midas file/pipe

<input file>	Name of the input devIce/address/file/pipe stream
<output file>	Name of the output file/pipe/socket
<format>	Data Format
<rate>		Data Rate

This routine reads data from an ICE source, which may be a NIC, devICE,
file, PIC Ram rtFile or pipe. 

The Unicast format is:
  udp:192.168.0.1:7777

The Multicast format is:
  udp:192.168.0.1:7777/224.1.2.3

Where the first address and port are of the host network card to receive from.
The second address is the Multicast address to join to.

The expected format and rate are used to create the output file in NIC mode.

The transfer length /TL=n is used for output file writes.  
It must be a multiple of the incoming ICE packet size.

The /PKTHDR=option switch defines what to do with the packet header in the output stream.
The default option STRIP, removes the ICE packet headers from the output stream.
Other options are ATTACH, DETACH, or COPY which can be used to peel|merge the packet 
headers to|from separate .pkt files. Note that non-file output resources do not support
detached packet header files.

The /REPLAY controls the startup mode of the routine as follows:

 /REPLAY=0   Stop mode  - bit bucket for input packets, no output
 /REPLAY=1   Once mode  - process the next packet
 /REPLAY=2   Continuous - process packets continuously (default piped)

In NeXtMidas, the /REPLAY=values can be specified by the item number or name.

Switches:
  /SOURCE=n	Source type NIC|FILE|RTFILE|DEVICE
  /CFG=table	Configuration table for a devICE
  /PT=type      Packet type = ICE|VRT|SDDS
  /PKTHDR=opt   Defines what to do with the packet header (default=STRIP)
  /POLL=sec	Seconds to pause polling for new data 
  /MAXOUT=n	Maximum number of samples in output file (file-to-file autostop)
  /CHECK        Test the packet sequences for any drops