Hi All
How can i in VBA check all the Serial Ports to see which one the Multimeter is connected to?
Without using the dialog.
I would like to automate this process so the end user doe not have to deal with this.
How can i in VBA check all the Serial Ports to see which one the Multimeter is connected to?
Without using the dialog.
I would like to automate this process so the end user doe not have to deal with this.
If you want to be able to check and see if the DMM is actually at one of those addresses, you need to open a connection to it and send a *IDN? to see if anything responds. You will also need to specify the Serial parameters that the instrument is setup for.
Here's a code fragment that will find the COM ports, open them and try to talk to an instrument. Make sure that you add a Reference to VISA COM before trying run Find34410OnSerial()