Panel halves identical - determine what recall half came?

Hello. I have a panel where the halves upper and lower have the same set of controls.  The names of the constants are also the exact record even for a 1 or 2 joints at the end.  Each identical control in halves upper and lower serve the same function, and so I was thinking about using a callback function unique to the two.  The only difference is the result of the function is stored, and it depends on if the EVEN_COMMIT came from the top or the bottom. I wonder what is the best way to program this without having to duplicate the code?

I thought I should probably check the control that generated the EVENT_COMMIT (high or low) and assign a variable a 0 or 1. I could then use the value of the variable to decide where to store the result of the callback function.

A possible alternative is to missionattribue a callbackData controls on one half and his presence in the callback function test.

Assigning the callback can be done this way immediately after the loading of the Panel:

SetCtrlAttribute (panelHandle, Control_ID, ATTR_CALLBACK_DATA, (void *) 1);

Test it in the callback is simply done by:

If (callbackdata) {}

.....

}

else {}

.....

}

Through callbackData, you can simply pass a flag but some value which results in behaviors of reminder. For example, if you have a data table filled with the contents of the control, callbackdata could store the index in the array where to store the data.

Tags: NI Software

Similar Questions

  • Im running Windows 8 on my HP laptop. I don't have my email he's trying to verify my identity with, what can I do?

    Im running Windows 8 on my HP laptop. I don't have my email he's trying to verify my identity with, what can I do?

    Hi Ron,

    Thank you for visiting Microsoft Community.

    I would be grateful if you can provide us with the following information to determine the root cause of the problem.

    What di you mean when you say "no longer have my email he's trying to verify my identity?"

    Are you connected with Microsoft Account or with a local account?

    You try to verify your e-mail address?

    I suggest you to return the items listed below and see if it helps.

    Why should I verify my email address?

    Windows 8: the accounts connected

    Security information for the Microsoft account: FAQ

    Info Security & security codes

    Hope it would help. If problem persists always post back with the current state of your computer and the result of the proposed suggestion, we will be happy to help you.

    Kind regards

  • How can I determine what profile Firefox 5 is currently using?

    How can I determine what profile Firefox 5 is currently using?

    Help > troubleshooting information > profile directory: opens showing the file

    Copy and paste this code in the Code field in the ' tools > error Console " and click on evaluate to see the location of the profile folder.

    alert(Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIProperties).get("ProfD", Components.interfaces.nsIFile).path);
    
  • I want to run an update on my iPod Touch, but I get a warning "it buying things... that have not been transferred to your iTunes library." How can I determine what those are?

    I want to run an update on my iPod Touch, but I get a warning "it buying things... that have not been transferred to your iTunes library." How can I determine what those are? Does he want me back up my Touch before update?

    Just sync or backup and they will go to the iTunes library.

  • How can I know if an external drive has been used for Time Machine and what computer it came with too?

    How can I know if an external drive has been used for Time Machine and what computer it came with too?

    I have several laptops and iMacs. I spent the relocation of the year and only used the MacBook Pro.

    Now I'm trying to figure out which drive goes with which computer

    I connected just a disk seagate 1.5 t and the first thing he did was to ask if I wanted to use it as a Time Machine drive.

    (1) if it is the TM disk accompanying this computer don't would not it have just started upward automatically?

    (2) what happens if I would have said yes?

    (3) I don't even know if it's been activated for TM. Is there a way to tell? It may hold just for iMovie files and other programs associated with a computer from my past.

    All readers of backup Time Machine contains a folder named: Backups.backupdb. If you open this folder, you'll find another folder with the name of the computer that has been saved. If several computers have been saved on the same disk, you will have several folders.

  • How can I detect or determine what hardware I have in my office?

    Is there a web page on the HP site where I can type my HP serial number and determine what equipment I have in my office?  I can't find a page like this on the HP website.  It's easy to do on the Dell site.   Also, if there are a few tools I can run to automatically detect the HW, that would be great.  I don't want to break the box to figure it all out.

    OK, the link says I can have one of the 4 possible different video cards.  Lame pretty if you ask me to HP.  With Dell, I can get the exact set of HW used when the machine has been built since my serial number.   Save me from having to break open all the boxes during the installation of things.

    Anyway, thanks, looks like I have to crack open my machines.

  • Programmatically determine what port of entry has been selected

    I use the default sequential model which has two entry points, Test DUT and Single Pass. I would like to determine in my sequence of what entry point has been selected by the operator. It is possible to programmatically determine what port of entry has been chosen, and if so where is that hidden in the massive TestStand API and properties?

    I would have preferred the entry point name to return.

    As long as you're MainSequence, then you can use RunState.Caller.Sequence.Name

    Otherwise, use RunState.Root.Sequence.Name

  • How to determine what needs a built application RTE

    Hello

    I'm at the stage where I have a number of pre-built used around my business applications.  They are built in LV2010, 2012 and is about to be 2013.  He has now reached the stage where I have to install for up to 3 RTE on any PC that wants to use applications applications.  Otherwise I could try to rebuild all applications with 2013, I want to avoid.

    To help manage this situation, is it possible to determine what RTE has built the application requires?  It would help identify what RTE I maybe need to install or who built applications I really need to rebuild.

    See you soon

    Herbert

    I think this could work for most cases. Open your executable file with a text editor such as notepad (or notepad ++ etc.). Search for the file "LVRT" and you should see the version number is somewhere close.

    See the example below of a LV2012 executable:

    I checked with LabVIEW 2010 and 2011 executable LabVIEW so it'll work for the last few versions of LabVIEW - I think it'll probably work for most versions.

  • Snap to point the cursor: How can I determine what axes?

    I have a chart showing several plots.
    Some of the plots use bass-x and left-y axis.
    Others use x-top and right-y axis.

    I use a snap-to-point mode cursor for select a data point on the ground and display an annotation indicating the x and the y value of the selected point.

    How do you determine what a pair of xy axes are associated with the plot, that the cursor is cut?

    If I had known that I could use SetCursorAttribute (...) to set the appropriate ATTR_CURSOR_XAXIS and ATTR_CURSOR_XAXIS.

    Thank you
    Kirk
    With the help of Labwindows/CVI 2009

    You can get it using:

    GetGraphCursorIndex (panelHandle, controlID, cursorID, & plothandle, &index);)
    GetPlotAttribute (panelHandle, controlID, plotHandle, ATTR_PLOT_XAXIS, &axis);)

    You can compare the value of the variable "axis" with the VAL_BOTTOM_XAXIS and VAL_TOP_XAXIS constants to determine the x axis of the plot.

    The corresponding attribute of ATTR_PLOT_YAXIS and VAL_RIGHT_YAXIS, one of the constant VAL_LEFT_YAXIS will help you determine the axis Y, which is associated with the plot.

  • How can I determine what my passwords for my laptop?

    My laptop passwords.

    How can I determine what my passwords for my laptop?

    I'm only guessing, but I think that it includes the administrator password, or possibly a password for the computer itself.

    I'm a bit lost here. Transmit everything you think.

    I tried changing the settings on THE ADMINISTRATOR ACCOUNT.  I tried several times but without success. I can't even to appear administrator account.

    Jeff

    Oh, a separation of thought here.  I hope you better treat that you have treated others.  I don't appreciate someone implying that I am "breaking into any computer.  Microsoft makes it easy for me..., you just made me angry.

    First of all, please cite what anyone in my message that was humiliating or derogatory.  I'll gladly apologize for it.  I am sure that you will find nothing, however.

    By reflect, if you use a method to access a PC that bypasses the password, you're violating in this computer, if it's yours.  It is a fact, but it is not an insult.  Not where I "talked down" for you.

    I also noticed that despite your not like my answer, you nevertheless marked as the answer, it is in this context.

  • How to determine what Vista Home Premium has been installed

    Several years ago, I bought two copies of Vista Home Premium operating system.  I used on a desktop computer and the other left in the drawer.  Unfortunately, I was not which of the two copies that I used.  Now, I would use the second copy.  Y at - it a simple way to determine what copy, I have already installed and that is the unused copy?

    Hello HowardTeten,

    There's a freeware app called Magic Jelly Bean http://www.magicaljellybean.com/keyfinder/ it is a keyfinder. Download and run that and it will tell you which product key you use. All you need to do is then check to the back of the case of Windows to see which matches.

    This forum post is my own opinion and does not necessarily reflect the opinion or the opinion of Microsoft, its employees or other MVPS.

    John Barnett MVP: Windows XP Expert associated with: Windows Expert - consumer: www.winuser.co.uk | vistasupport.mvps.org | xphelpandsupport.mvps.org | www.silversurfer-Guide.com

  • What digital SLR camera is the best movie less than $1,000?

    What digital SLR camera is the best movie less than $1,000?

    Hi there somethinghey! If you are referring to DSLR cameras with video recording capabilities, please check this link for information and comparison.

    If my post answered your question, please mark it as "accept as a Solution.

  • Download this whenever I start. Cannot determine what th is app.

    The details are; System NullReferenceException: Objectreference not set to an instance of an object. to DDNi.CenterStage.Profile. <> c_DisplayClass6.c/addInData A - O) I can't determine what application it is, so can't remove or repair or install a new copy to get rid of this alert. Anyone see this before?

    Hi Lorne,

    You get this error message may be related to Vaio Messenger not load or work correctly when starts. VAIO Messenger is an application of Sony that provide updates and information on sales.   What you can do is to uninstall the program and who will take care of the issue.  Unable to reinstall the application because it is integrated into the recovery image.  To reinstall Vaio Messenger is to deliver the State of the plant.  Best way is to uninstall it.  To uninstall a program, please visit the link below.

    https://us.en.KB.Sony.com/app/answers/detail/A_ID/38332

    Nick-

  • Error 1406 what web installation cam, it says [could not write in Chief of conmunications to key/software/microsoft/windows/currentverision .it says check you have access to this key]

    It was installed earlier was not just

    Hi steppie,

    Method: 1

    Disable security software

    For example: Anti Virus software, software spyware, firewall

    Clean boot is a troubleshooting technique that allows you to get the computer facing up and running so that you can perform diagnostic tests to determine what elements of the normal starting procedure are causing problems.

    Clean clean boot:

    1. click on start, type msconfig in the search box and press ENTER.

    The user account control permission.

    If you are prompted for an administrator password or confirmation, type

    password, or click on continue.

    2. in the general tab, click Selective startup.

    3. under Selective startup, clear the check box load starting points.

    4. click on the Services tab, select the hide all Microsoft Services check box, and then click Disable all.

    5. click on OK.

    6. When you are prompted, click on restart.

    7. after the computer starts, check if the problem is resolved.

    http://support.Microsoft.com/kb/929135

    Reset the computer to start as usual.

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:

    Click Start, type msconfig.exe in the start search box and press ENTER.

    If you are prompted for an administrator password or for confirmation, type your password, or click on continue. On the general tab, click the Normal startup option, and then click OK.

    When you are prompted to restart the computer, click on restart.

    Method: 2

    Create a new user account with Admin rights

    Please visit the following link on how to create a new user account in Windows Vista

    http://Windows.Microsoft.com/en-us/Windows-Vista/create-a-user-account  

     

    After creating a new user account.

    Restart your computer

    You will find the name of the new user account on the Welcome screen. Select the name of the new user account and take it to on the desktop

    Try to install the Webcam software

     

    Check whether the problem is resolved.

    Thank you and best regards,

    Zaki

    Microsoft technical support.

  • Need help to determine what caused several outbound connections domain workstation

    Need help to determine why my workstation area all of a sudden (in the last 4 days) seems to be launching many connections coming out of remote addresses of dllhost.exe.

    So far, I scanned the machine in safe mode with Malwarebytes, Malwarebytes Antirootkit, Superantispyware, Rootkit Remover (McAfee) and various other applications of identification or remove malware without success. The machine seems to be clean of malware.

    I use Sysinternals Process Explorer to view the file in question, but I can't determine how it is running. The file at the bottom of the screenshot below is the file in question. I've suspended in this shot, or there could be dozens of dllhost.exe initialized below the first.

    Using tcpview from Sysinternals shows that the process to connect to several remote IP addresses which, in many cases, are not identifiable via whois (or I do something wrong, which is quite possible).

    Is it possible to determine what triggers the executable which, in turn, seems to be calling outbound connections?

    This issue is beyond the scope of this site and must be placed on Technet or MSDN

    http://social.technet.Microsoft.com/forums/en-us/home

    http://social.msdn.Microsoft.com/forums/en-us/home

Maybe you are looking for