Transmit Numeric Table data corruption

I am trying to output data from a numeric table into a .csv file. I am using the following code to generate the table and then transmit it. The resulting csv file has corrupted data, as shown attached.

while(iIteration<20)
fError=5 * Cosine(fTime);
nInclinometerData[iIteration]=fError;
fTime=fTime+fDelay_dt*50;
iIteration=iIteration+1;
wend

SetCommunicationHandleValue(sCom_Inclinometer,chInclinometer);
fIsOpen=OpenOutgoingCommunication(chInclinometer);
fTrans_Check=TransmitNumTable(iNum_Table_Length,0,nInclinometerData,chInclinometer);
CloseCommunication(chInclinometer);

My transmission error check returns a zero, and the data is saving under the correct file name. Is there a trick to using TransmitNumTable that I am missing? The communication handle I am using is:

file:w,C:\Users\Documents\Opto 22\R4\Sensor_Data

Transmit Numeric Table

Typical Use:

Efficient method of writing binary data to a file

1 Like

Thanks Philip. I converted my floats to strings, and developed them into a string table prior to transmitting.

Great, glad you got it working.