LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

"g" prefix on many DAQmx variable names

I am new to DAQmx.  As I look through example programs, I find many variables have a 'g' prefix, such as in "gTaskHandle".  Can anyone explain why this prefix is used?  There is also the use of a "gh" prefix.  What meaning does that have?
0 Kudos
Message 1 of 2
(2,924 Views)

Hi,

 

That 'g' probably means global.

This is a naming convention used by the coder of those samples.

 

I myself use a similar way to identify my variables within the body of the code.

I find it useful, too.

S. Eren BALCI
IMESTEK
0 Kudos
Message 2 of 2
(2,914 Views)