Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Logdata method in ...IntClk_ToFile example

Solved!
Go to solution

....IntClk_ToFile example

 

 

 

I am trying to understand how the following function writes data to a file.  It does not seem to be associated with a filestream.

 

What am I missing?

 

 Thanks!

 

private void LogData(double[,] data)

{

     int channelCount = data.GetLength(0);

     int dataCount = data.GetLength(1);

 

     for (int i = 0; i < channelCount; i++)

          {

           ArrayList l = savedData[i] asArrayList;

           for (int j = 0; j < dataCount; j++)

                       {

 

                              l.Add(data[i, j]);

                       }

          }

}

 

 

0 Kudos
Message 1 of 2
(3,007 Views)
Solution
Accepted by topic author nammy

Sorry...I just realized that the example writes the file at the end of the acquisition... 

0 Kudos
Message 2 of 2
(3,005 Views)