LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

gpib


@ichigo55 wrote:

I know a little bit about both I have only dove into lab view only over the last few months to create this automated process where I need to keithley devices to take readings I know the address of both but only the one with address sixteen is being seen since that is the primary address of the cable it seems like.


All your devices must have unique addresses - including the controller.  Maybe the one that is't working has the same address as your controller?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 11 of 35
(1,428 Views)

I whish that was the issue the one that is working is the one that has the same address as the controller as to where the one with a different address is not being seen. So I have one keithley with address of 5 and another with address 16 and the 16 one is being seen.

0 Kudos
Message 12 of 35
(1,423 Views)
That better not be the address of the controller. You need to learn the basics of GPIB. Nothing to do with LabVIEW to verify the instrument has GPIB enabled from its front panel.
0 Kudos
Message 13 of 35
(1,422 Views)

So in NI max it says that the gpib visa address is GPIB0::16::INSTR so when I try and communicate with one of the devices and I change the address on the device to 16 the GPIB cable sees it and is able to read it when I do idn? and do a read function on it. However when I attach the controller to the second keithley that has address of 5 for example it gives me a time out error.

0 Kudos
Message 14 of 35
(1,418 Views)

And yes both devices are set to gpib

0 Kudos
Message 15 of 35
(1,415 Views)
The GPIB controller and the instrument CANNOT be the same address. Your responses are confusing. The controller should have an address of 0. If that's correct and the second instrument is set to 5, what happens when you do a scan for instruments in MAX? If that fails, the second instrument should be sent in for repairs.
0 Kudos
Message 16 of 35
(1,405 Views)

@ichigo55 wrote:

So in NI max it says that the gpib visa address is GPIB0::16::INSTR so when I try and communicate with one of the devices and I change the address on the device to 16 the GPIB cable sees it and is able to read it when I do idn? and do a read function on it. However when I attach the controller to the second keithley that has address of 5 for example it gives me a time out error.


I'm not sure what you mean by "GPIB cable"?  DId you rescan for new GPIB devices before trying out address 5?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 17 of 35
(1,401 Views)

So I have attached a screen shot of my nimax showing the primary address and so on. It says primary 16 gpib interface 0. On the keithley device I change that address to 16 when it is sixteen the computer recognizes it and is able to successfully get a reading from it. However on the second device I have as a different address number 5 for instance it will not recognize it. Please refer to attachments to see what I am talking about as far as nimax is concerned. 

Download All
0 Kudos
Message 18 of 35
(1,397 Views)

@ichigo55 wrote:

So I have attached a screen shot of my nimax showing the primary address and so on. It says primary 16 gpib interface 0. On the keithley device I change that address to 16 when it is sixteen the computer recognizes it and is able to successfully get a reading from it. However on the second device I have as a different address number 5 for instance it will not recognize it. Please refer to attachments to see what I am talking about as far as nimax is concerned. 


Now we are getting somewhere.  You hook them both up and do a scan and you only see one?  If that is the case, maybe the instrument is bad.  OR, the cable attached to it is bad.

 

Oh, and the screenies answer my question as to what the GPIB cable is.  😄

 

I'd like to see the address of the controller.  I've seen them default to... 16.  Not as common as 0, but I've seen it.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 19 of 35
(1,395 Views)
The address of the controller is 0 - GPIB0.

The image just shows the first instrument - the one at address 16. Is the other instrument connected at the same time?

Did you connect and disconnect the cables to the instruments when they were powered on? That could damage them.
0 Kudos
Message 20 of 35
(1,368 Views)