LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem reverse engineering SetCtrlAttribute commands

Solved!
Go to solution

HI,

 

Though I know LabVIEW very well and have done some C C++ I have not used LabWindows in anger, so please excuse a possible stupid question.

 

I have a project at least 10 years old with very little documentation I am looking to upgrade. This project was written in Borland C but used LabWindows, I do not know what version to provide the UI.

 

Having spend some time going throught the code and mostly understanding it I have a problem with SetCtrlAttribute.

 

 

So  I understand in LabWindows CV the format of this command is 

     int SetCtrlAttribute (int panelHandle, int controlID, int controlAttribute, ...);

so for example 

     SetCtrlAttribute (screen, ScreenRes_Interval, ATTR_CTRL_VAL, 1);

 

but in my C code I have 

 

SetCtrlAttribute (screen, ScreenRes_Interval, 6, 7);

 

so ScreenRes_Interval is a numberic control type on a Panel called ScreenRes, I have found the .h file with that information in it and that makes sense but I cannot find how do I map the integers in my control attribute so 6 in my case what the attribute is? 

 

so basically I am looking for a file or document that hold the values of the ATTR_  so I find out what my code is doing on the UI

 

many thanks in advance 

 

Danny

 

 

 

 

 

 

Danny Thomson AshVire Ltd
0 Kudos
Message 1 of 2
(1,965 Views)
Solution
Accepted by danny_t

You'll find them in include/userint.h in the CVI directory.

-----------------------
/* Nothing past this point should fail if the code is working as intended */
Message 2 of 2
(1,921 Views)