LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Global function

Hello everybody... i have an issue...

i have made many functions, which i will use them i another projects in C... i dont know how i should add them ad global functions... how should i add them for example in math.h or another header files... i appreciate your support... kind regards, venus

0 Kudos
Message 1 of 2
(1,942 Views)

Hello Venus,

 

What you could do is int the variable:

"int variable = 0;"

then in your other code call it again:

"extern  int variable;"

 

Similarly to how they did it on this post: https://forums.ni.com/t5/LabWindows-CVI/How-do-I-handle-global-variables-and-include-files-when-usin...

 

Best,

MrJacket

0 Kudos
Message 2 of 2
(1,833 Views)