LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

writing TDMS String data

I'm setting up a TDMS file and have added a TDMS_String type channel:

 

TDMS_AddChannel (group, TDMS_String, channelName, channelDesc, 0, &channels[chan]);

I'm intending this channel to be a string (status message).  I'm not clear on how to send data to it via the TDMS_AppendDataValues?  

0 Kudos
Message 1 of 2
(3,029 Views)

Nevermind, I solved this.  

 

calling function:

 

WriteUnitLog("S0123", &statusStr, test);

 

logging function:

 

 

void WriteUnitLog(char* serialNumber, void* data, int stage)
{
	char *sData = (char*)data;

	TDMS_AppendDataValues(logChannel[stage][channel++], &sData, 1, FALSE);
}

 

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