LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with global variables passing with Labwindows CVI 5

Hello

 

I am trying to implement this in my program .. but assigning the Global variable is not working 

 

NOTE: I am using LABWINDOWS CVI 5. (Old version)

 

/////***Test 1 contents****///

 

extern ViInt32 A= 0;   // Assigning  ‘0’  to Global variables 
extern ViInt32 B= 0;
extern ViInt32 C= 0;
extern ViInt32 D= 0;

 

if (revision = =1)

{

A=Confirm Popup (“Verifiy”,"Does this unit also have hardware A”);

}

///*** end of Test 1 ***//

 

If I am trying the access above global variable to Test 5 or some other test program within same project

/////***Test 5 contents****///

 

If (A)

{

printf (“the Hardware mod is REV A”);

}

Else

{

Printf(“NO Hardware mod find”);

}

//*** end of Test 5 ***//

 

Now the query is whichever option (YES OR NO) in the confirm POPUP in Test 1. I am getting the output: “NO Hardware mod find”

The reason is the Global Variable is not passing.  

0 Kudos
Message 1 of 1
(3,926 Views)