LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Driver Architecture Question

Hi tbd,

I would really like to take a look at the driver you posted, but cannot open it as I am running 7.11. Any chance of back saving it?

Thanks!
0 Kudos
Message 11 of 14
(870 Views)
Hi nrp,
      Here it is - in 6.1  Smiley Surprised
 
Cheers.
 
 
"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
Message 12 of 14
(848 Views)
Great, thanks for this.
0 Kudos
Message 13 of 14
(801 Views)

I am from NI Instrument Driver development team. Regarding the guideline of developing instrument driver, you should first refer to http://www.ni.com/devzone/idnet/library/instrument_driver_guidelines.htm.

 

Regarding the question about setting and getting function of the instrument, my suggestion is:

1. according to the guidelines, we do not usually have the get setting function in the instrument driver as the P&P driver should be as simple as possible. We only have Configure(set) function. We assume that the instrument will return the error information if there is something wrong with the setting in the Configure function.

 

2. If the developer really want to add get setting function to the P&P driver, there are two options:

   a) use Configure VI for set function and an another Query VI for get function.  For example, a Configure Measurement VI and a Query Measurement VI.

   b) add some indicators to the Configure VI. Each indicator is corresponding to one control of this Configure VI. You could add the get setting command to the Configure VI and the let the setting output to these indicators. If no error occurs, the value of the indicator should be the same as the input controls.

 

Regarding the USRs and global variables, there is a way to avoid the problem which will occur when ontrolling multiple instruments.  Refer to the Block Diagram Structure of ...Program Files\National Instruments\LabVIEW 8.2\instr.lib\Agilent 34401\Private\Extended User Data.vi

 

Regards,

Liping Zhao

 

Message Edited by LipingZhao on 07-30-2007 03:08 AM

Message 14 of 14
(800 Views)