The problem is that you are creating a different type of datalog file in cases 2 and 3 than you are in cases 0 and 1.
The structure of a datalog file is the same as an array of clusters. All of the clusters must be of the same structure. Only the values of the individual cluster elements can vary.
You are trying to write three different cluster structures to a single datalog file. You just can't this.
You'll either need to write to three different files, or come up with a structure that everything will fit into.
One other quick hint. NEVER use a variable to pass data when you can wire the terminal directly to the function.
Ed
Message Edited by Ed Dickens on 03-19-2007 11:39 AM

Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.