Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

USB and Ethernet port

Hi All

I want to write a small program in .NET (C#) to test USB and Ethernet ports on the device.
I want my program to use the USB and Ethernet ports on my computer to test the ports on the device.

My computer system has the following
- PCI-GPIB Card.
- Automation & Measurement Explorer version 4.2.1

I would appreciate if some one helps on this.

Thanks



Message Edited by master9991 on 11-14-2007 12:35 PM
0 Kudos
Message 1 of 2
(3,195 Views)
Hi,
 
In order to test any type of port, you will need to have some device connected and test the communication.  If you are trying to create a program that only allows the application to proceed if it cannot verify that the port is communicating, I recommend using a basic command (such as a device identification query).  If this command returns an error or times out, then the port communication is not set up.
 
What device are you trying to test the ethernet and USB ports on?  What devices will you be connecting to each of these ports?  General commands and coding applications are device specific, so the more information you can give me the better.
 
I hope this gives you a general idea of where to begin, but if not, do not hesitate to respond with more information and we can try to work through everything.
 
Regards,
Lauren L.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 2
(3,159 Views)