Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

how to install a instrument driver in labview.

I'm not sure what you are asking. Do you want to know how to use the driver you downloaded or do you want to know how to use the IVI Class functions with the driver you downloaded?
0 Kudos
Message 11 of 34
(1,856 Views)

Hi, 

 

Since it is a  IVI tyep dirver, i want to know how to install this type dirver, so that i can use it. If i only copy files into labview, I am

 

afraid of it cannot be used.  I had tried its a example vi and cannot communication with my instrument through serial cable, but the

 

commnucation is ok in MAX. So I think maybe i must install it with a IVI driver before i can use it.

 

Thanks.

0 Kudos
Message 12 of 34
(1,848 Views)

No, as already mentioned, the only thing you need to install is the IVI Compliance Package.

 

Did not notice that you were using RS232. Did you not see the notes on the driver download page that it only supports GPIB? If you have a copy of LabWindows/CvI and if there is source code provided, you can modify the driver to work with RS-232.

0 Kudos
Message 13 of 34
(1,844 Views)

The driver on NI's web page (IDNet) doesn't seem to include LabVIEW files and it supports only the GPIB interface:

 

http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=06E5FAB68B37283BE0440003BA7CCD... 

 

If you have downloaded the driver from Chroma's web site, you should ask them to provide the correct LabVIEW files.

 

Another option would be to download and install the driver provided on IDNet and then create LabVIEW files yourself using the LabVIEW Instrument Driver Import wizard:

 

http://lumen.ni.com/nicif/us/gb_infolvinstdriver/content.xhtml

Message 14 of 34
(1,827 Views)

Hi, Dennis.

 

From Ni driver page, i notice that only support GPIB, but i am not sure about it and wish it can support RS232.

 

From that page, only labwindows/cvi version is provided. I use LabVIEW Instrument Driver Import Wizard to

 

create labview driver, but it cannot communicate with device. So both driver from NI page and chroma page

 

have the same result. 

 

In MAX,*IDN?\n can get response. I create a logical name and sessions for my DC under  IVI drivers in MAX,

 

import dll. Then call  a initialize.vi and input local name as resource name, DC screen can display "RMT", it seem

 

that they can receive command, but at last, timeout error will report. I don't find a place to set timer and don't

 

know how to handler too. I must use logical name, instead of  COM1, right? very confused.

 

please keep on your help, very appreciated.

 

Thanks.

 

 

If i use

 

 

0 Kudos
Message 15 of 34
(1,825 Views)
HI, gagi1

Do you mean that I can use LabVIEW Instrument Driver Import Wizard to create a labview driver which can support RS232,right?

Please give me a confirmation.

Thank your very much.
0 Kudos
Message 16 of 34
(1,824 Views)

 Using the import wizard will not magically modify the dll to add serial support. The driver you posted seems to have been created with the wizard. I assumed you had done the conversion.

 

It's a power supply, correct? The programming for it could not be that complex. Write your own.

0 Kudos
Message 17 of 34
(1,809 Views)

HI, Dennis.

 

I use import wizard on driver download from ni website. I post the driver donwloaded from web.

 

I don't have experience about writing a dirver. 😞

 

thanks.  

0 Kudos
Message 18 of 34
(1,798 Views)
It's really not that hard. There is information on the Instrument Driver Network. As long as you have the programming manual, you should be able to create something that will communicate. You can use Hyperterminal or MAX to debug the commands and check the responses. There is also a wizard in LabVIEW that you could use. Lastly, there is the Instrument I/O Assistant.
0 Kudos
Message 19 of 34
(1,796 Views)

Hi Dennis,

 

ok. I will try to do it if i have time.

 

There are about 25 test items that i have to finish on time.  ;(

 

I had asked chirma for help too.  

 

thank your support very much.

 

DO you know how to get VISA resouce name in program. Just in a dropdwon list, I don't know

 

whether i can get USB resource name dynamically.

 

Maybe i should ask in another thread.

 

Thanks.

 

br.

 

0 Kudos
Message 20 of 34
(1,786 Views)