ni.com is currently experiencing unexpected issues.

Some services may be unavailable at this time.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Fluke PM6304 controlled with LabView via RS232

Hi,

we're going to control our Fluke RCL Meter with Lab View via RS232.
Does anyone has experience and show sample code?
I failed already to make a terminal connection between my PC and the PM6304

Thanks for comments, maximint.
0 Kudos
Message 1 of 7
(4,929 Views)
I've never used the instrument but there is a driver for it here. You should always go to the Instrument Driver Network to start your search for existing drivers. And what do you mean that you "failed already to make a terminal connection between my PC and the PM6304"? Before you try writing any code or using a driver, you should verify communication with the instrument in MAX or Hyperterminal. If you can't get it to talk there, you're not going to have any luck with LabVIEW.
0 Kudos
Message 2 of 7
(4,923 Views)
Hi,

thanks for the answer. But I'm using RS232 and not GBIP.

THanks, Thomas.
0 Kudos
Message 3 of 7
(4,913 Views)
So what? If the driver is written with VISA, it takes about 5 minutes to add serial support and if it was written with the low level GPIB functions, it just takes a bit longer to replace the GPIB Read/Write function with VISA Read/Write functions. All of the commands to the instrument are the same.

And, you still didn't answer about what failed in your attempt

Message Edited by Dennis Knutson on 10-11-2006 05:50 AM

Message 4 of 7
(4,907 Views)
Hi Dennis,

So, I was successful to communicate between my PC and the Fluke via RS232. But I used old Qbasic program. It's working under DOS and
under W2000 in a DOS box. I'm lucky to see that the communication works so far. My first attempt was to communicate with a terminal program, without success.
Now,
many thanks for your link to the driver. I downloaded and installed everything but  I've problem to adapt the driver to RS232 as it is for GPIB. What do you mean with "written with VISA" or "low level GPIB" funtions? Do you see any possiblity to send me a sample VI for RS232?

Many Thanks, Thomas.



------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
So what? If the driver is written with VISA, it takes about 5 minutes to add serial support and if it was written with the low level GPIB functions, it just takes a bit longer to replace the GPIB Read/Write function with VISA Read/Write functions. All of the commands to the instrument are the same.

And, you still didn't answer about what failed in your attempt

Message Edited by Dennis Knutson on 10-11-2006 05:50 AM

0 Kudos
Message 5 of 7
(4,873 Views)

Okay, here goes. Once upon a time there was just serial and gpib. Each used completely different hardware,protocols, etc. and there were separate drivers for each. Years ago, a new instrument type was introduced. Based on a VME backplane, these were instruments on a card called VXI (VME with instrument extensions). So, a whole new low level driver was required. The makers of VXI, realizing that the first VXI instruments were the same as their GPIB instruments without a display or power supply, thought that it would be nice if the software that had been developed for the GPIB instruments could also be used for the VXI version. Several vendors, including NI, came up with something called VISA (Virtual Instrument Software Architecture). This was an API that united GPIB and VXI. If you wrote an instrument driver with VISA Writes and VISA Reads, it would work with either type of instrument. The VISA driver itself would determine the actual type of bus and handle all of the low level details. One of the goals of all these vendors was to also make it easy for users to change from GPIB to VXI instruments. While this didn't really happen, the idea of VISA caught on and became very popular and sort of a standard in many places. Eventually, other common forms of instrument busses were added to VISA. Among those are serial, ethernet, usb, pxi. All of the instrument drivers written by NI now use VISA.

I downloaded the driver for the instrument you need and had a look at it. It really doesn't have much, it's very old, and uses the GPIB functions (not VISA). Since there were so few functions, I went ahead and replaced the GPIB Reads and Writes with VISA Reads and Writes. That will give you a start. You will also need to add some code to initialize the serial port. A great place to look to see how this is done is with an example that has shipped with LabVEIW for years. The HP34401 DMM driver that is on the instrument driver palette is a VISA driver with special support for serial. All of the serial setup is done in the initialize subVI. The type of interface is determined and if serial, baud rate, parity, etc. are setup. Another important setting is a termination character. Serial instruments usually require a CR or LF at the end of each command. You will need to determine what your instrument requires.

Message 6 of 7
(4,871 Views)
Hi Dennis,

many thanks for the detailed explaination and the samples you send. This helped very well.
I used the init routine from the HP Multimeter driver and the rest from the PM6304 GBPI driver.
The Fluke PM 6304 is now running via RS232.

Many Thanks again, Thomas. Smiley Very Happy
0 Kudos
Message 7 of 7
(4,843 Views)