I tried the method you suggested in both LabVIEW 7.1 and 8.0 and got varying results. Neither worked correctly, but for different reasons. I'll explain both below:
LabVIEW 7.1: The Write Data VI doesn't accept strings with any non-displayable ASCII characters for descriptions or free text. The Flatten Data to String flattens data to a binary image of that data, so it obviously includes many non-displayable characters, such as the ASCII null character '\00'. The Write Data VI does accept tab characters, so you are still able to use the method I showed above, changing the array into a tab-delimited string. I'll attach a 7.1 version of that example below.
LabVIEW 8.0:LabVIEW 8.0 is much closer to working for the scenario you listed, but it still fails. The Write Data function will accept
most non-displayable ASCII characters in a string, but it decides to terminate a string when it first encounters the ASCII null character. This is similar to C Strings, which can be of any length and are terminated by the ASCII null character. The problem here, is that if you use Flatten to String, the result will doubtlessly include the ASCII null character somewhere.
So you have two options here:
1. The method I listed in the previous post.
2. Actually create a channel in your channel group whose sole purpose is to store this string array data. Then you can flatten the string array to string and use the String to Byte Array to create a numeric array that the Write Data will accept in its Signal input for the channel.
Message Edited by Jarrod S. on 04-12-2006 01:44 PM
Jarrod S.
National Instruments