Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69161

Combo box to initiate event causes program freeze

$
0
0

Hi All, 

 

I am building an application that allows an operator to specify a corrective action taken to fix a part on the line. The customer has 3 levels of repair specificity in an access database that I am using to populate combo boxes that the operators will select. Code executes like this 

 

Call SQL database to populate vague level 1 options in combobox

Event structure to save vague problem and exit, or wait for value change in combo box  

   which 

Calls level 2 values based on combo box 1 selection,

Event structure to save specific problem and exit, or wait for value change in combo box 2

   which 

Calls the level 3 values based on combo box 2 selection 

Operator saves very specific problem and data is stored. Exit VI. 

 

 

It seems that the program will freeze after making a selection. I can change combobox 1 exactly 1 time, but then it will not allow me to change combobox 2. I cannot select anything in combo box 3. Highlighting execution shows the problem is when waiting for an input into the event structure, but I can't change the values linked to the event.  I know the SQL queries work because looking at the comboboxes after stopping the program shows the correct values. 

 

I appreciate any input. 


Viewing all articles
Browse latest Browse all 69161

Trending Articles