LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a Labview Chroma6310 driver that works with serial port instead of GPIB?

The driver that I have downloaded from NI site is based on GPIB, I need to run it via serial port. I don't have GPIB board. I am pretty new in NI world. How easily can I convert the GPIB driver to serial port (ASRL)? Has anybody already done this? Any help on this is highly appreciated.

Best regards,
Farsh
0 Kudos
Message 1 of 3
(2,681 Views)
I haven't looked at the driver and I'm not familiar with the instrument but the conversion should be pretty simple. If it uses VISA for the GPIB communication, the conversion is already done. VISA works with both GPIB and serial - just use the name of the serial port as the VISA reference name. This would be ASRL1 or Com1. If it's an older driver with the traditional GPIB calls, then replace every instance of GPIB Write and GPIB Read with VISA Write and VISA Read. You might also have to add some line terminator like CR/LF to every write. There are a lot of instrument drivers that are compatible with both serial and GPIB. The HP34970 is one that comes to mind. You might want to look at it to see how to do it yourself.
Message 2 of 3
(2,681 Views)
Thanks Dennis,

I looked at the driver, it�s using the visa calls. So according to your suggestion I will change the Resource/Reference Name from GPIB to ARSL1.

Thanks a lot, this really makes my life easy.

Have a great weekend,
Farsh
0 Kudos
Message 3 of 3
(2,681 Views)