Test ASCII Channel Value Doesn't Seem to Persist


Recommended Posts

I'm setting values in a few D to A and ASCII Test Device channels, to store in channel form data I'm retrieving from the Internet.  All of the channels have History and Persist settings of 10 values.  The D to A channels are persisting across sessions as expected, but the ASCII ones are not.  Is this as expected?  Is there something additional I should be doing?

Link to comment
Share on other sites

Because of the optimizations required to retrieve large amounts of persist data quickly, persist only works on numeric channels.  String channels have variable width per data point so can't really be optimized unless you know the maximum length.  You'll have to come up with another way to persist the strings, of which there are many.  Probably the easiest is to use file.writeDelim() and file.readDelim() to write/read an array of strings to/from a file.

 

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.