Access RS-232 in C# using VISA
-
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.
-
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.
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.
-
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.
-
Hi, Google? I searched on "agilent visa oscilloscope" and this hit looks like a good starting point. Programmer's Quick Start Guide[^] Alan.
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.
-
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.
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