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