Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Write and read the string from Usb rs232 Adapter.

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.)

com9 in visa.JPGwrite the string.jpg

 

 

 

 

program.jpg

Can somebody give me some advice? 

 

the program is in attachment. 

 

 

 

major: Precision Mechanics and Microtechnology
0 Kudos
Message 1 of 2
(4,092 Views)

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

Download All
0 Kudos
Message 2 of 2
(4,064 Views)