Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Does CVI's IVI wizard support the creation of DAQ instruements?

Need to write an IVI driver that is controlled via a DAQ card. Will CVI's IVI wizard support this? Also, we are using IVI since it must be compatible with another device (creating our own class) that is controlled via DAQ and GPIB. Is this even possible in IVI and MAX? Or do I need a DAQ component to the driver and a GPIB component. Thanks.
0 Kudos
Message 1 of 9
(4,573 Views)
CVI wizard does not support DAQ boards and default template will not work. Default template read resource descriptor from configuration file or use resource descriptor from init function and call viOpen. VISA does not support DAQ boards. You must define your own resource descriptor for DAQ board and use NI-DAQ.

If your instrument is using only one interface (GPIB or DAQ). You can specify resource descriptor in MAX.
Example: for GPIB instrument "GPIB::12::INSTR" and for DAQ your own descriptor. "DAQ::xx::INSTR".

If your instrument is controlled via both interfaces in one time, you will use only GPIB resource descriptor and additional DAQ information will be passed through DriverSetup in option string. Option string is parameter of prefix_InitWithO
ptions function. DriverSetup can be set in MAX too.

If you have two instruments and one is configured via GPIB and second via DAQ board, I suggest create two drivers. One for GPIB, which will use VISA and second for DAQ witch, will use NI-DAQ.

Regards,
Zdenek
0 Kudos
Message 2 of 9
(4,573 Views)
Hello-

There are some instrument drivers available for our cards at ni.com/idnet. If a driver for this card does not exist, it is possible to create an IVI driver for a specific class by using NI-DAQ calls instead of VISA calls. The wizard in CVI can help create the skeleton code for such a project, but the test phase of the wizard will likely fail.

Randy Solomonson
Application Engineer
National Instruments
Message 3 of 9
(4,573 Views)

Hello...

 

I am an intermediate person of labview.I want to develop new instrument driver using labview and I know all command set of the instruments. How can I create driver? I started with create instrument driver project wizard from tools. Then i am able to use the different subvi's icons from the function pellete in instrument i/O. Am I in a right track? How can I use the driver? Any need to make the dll of driver software. How can I complete the project. expecting valuable suggestions

0 Kudos
Message 4 of 9
(4,194 Views)

Refer to the bottom of the page of the Instrument Driver Network where one of the tabs has links to how to create a driver.

 

p.s. Try to start a new thread next time instead of posting to an old an unrelated one.

Message Edited by Dennis Knutson on 07-21-2009 06:33 AM
0 Kudos
Message 5 of 9
(4,186 Views)

Hi John

 

a dll is not needed, you can do all programming in LabVIEW

greetings from the Netherlands
0 Kudos
Message 6 of 9
(4,176 Views)

Hai,

 

 

 Thanks, I require automatic detection of the instrument also in windows. is it possible by Labview? Do you mean the instrument driver Vis that is obtained from the fn pallete>>instrument i/o>> istrument driver can be used in the high end application programme as subVi's. How can I build one driver software for the automatic connection establishment when plugged in using labview? Thanks

0 Kudos
Message 7 of 9
(4,169 Views)

Hai,

 

 

 Thanks, I require automatic detection of the instrument also in windows. is it possible by Labview? Do you mean the instrument driver Vis that is obtained from the fn pallete>>instrument i/o>> istrument driver can be used in the high end application program as subVi's. How can I build one driver software for the automatic connection establishment when plugged in using labview? Thanks

0 Kudos
Message 8 of 9
(4,169 Views)

Hi

 

take a look at the instrument driver guidelines found on NI pages

e.g. https://www.ni.com/en/support/downloads/instrument-drivers/tools-resources/instrument-driver-guideli...

greetings from the Netherlands
0 Kudos
Message 9 of 9
(4,147 Views)