What is the meaing of the sysmbolic constant value in the header file for UIR file and how they are used

In labwindows after creating the uir then header file is create automatically. There it has define some symbolic constant. As examples of colview.h(from the examples of labwindows )
#define  MAINPNL              1       /* callback function: MainPanelCB */
#define  MAINPNL_RESULTS      2     /* control type: table, callback function: ResultTableCB */
#define  MAINPNL_NEWTEST     3       /* control type: command, callback function: NewTestCB */
My question is how these values 1, 2 and 3  were selected and how they are used in programs ?
If anyone explains, it will be a great help.

When creating a UIR file, CVI editor takes care of assigning constants to the panels / controls you create in it.
The conceptual framework is the following (assuming to treat the file you have reported in your message):
- Within a single UIR file all panels have a unique ID, which is the one you pass to LoadPanel when loading a panel into memory. LoadPanel (0, "myfile.uir", MAINPNL); is then translated to panelHandle = LoadPanel (0, "myfile.uir", 1); , that is: "load the first panel in the uir file". The panel in memory is then assigned a handle, which is guaranted unique by the OS and saved in panelHandle variable
- Addressing a control in a panel is done e.g. using SetCtrlVal (panelHandle, MAINPNL_NEWTEST, xxx);  , which again is translated to SetCtrlVal (panelHandle, 1, 3);  that is: "Set control #3 in the panel identified by panelHandle to value xxx".
You must not modify the include file associated to the UIR as it is fully maintained by the IDE and is rewritten each time you save the UIR file.
That conceptual framework has some advantages and some caveats:
- You can load the same panel more then once in your program: each instance is independent from the others as each panel handle is unique; in some occasions it may be helpful, e.g. if you need to handle several identical equipments connected to your PC and you can load the same control panel for each unit connected maintaining each of them independent
- If the panel handle is wrong, the system does not warn you of this as it does not know of the symbolic names you are using; if you try that SetCtrlVal command with a wrong handle you are trying to manipulate a control on a panel different from the one you intend: supposing actual panel idientified by the handle has control #3 the maximum you can expect is that you receive an error in case you pass e.g. a string to a numeric, but if controls are of the same type you have no errors or warning at all! This is particularly important when addressing controls on pages of a tab control: each page is really a separate panel with its proper handle that you must retrieve with GetPanelhandleFromTabPage command before addressing the controls on it
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos?

Similar Messages

  • When i open iphoto i see my photo's for 1 second and then they are gone .The photo's are still there but i can see them only on the bottom or top of my screen when i try to open them i get a sign that it is not possible.Can somebody please  help me?

    when i open iphoto i see my photo's for 1 second and then they are gone .The photo's are still there but i can see them only on the bottom or top of my screen when i try to open them i get a sign that it is not possible.Can somebody please  help me?

    Have you upgraded to iPhoto 9.6 for compatibility with Yosemite? If not, try that first.
    It looks like iPhoto has lost the connection between the thumbnails and the original image files.
    This can be caused by a corrupted iPhoto library, or the originals have been deleted or moved.
    Try first to rebuild your iPhoto Library:
    If you do not have a current backup of the iPhoto library, make a copy of the library, but do not overwrite any previous backup.
    Launch iPhoto with the ⌥⌘-key combination (option-command) held down.
    Select "rebuild" from the first aid panel.  This may take a while for a large library.
    Can you now see your photos again?
    If not, rebuild the library with iPhoto Library manager as described by Old Toad:            Re: iphoto crashed

  • My gamecenter id and password is hacked, and now they are using it to play my game. I already change my password, help me to get it back from the hacker, thanks

    My gamecenter id and password is hacked, and now they are using it to play my game. I already change my password, help me to get it back from the hacker, thanks

    If you have already reset your Apple ID/GameCenter Password, then they no longer have access to your GameCenter account.
    If they are still somehow still using your game, then contact the app developer.

  • Grr!! Why has Apple stopped the Classic! Mine is on its last legs, was going to buy one and now they are all sold out!! Im seriously hacked off Apple! What do i do now!?

    I cant believe Apple has discontinued the Classic without telling anyone - I need a new one and now they are all sold out!!!! Its crazy!! I have over 100Gb of music, in car, everywhere! And now when mine finally stops working (its on its last legs), I cant replace it as they don't do anything with the same capacity!! They have invented a great gadget and then stopped it! Usual big company mentality - oh well, time to start researching MP3 - no more Apple for me.....grrrrr

    steveoasis wrote:
    Interesting answer - but equally I am not 'obliged' to continue to use their ITunes or hardware
    No one is making you, it's your choice. However, this forum is for people to seek technical help on use of iPods, not for moaning about Apple's decisions.
    steveoasis wrote:
    I have just spent 2 hours trawling online/high st stores, everywhere is sold out - other than online at a premium - im interested in why you find this inexplicable,
    Because usually, when a product is discontinued, a store would drop the price to get rid of old stock (of a product that the manufacturer has decided is no longer popular).
    steveoasis wrote:
    what other device would you recommend that gives this much storage, ease of use/connectivity in car/home docking etc & does not have a horrible touch screen (which I don't get on with) - at under £200!? Im all ears.....
    I have only two suggestions.
    Wait. As per the suggestion in my previous post. There is after all, already an iPhone with 128GB capacity. Technically therefore, that would suggest that it is possible to produce a replacement for the Classic. But since I have no inside knowledge of anything Apple are planning, don't quote me on that!
    Work on the basis that since your iPod is only "on its last legs" rather than "not working at all", it still has a useful purpose. Maybe by the time it does stop working, suggestion 1 will have come to pass.
    I have no practical suggestion for avoiding a touch screen, it's the modern way!
    Of course, if all else fails, and you end up with an iPod that has less capacity than your Library, you could resort to using Smart Playlists to manage your iPod, by using them to add and remove songs (for example, ones recently played that you don't want to hear for a while) and thereby keeping the songs on the iPod within its capacity. If that interests you, please ask and I'll explain it in more detail.

  • What is the difference between Safari 5.1.7 and 5.1.10? I can not log on to my website, so that their customer service has said that they are using Safari 5.1.7, and I use 5.1.10 (which I have installed on my computer, Mac)

    what is the difference between Safari 5.1.7 and 5.1.10?
    I can not log on to my website, so that their customer service has said that they are using Safari 5.1.7, and I use 5.1.10 (which I have installed on my computer, Mac)

    Might be the security fixes >  Safari 5.1.10 for Snow Leopard

  • Help me please someone...In the middle of auditioning loops within a project, all my loops started sounding all wobbly like they are out of phase or something. what can i do to fix this. Thanks

    Help me please someone...In the middle of auditioning loops within a project, all my loops started sounding all wobbly like they are out of phase or something. what can i do to fix this. Thanks

    raise your I/O buffer and raise your Process Buffer Range.
    Logic Pro>Preferences>Audio>Devices>Coreaudio

  • Today I was shopping and I went to check the time on my Iphone but it had shut itself off for no reason and now it won't turn back on. What should I do?

    Today I was shopping and I went to check the time on my Iphone but it had shut itself off for no reason and now it won't turn back on. What should I do?

    It could have powered off. Try holding the sleep button down for a few seconds until the apple logo appears to restart it

  • What is the cloud and how do i use it

    what is the cloud and how do i use it

    This link is a little old, but this helps explain it:
    http://www.ihelpboard.com/2012/01/what-is-icloud/

  • What are the tools to create a digital magazine for ipad version and how can be place it in newsstand?

    Hello..
    "what are the tools to create a digital magazine for ipad version and how can be place it in newsstand?"
    I am very tired after done a week of R&D on this issue..
    But i doesn't get any fair solution for this one..
    I hope this is best option to place my issue here to get quick solution..
    Thanks and Regards..

    We are all users here.
    There is no one here from Apple.
    In order for you to develop and distribute content for the iPad, you need to become an apps developer.
    Not sure where you sign up for this or who you have to call.
    There should be a place on Apple's site that refers to a section of the site if you want to be an Apple iOS content developer.
    It cost, I believe $99 U.S. to become an Apple apps developer. You'll agree to Apple's Non-disclosure rules.  You'll receive Apple's app/software developers kit,and access to Apple's app developer site.
    No one here is going to be able to help you.
    Good Luck.

  • What is the use of control breaks in reoprts?  and how can we use them?

    hello all
    what is the use of control breaks in reoprts? and how can we use them in reports?

    use F1 on AT in a program.
    You get this
    Control break with extracts
    - AT NEW f.
    - AT END OF f.
    - AT FIRST.
    - AT LAST.
    - AT fg.
    Control break with internal tables
    - AT NEW f.
    - AT END OF f.
    - AT FIRST.
    - AT LAST.
    Each of these have a link to explain in detail what you are asking.

  • What is the location for the swatches file in the illustrator product part of Adobe Creative Suite 3 Design Premium for windows (date and lenght)? File that manges its funcionallity.  Thanks

    As per adobe agent chat representative, the following question is posted on the fórum to obtain an answe from adobe.
    What is the location for the swatches file in the illustrator product part of Adobe Creative Suite 3 Design Premium for windows (date and lenght)? File that manges its funcionallity.
    Thanks
    <moved from downloading,installing,setting up - kglad>

    Illustrator is not working as it should...
    I want them to compare the original size and date of creation with what I have installed on my computer... I have installed several times with my original CD and I tried once downloading the files from the adobe site (using my own license). I suspect the files has been modified or renamed on my laptop by an external unauthorized user causing the malfunction of the application. 
    Customer services does not support CS3 anymore and the updates / patches in the adobe site does not solve the problem... They redirect me to the forums for support...
    Presently, my problem is that after creating a swatch and drag it to the swatch panel, it does not fill as it should a new form... Now, after deactivating and activating my license the swatch seems to fill the new form but when the filter that the swatch has is persistence in the next filling object created even though a different color is being used as a fill (X)... Help in the creation of a swatch over the internet just complicate the issue.
    That's why I would like to know whether updates on my product are being received or files are being replaced without my knowledge...
    Thanks...
    PS Do you know how to contact a staff adobe employer on the forums?

  • Constant values to the target field

    Hi friends,
    how to assign three constant values to the target field in XI..?
    like :
    constant--->Trget field.
    There is one target field but 3 constant values have to be assigned....
    is it thr FixValue fuction..?
    Regards
    Sam

    Hi,
    Goto MM Editor
    Conversion --> FixValues
    Double Click
    Fill in the "Key" "Value" pair as per u r requirment
    Key          Value
    A                R1
    B                R2
    C                R3
    So from Source structure A comes it gets R1 in target
    hope this is helpful
    Srini

  • What do i do when iPhoto Deletes my recent pic's all the way to 2010????? i opened the program and it said i needed to update my library otherwise i wouldn't be able to view the images that were not updated-- and now they are gone!!!!!! WHat do i do!!!!!!

    what do i do when iPhoto Deletes my recent pic's all the way to 2010????? i opened the program and it said i needed to update my library otherwise i wouldn't be able to view the images that were not updated…… and now they are gone!!!!!! WHat do i do!!!!!!  Is this some type a virus???? my mac is protected!!!!! tried to chat with an IT person but they keep asking if its like a tech problem and it is just iphoto

    You should get your keyboard checked as it's repeating  on a lot of keys and makes you look silly.
    There are 9 different versions of iPhoto and they run on 9 different versions of the Operating System. The tricks and tips for dealing with issues vary depending on the version of iPhoto and the version of the OS. So to get help you need to give as much information as you can. Include things like:
    - What version of iPhoto.
    - What version of the Operating System.
    - Details. As full a description of the problem as you can. For example, if you have a problem with exporting, then explain by describing how you are trying to export, and so on.
    - History: Is this going on long? Has anything been installed or deleted? - Are there error messages?
    - What steps have you tried already to solve the issue.
    - Anything unusual about your set up? Or how you use iPhoto?
    Anything else you can think of that might help someone understand the problem you have.

  • I have around 2000 photos on my camera roll as back up and now i am not able to delete unwanted photos and they are not even getting synced wid d computer so what should i do now?? they are using 9 gb of the space!!!

    i have around 2000 photos on my camera roll as back up and now i am not able to delete unwanted photos and they are not even getting synced wid d computer so what should i do now?? they are using 9 gb of the space!!!

    Chris CA wrote:
    You cannot backup photos to iCloud.
    You can enable Photo Stream (in Settings > iCloud) but only for 30 days and only a max of 1000 photos.
    Then what does this mean? It was copied from the kb article that I posted above.
    Reducing the size of your Camera Roll backup
    If you take lots of photos and videos with your iOS device, you may notice your Camera Roll takes up most of your iCloud Storage backup. To check the size of the Camera Roll backup on your device:
    On your Home Screen, tap Settings.
    Tap iCloud.
    Tap Storage & Backup.
    Tap Manage Storage.
    In the Backups section, tap your device.
    In the Backup Options section, the backup size is displayed under Camera Roll.
    To reduce the size of your Camera Roll backup, save your photos and videos locally to your computer with iTunes, and then manually back up your iOS device. If you want to keep your photos and videos on your iOS device, you can turn off Camera Roll in Backup (see the "Deleting backups and turning off Backup for your Device" section above) orpurchase additional storage.

  • What is the usage of Request Variable ? and how we can use it ?

    Hi All,
    What is the usage of Request Variable ? and how we can use it ?
    Thanks in advance

    Hi,
    A Request variable is the same as a Session variable:
    http://download.oracle.com/docs/cd/E12096_01/books/admintool/admintool_Variables4.html
    Cheers,
    Daan Bakboord
    Scamander Solutions

Maybe you are looking for