07-03-2008 09:08 AM
07-03-2008 09:19 AM
07-03-2008 09:50 AM
07-03-2008 11:03 AM
05-20-2009 03:51 PM
Hi, sorry to resurrect this old thread. I'm only a humble autodidactic system administrator at a very small company, but two weeks ago my boss handed me a Prologix GPIB-USB controller, an old book and cd of LabVIEW 8.2, and an Agilent/HP E3631A power supply saying to have fun, I'd be controlling all of the instruments in the lab.
I can communicate with the power supply easily via the terminal. I can also communicate with LabVIEW sending basic strings by adding \r\n as mentioned here in the forum.
The book specifically said that modifying the device drivers is the last thing one should cut their teeth on, but how would I go about doing so to account for the Prologix controller? Do I concatenate an end-of-line constant for each and every VISA Write that the driver's subVIs make?
Even though I have little to no actual programming experience, I feel as though I'm missing something relatively simple.
05-20-2009 04:50 PM
Yes, you'll have to modify the driver and concantanate a CR/LF at each VISA Write. The good news is that a power supply is one one the easier instrument types. However, you might have to do some extensive modifications to perform some low level GPIB functions as opposed to ordinary reads and writes.
If your boss is the understanding type, you can tell him that the money he saved by buying the prologix is going to be more than wasted in the time its going to take you to modify the single driver and next time leave this type of decision up to someone who's a bit more familiar with this sort of thing. Having to modify more than one is just plain stupid, imho.
05-21-2009 09:03 AM - edited 05-21-2009 09:04 AM
Darren,
While I agree with Dennis's post, here are a couple links that may help you out:
Prologix FAQ: http://www.prologix.biz/faqUSB3.x.php
Prologix Examples: http://www.ftdichip.com/Projects/CodeExamples/LabVIEW.htm
Eric K
Applications Engineer
National Instruments
05-21-2009 09:19 AM - edited 05-21-2009 09:20 AM
And here are some of the VISA functions that you simply cannot use and will have to write an equivalent function. You probably will not see some of these in a driver but there are some that you will see quite a bit.
05-21-2009 11:29 AM
Unfortunately, my boss is more the tough love/broaden your understanding type.
At any rate, thank you both for the responses--they've been very helpful. I'll see about enacting these suggestions while letting it be known that an actual GPIB controller card might not be such a bad last resort.
08-09-2012 11:01 AM
Hi, I had also this kind of problem. We bought prologix usb-gpib controller. At first connection it installed FTDI drivers to work with serial connection. When I downloaded sample labview program from prologix website it did not work. I started to search for possible problems. It appears I had basically two problems there.
1) In labview program Visa resource name's Visa class must be changed to "serial instrument". you will find it right clicking resource name in program diagram.
2) When you write command to instrument it is not sufficient to use command code itself, you need add after that ++auto 1 which is prologix command to listen, these comands are listed in prologix gpib-usb controller's manual. For example for HP multimeter I use F3 ++auto 1 to get 2-Ohm resistance measurement.
If you don't get response from instrument after that just make response time in program larger.
Another mistake that I made: I thought visa serial gpib commands and FTDI VI's must be used together when writing program with prologix, it appears they are two seperate ways, either one is ok.
Hope it all helps.