Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Access RS-232 in C# using VISA

Access RS-232 in C# using VISA

Scheduled Pinned Locked Moved C#
csharpdesignalgorithmshelp
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Hi, I am trying to access an Agilent oscilloscope via RS-232. This needs to use VISA to access the port. I am looking for some sample code to open and close the port as well as issues some commands and queries. Nothing fancy at all. I have asked Agilent for this several times and am still searching. To say they are unhelpful is as polite as I get. I wouldnt have thought I was the first person to want to access the port using a PC since the RS-232 comms module is specifically designed for that and is an optional extra which I am sure they didnt design just for me ! So why are they being so difficult and vague. I wouldnt have thought this would be very difficult to do, but I am new to C# etc (I used to be a programmer in 80s and 90s using Cobol etc). If anyone has any sample code of help or advice I would certainly appreciate it, since I have been looking for this for several weeks now and my deadline is right over my head ! Many thanks, George.

    L A 2 Replies Last reply
    0
    • L Lost User

      Hi, I am trying to access an Agilent oscilloscope via RS-232. This needs to use VISA to access the port. I am looking for some sample code to open and close the port as well as issues some commands and queries. Nothing fancy at all. I have asked Agilent for this several times and am still searching. To say they are unhelpful is as polite as I get. I wouldnt have thought I was the first person to want to access the port using a PC since the RS-232 comms module is specifically designed for that and is an optional extra which I am sure they didnt design just for me ! So why are they being so difficult and vague. I wouldnt have thought this would be very difficult to do, but I am new to C# etc (I used to be a programmer in 80s and 90s using Cobol etc). If anyone has any sample code of help or advice I would certainly appreciate it, since I have been looking for this for several weeks now and my deadline is right over my head ! Many thanks, George.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      This is probably what you need : http://www.ddj.com/development-tools/184401787[^] The complete specification from all commands : http://www.ivifoundation.org/docs/vpp432.pdf[^] That is not for beginner, it's advanced, because it is using DllImport P/Invoke from C Dll.

      1 Reply Last reply
      0
      • L Lost User

        Hi, I am trying to access an Agilent oscilloscope via RS-232. This needs to use VISA to access the port. I am looking for some sample code to open and close the port as well as issues some commands and queries. Nothing fancy at all. I have asked Agilent for this several times and am still searching. To say they are unhelpful is as polite as I get. I wouldnt have thought I was the first person to want to access the port using a PC since the RS-232 comms module is specifically designed for that and is an optional extra which I am sure they didnt design just for me ! So why are they being so difficult and vague. I wouldnt have thought this would be very difficult to do, but I am new to C# etc (I used to be a programmer in 80s and 90s using Cobol etc). If anyone has any sample code of help or advice I would certainly appreciate it, since I have been looking for this for several weeks now and my deadline is right over my head ! Many thanks, George.

        A Offline
        A Offline
        Alan N
        wrote on last edited by
        #3

        Hi, Google? I searched on "agilent visa oscilloscope" and this hit looks like a good starting point. Programmer's Quick Start Guide[^] Alan.

        L 1 Reply Last reply
        0
        • A Alan N

          Hi, Google? I searched on "agilent visa oscilloscope" and this hit looks like a good starting point. Programmer's Quick Start Guide[^] Alan.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Hi, Yes I have actually tried Google too and I have found nothing so far that helps me at the level I am at with C#. In fact there does not This manual, tho for the 6000 series, does use VISA but only giving examples in VB which I am even less familiar with than C#. The equivilent manual for the DSO3000 series does not have any VISA references in it. So I dont know which VISA components to use nor the information to use with them either. So I am again stuck.

          Z 1 Reply Last reply
          0
          • L Lost User

            Hi, Yes I have actually tried Google too and I have found nothing so far that helps me at the level I am at with C#. In fact there does not This manual, tho for the 6000 series, does use VISA but only giving examples in VB which I am even less familiar with than C#. The equivilent manual for the DSO3000 series does not have any VISA references in it. So I dont know which VISA components to use nor the information to use with them either. So I am again stuck.

            Z Offline
            Z Offline
            zafersavas
            wrote on last edited by
            #5

            Agilent visa comes with great examples. My advice to you is to install agilent io libraries (http://www.home.agilent.com/agilent/product.jspx?pn=E2094R[^]) and to have a look at the examples/documentation. Good luck zafer

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups