01-08-2008 03:42 PM
01-08-2008 03:50 PM
Can you post the code?
Create indicators out of the "String to Write" control and your build functions. Look at them in terms of /codes and hex. Compare them to each other to see if they are the same. If the code has run once, you can do a right click, create constant on the wire to create a constant of the data. You can copy them to a blank VI if it helps do the string comparisons.
Are you sure you are ending the string with the came characters? Perhaps one is carriage return/line feed and the other is not?
01-08-2008 04:03 PM
01-08-2008 04:52 PM
When the control is in the normal display, the terminator characters of carriage return and line feed are still there. They just aren't visible because they are non-printing characters.
In your non-working code, you have a string constant "\r\n". Is that constant in normal display or \ code display? Everything else looks okay, so I suspect you are getting the codes mixed up. If that \r\n is in normal display, then you are sending 4 characters, a slash, an r, another slash, an n. This is NOT the same as \r\n in \code display which is two characters of \r (carriage return) and \n (line feed). If you look at that constant in hex display, it should show up as 0D 0A.
There is also a special CR/LF primitive on the string pallette that you could drop on the block diagram to wire to the concatenation rather than dealing with \r \n.
01-08-2008 04:55 PM
01-09-2008 08:10 AM
My example shows that I am reading two channels (@101,102) because I'm trying to iron out the communication. When incorporated into the application, a user will select which channels to read. I have to build the command string from the user selections. The good news is that the CR/LF constant cleared up the problem. I should have tried that first. Lesson learned. Thanks Raven and Jaime for helping me get my head on straight.