04-10-2013 10:14 AM - edited 04-10-2013 10:21 AM
Hallo, Freinds,
I have a Problem in writing and reading string from USB RS232 Adapter.
I habe a programm to write the string to a Measurement device via USB RS232 adapter. but it shows a error,
(but In VISA, I find the vitual channel "com9" and click the "open VISA Test Panel". and then click "input/output"--"VELLO7\n"--and then enter the string, the Measurement device responses.)
Can somebody give me some advice?
the program is in attachment.
04-11-2013 01:55 AM
Hello gyver.ning@gmail.com,
you have so switch on the "Codes Display" in your String elements (Controls, Indicators and constants).
If you take a look at "CodeDisplay.jpg", you can see, that if you activate "Codes Display" you have the WRONG string:
You want to transfer "AMPL3\n" but you transfer "AMPL3\\n"
Also you find find a short example, how to add
- End of Line,
- Line Feed or
- Carrige return
to a normal string.
Remember, you can also check your string with the "Codes Display"
Hope that helps
Best regards
Dippi