Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

How to comment defines for ni instrument driver?

We use the NI Measurement Studio Instrument Driver Wizard 2010  SP1 in Visual Studio 2010.

The converter finds the defines in the header file which corresponds to the function panel and creates a class with all defines.

But the comment from the defines are missing. How do i have to comment the defines in the header file that the converter includes them into the instrument driver?

 

e.g.

in the header file:

#define AAA_MODE_CC (0) // this is the comment for the define

 

in the instrument driver after running the wizard:

public class AAAConstants
{
        public const short ModeCc = 0;

}

 

we like to have something like this in the instrument driver:

public class AAAConstants
{

        /// <summary>
        /// this is the comment for the define
        /// </summary>
        public const short ModeCc = 0;

}

 

0 Kudos
Message 1 of 2
(5,266 Views)

Hi K.Werner,

 

The MStudio Instrument Driver Wizard generates an instrument driver wrapper based on an function panel (.fp) file rather than a header file.  The .fp file is created in CVI and is similar to a header file as it contains information about the function calls in a DLL and their parameters.  When using the wizard, it states as shown below that the generated commens will be taken directly from the function panel help.  If the customer wishes to add comments to be generated, then they simply need to add help information to the front panel functions in CVI.

0 Kudos
Message 2 of 2
(5,173 Views)