Houdini CHOP File Out Extension

The File Out CHOP will write data to disk in a user specified format.
The first input will accept up to 65535 channels.
The second input provides a gate/trigger signal (to enable, check the Use Event Gate).

Features:

Example #1
A simple example writing an ASCII file with 3 data channels.

Example #2
An example of writing to a binary file with 8 channels of data (4 constants and 4 waveforms). The second input, the
Event Gate, is being triggered by an oscillator to toggle the data being written to disk at periodic intervals.

Example #3
An example writing to an ASCII file with a "header" included and inserting a time stamp into the beginning of the data line. The format string is demonstrating a number of different ways to format the data; in addition there's an "EOL" at the end of the line should one want to parse for that type of token rather \n, \r, or NULL. The manner in which you format the data is entirely up to you and your specific requirements.

Example #4
This example writes 16 channels of data to an ASCII file and is using 2 File Out CHOPs, writing to the files at the same time but from to different nodes in the CHOP network. A "time stamp" is inserted into the beginning of the data line.

Source Code:
Doxygen Documentation

Download:

Linux:
Houdini version 8.0
file_out_demo_Linux.tar.gz
CHOP_file_out.so.tar.gz (DSO only)

Windows:
Houdini version 8.0
file_out_demo_WIN.tar.gz
CHOP_file_out.dll.tar.gz (DLL only)

Note: Set the $HOUDINI_PATH variable to include the demo directory, i.e:
setenv HOUDINI_PATH $HFS/houdini:$HOME/houdini8.0:$JOB/houdini:./houdini

Troubleshooting tips:
From the Houdini textport, type "dsoinfo -h " and look for the file_out DSO/DLL under the CHOP section.

/ -> dsoinfo -h
>> CHOPs
handle /usr/hfs/houdini/dso/CHOP_IKHandle.so
image /usr/hfs/houdini/dso/CHOP_Image.so
inversekin /usr/hfs/houdini/dso/CHOP_InverseKin.so
particle /usr/hfs/houdini/dso/CHOP_Particle.so
pretransform /usr/hfs/houdini/dso/CHOP_PreTransform.so
spatial /usr/hfs/houdini/dso/CHOP_SpatialAudio.so
audioperiod /usr/hfs/houdini/dso/CHOP_AudioPeriod.so
file_out ./houdini/dso/CHOP_file_out.so
voicesync /usr/hfs/houdini/dso/CHOP_VoiceSync.so

/ ->


The interface:


Filename:
The name of the data file

File Format:
Select the format for the file: ASCII or binary

Format Specifier:
The format specifier for the ACSII file format (see below).

Include header (ASCII only):
When checked, a header will be written to the file including the date/time, and the contents of the Header field

Header:
A single line of text written to the header section of the data file

Insert Time Stamp (ASCII only):
When checked, a time stamp is inserted into the beginning of the data line.

Add offset to time stamp:
When checked, the value in the Offset field will be added to the time.

Offset (Frames)
The amount of offset to add to the time value for the time stamp.

Use Event Gate:
When checked, the data will only be written to the file when the second input's value is non-zero

Echo Data to Console:
When checked, the data will only be printed to the system console


The "Format Specifier" string follows the "C" conventions.

From the IRIX man page(s):