09-15-2005 04:40 AM
09-15-2005 08:29 AM - edited 09-15-2005 08:29 AM
If you don't know if one or the other is going to be connected, then you can use viFindRsc to get a list of all instruments. If both are always going to be connected, then you should first read the instrument manual on how to set and change the address. They both have to have unique addresses and sometimes a vendor will set all of their instruments to the same default address. Once you've connected the instruments to the GPIB bus, you can also use MAX. Right click on the listing for the controller and select Scan for Instruments. In MAX, you can also assign a VISA alias. Then in your program, instead of using a resource name of "GPIB0::6:INSTR", it could be something like "FunctionGen".
Message Edited by Dennis Knutson on 09-15-2005 07:32 AM
09-15-2005 09:37 AM