Receive Table Missing Data

I have data saved into csv format in text files. The text file is a [1 x 89], but when I read it into PAC control it only has 87 data cells. It is missing the last 2 data points.

The code I am using is:

fIsOpen=OpenOutgoingCommunication(rampDown4);
fIsComm=IsCommunicationOpen(rampDown4);
SetEndOfMessageTerminator(rampDown4,’,’);
fIsReceive=ReceiveStrTable(89,0,rampDown4tabS,rampDown4);

Where rampDown4 is a communication handle, and rampDown4tabS is a string table of length 90, with string width of 9.

Please let me know how to capture the full data set. Thank you!

Does it work if you put in -1 instead of 89 on the first parameter?

2 Likes

That worked, thank you!

Great! It would be good to figure out why it didn’t work with the 89 though. Maybe there is a bug in the ReceiveStrTable command…