Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

E4418B Serial with C# project


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

0 Kudos
Message 1 of 1
(813 Views)