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

E4418B Serial with C# project

$
0
0


private void send_Click(object sender, EventArgs e)
{
    try
    {
        byte[] data = Encoding.UTF8.GetBytes(demo_textbox.Text + "\n");

        serialPort1.Write(data, 0, data.Length);
    }
        catch (Exception ex)
    {
        MessageBox.Show(ex.ToString());
    }
}

 

--------------------------------------------------

above one is my C# code for send command

 

it works on "*IDN?" and "RST" and some else

 

but It never works on query commands

 

What should i do first

 

Do i need to chage mode? about like remote mode?

 

Or change SCPI? but SCPI mode doesnt work with "*IDN?"

 

.. Regards


Viewing all articles
Browse latest Browse all 5566

Trending Articles



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