Ibiaza,
not really beeing sure what your problem is, let me try to explain the
string control a little bit. You may find a lot about this topic by
searching the LabVIEW help for 'Configuring String Controls and
Indicators'.
To summarize it a bit:
* There are 4 operational modes for string controls and indicators, which are 'normal', 'backslash', 'password' and 'Hex' mode.
- 'normal' displays just all printable characters and hides or
replaces all nondisplayable characters with some representations or
actions e.g. a tab with a space or a NewLine with a line break
- 'backslash' ('\')mode is similar, but replaces nondisplayable
characters with their backslash code, e.g. '\s' is a space, '\r' is a
return, '\n' is a newline and '\hh' is the character with the hex code
of 0xhh. This gives you full visibel control of the string value and
enables the insertion of literally all characters, while displayable
strings are still visibel.
- 'password' just shows an asterix for every character and
- 'Hex' displays the hexcode of each character. This give full
control over the string value, but is harder to decipher visibel
strings and numbers.
* One can choose the operational mode of a string control with a right click onto it
Lets return to your example 'Basic Serial Write and Read.vi'. It has an
initial code of '*IDN?\r\n' in 'string to write', which is in '\' mode.
This means your device 'sees' the command string '*IDN?', followed by a
CarriageReturn and a LineFeed. This is a standard SCPI command and
instruct the device to indentify itself.
BTW, SCPI is a kind of control language for devices. Your example does
not rely on SCPI, this is just an example within the example VI.
HTH and
Greetings from Germany!<br>-- <br>Uwe