المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Access RS-232 in C# using VISA



C# Programming
08-27-2009, 04:23 PM
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.