Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5565

VISA + C# + RS485 + carriage return

$
0
0

Hi, everybody!
I have an engine and I want to control it by means of rs485.

 

 wData = new SerialSession("COM7");
 wData.BaudRate = 9600;
 wData.TerminationCharacterEnabled = true;
 String Command = "AV10000"+"\r";
 byte[] bytes = new byte[8];
 int bWritten = ASCIIEncoding.ASCII.GetBytes(Command, 0,      Command.Length, bytes, 0);
 wData.Write(bytes);
 wData.Clear();

 through visa and c# there is no response

 Problem is "#0D" but I send it through "\r"

 

 

 

Through the terminal program everything works

 

Скриншот 2014-08-05 10.15.38.png

 

Скриншот 2014-08-05 10.15.55.png

 

Скриншот 2014-08-05 10.16.24.png


Viewing all articles
Browse latest Browse all 5565

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>