12-07-2012 04:32 PM
Hi Eric
I also just purchased a Prologix USB-HPIB, and I'm trying to control a Agilent (HP) 6p033 power supply. I can get the power supply to ISET and VSET by using the GPIB Configurator. However, I want to be able to incorporate a controller vi in an existing LabVIEW program. Is this possible? Any help would be greatly appreciated. Specifically, what I'm looking for is a 'standard' controller vi. I suppose none exists at this point, is that right?
Allan
12-07-2012 06:36 PM
12-07-2012 06:51 PM - edited 12-07-2012 06:55 PM
First, check to see whether a driver exists already in labview. Most times they will have a gbip driver. Then you need to convert it to a serial driver.
Modifying a lab view driver is not that hard. I have gotten quite good at it by now. The biggest differences between gpib and serial (you will be using serial to communicate with your device if it is plugged in via gpib to usb) is the line endings and data limits. I found that everything I sent to the devices had to be terminated by a carrige return, and I had to modify the read driver to read untill there was no more data left. Apparently, gpib will let you get all the data that was sent to the pc in one read. With serial, this is not the case. You have to read however much is on the serial port, wait a few ms, then continue untill there is nothing left to read. I just created new subvi's for read and write to do these two things. I can send them to you if you want.
Eric
12-07-2012 10:32 PM
Hi Eric
I would appreciate your sending them to me.
I just need to write to the device, but reading is great, too.
Thanks, Eric. I really appreciate it.
Allan
11-19-2018 03:01 PM
Hi Eric,
Sorry to bother after such a long time. But I'm kind of desperate now since I don't really have much experience in Labview. Do you still happen to have the read and write sub VI?
11-20-2018 07:34 AM
Allan,
Try using this for controlling your Power Supply. I created this for use with the Prologix GPIB-USB Controller.
04-16-2024 09:30 AM
comment communiquer avec un fréquencemètre Fluke PM6685 ou PM6685R, un multimètre Model 2000, et d'autres instruments Fluke Timer/Counter/Analyzers (PM6680B, PM6681, PM6681R, PM6685, PM6685R) en utilisant un contrôleur Prologix GPIB-USB pour lire les données des instruments en temps réel et les afficher sur un ordinateur à l'aide d'un programme Python et faire une interface graphique.