05-16-2008 10:15 AM
05-16-2008 10:57 AM
05-16-2008 11:07 AM
Ok. when 2 instruments are connected. when i click the "scan for instruments", it also come out different types.
Sometimes it can detect only one and sometimes both.Sometimes worse, it can detect up to 5 instruments where i only got 2 instruments connected to it. I believed this is the unstability.
I had tried to connect my 2 instruments on another computer. The problem is the same. From there, i believed that there is nothing wrong with the GPIB card. Also nothing wrong with the cables as i can detect them whenever i connect only one instrument (always stable).
so you mean that i do not need to edit anything for my settings even though i had put mulitple instruments on one GPIB. But now, it seems like the instabilty occurs when i connect 2 instruments. one instrument no problem.
Instrument 0 - address 5
instrument 1 - address 17
05-16-2008 11:26 AM
No, there is nothing to set to make a GPIB controller detect multiple instruments. It is always supposed to be able to detect multiple instruments. What you can do is go into the controller properties and change the timing. Some instruments (and especially old ones), benefit from slowing down the bus timing. You haven't provided the make and models of the instruments like I asked so I have no idea if they are supposed to be compliant to 488.2.
Since you don't typically have to do a scan for instruments very often, this may be a situation that you will just have to live with. What will need to be fixed will be if you have problems communicating to each individual instrument when you write your program.
Also, there can be cable and instrument faults that will allow you to detect a single instrument but fail when multiple are connected.
05-16-2008 07:28 PM
Sorry, i forget the models and makes of the instruments. One of them is a HP meter.
So what is the suitable range of timing to set? I will try again.
05-16-2008 09:52 PM
I don't have a controller here and don't remember the actual options. Right click on the device in MAX and select properties. One one adjusts bus timing (not the timeout setting). The default setting is for the minimum time. Change to the max time you can and see if that makes a difference.
One thing I haven'tt asked is the model of the GPIB controller. I've used old is, pci, and usb and I don't think it would make any difference but you never know.
05-17-2008 09:57 AM
Mine is using PCI. My current timing is 1sec. I had tried 10sec but still useless. Maybe i will try the to set to the max timing.
If still unable to solve the problem, do you think i should add another GPIB card into the computer. So that one instrument is connected to one GPIB card?
05-17-2008 12:10 PM
If you set a timing of 1sec or 10sec, you set the timeout for a read. There is a timing setting in the order of usec that you can experiment with.
The GPIB spec calls for up to 15 instruments on a bus at one time. I see no reason to use two different controllers unless you are unable to fix the problem. You have a bad controller, cable, or instrument. That is why I suggested swapping out the cables and instruments - in order to isolate the issue.
05-19-2008 09:42 AM
magou,
I agree with Dennis. The problem is can be coming from either the cable or some old instruments. The "scan for instruments" action will cycle through all GPIB addresses and address each one to listen. If there is an instrument at one of these addresses, it automatically asserts its handshaking lines. The controller will then try to communicate with the instrument by sending a fairly common command (*IDN?).
Your instrument may be so slow that it shows up on multiple addresses (because it never un-asserts the hanshaking lines). What version of the NI-488.2 driver are you using? I noticed that the newer versions of the driver do not wait nearly as long for each address that it checks.
Thanks,
Steven T.
05-20-2008 08:49 AM