AnsweredAssumed Answered

microcontroler to agilent8163A

Question asked by yoandaalimsyahbana on Feb 23, 2010
Is it possible to communicate between microcontroler (ex. AVR) with agilent 8163A? I have been making program in VB.NET that can communicate PC to agilent 8163A based on sample program from Agilent IO Library Suite (it's use IVI.VISA.Interop reference). Later, this program will be implemented in microcontroler, but in microcontroler there is no such as reference like IVI.Visa.Interop. I have try to modify my program to use serial port object in VB.NET but the Agilent didn't give me a response. Here is a sample program that I try:
  Dim str As String
        If serialPort.IsOpen Then
            serialPort.Close()
        End If
        With serialPort
            .PortName = "COM3"
            .BaudRate = 38400
            .Parity = IO.Ports.Parity.None
            .DataBits = 8
            .StopBits = IO.Ports.StopBits.One
            .ReadTimeout = 2000
            .Handshake = IO.Ports.Handshake.RequestToSend
            .RtsEnable = True
        End With
        serialPort.Open()
        serialPort.DiscardInBuffer()
        serialPort.DiscardOutBuffer()
        serialPort.Write("ASRL3::INSTR")
        System.Threading.Thread.Sleep(200)
        serialPort.Write("*IDN?.")
        str = serialPort.ReadExisting
        RichTextBox1.AppendText(str & vbNewLine)
        serialPort.Close()
Is there another way to communicate with Agilent 8163 just with serial port object in Vb.NEt?
Thanks  

Outcomes