Default with the mouse, click on?

Hi guys,.

I'm fairly new to LabVIEW, and indeed this forum, so I hope you can help. I guess this is a simple problem, but I can't understand how do.

I have a cRIO taking 4 analog voltages. Each voltage comes from a linear potentiometer which is the displacment of suspension on a formula student race car.

I have a simple formula set up to convert the voltage to displacment. I created a table of entries that allows me to the maximum, minimum, value (from the previous probe calibration) and "stationary" value of each sensor.

The "stationary" value, is what the sensor should be read when the car is stopped. This is then used as the basis for positive or negative displacments.

My problem is that whenever a different driver gets in the car, the susspension is adjusted or fuel is added, the "stationary" value will be different. I then have to manually define the stationary value to whatever the current value is when the car is stopped, press "default current worth" and save the VI before continuing.

What I would like to, is a "calibrate" button that I can support on that sets the "stationary" regardless of the current input voltage is. In this way, I wouldn't reset the 4 values each time the car has been modified.

If you have any ideas on how to do this, please let me know.

I will attach my VI as soon as I return to the laptop where it is saved!

Thank you

Kevin Irving

Kevin,

As you have discovered, you cannot change the default values on a VI running.

The best way to do what you want is to use a configuration file.  There are a set of screws specifically designed for this purpose in the palette file IO.  When the user presses the button "calibrate", the values are stored in the file. When the program starts, it reads the file and sets controls on the values in the file.  You can even keep different for each driver sets, if the data are fairly consistent.

Read the help detailed for the screw configuration files and look at the examples.  It will show you how to get started.

Lynn

Tags: NI Software

Similar Questions

  • Drawing line with the mouse clicks on picture indicator

    Hello

    I need to import a JPG file in an image control, draw a line in 2 clicks, read bothe XY positions and perform some basic trigonometry. Any simple or striaghtforward way to draw the line with the mouse and read thos passay on the bitmap (positions relative pixel)?

    Thanks in advance,


  • Problem with 'if - ElseIf' statement with the mouse, click.

    I'm having a problem with the code IF ELSE use with a mouse click. I want whenever a user 'clicks' I want to run a particular block of code, up to 3 clicks, then nothing. I tried var meter click local and global but can't seem to cross the first '' if. '' That's what I have now (I use console.log () to keep track.

    Ready model I create a global var...

    Enter the code to run when the composition is fully charged here
    sym.getComposition () .getStage () .setVariable ('clickcnt', 1); //Set 1 meter

    var i = sym.getComposition () .getStage () .getVariable ('clickcnt');

    Console.log ("count starts at"+ i ");


    on the stage, I create an event 'click '...

    Insert the code for the mouse, click here
    var i = (sym.getComposition () .getStage () .getVariable ('clickcnt');)
    If (i = 1) {}
    Console.log ("counter is =" + i);
    c code
    sym.getComposition () .getStage () .setVariable ('clickcnt', 2); //Set against 2
    }
    ElseIf (i = 2) {}
    Console.log ("counter is =" + i);
    c code
    sym.getComposition () .getStage () .setVariable ('clickcnt', 3);
    //Set against 3
    }
    ElseIf (i = 3) {}
    Console.log ("counter is =" + i);
    c code
    sym.getComposition () .getStage () .setVariable ('clickcnt', 4);
    //Set against 4 to take away
    SYM. Play (100); //play scenario animation
    }
    else { //I'm using it to deny any additional clicks.} I don't know there is a good way to do this. I don't know him
    SYM. Stop (1000);
    Console.log ("End");
    }
    ;

    I when I run this it never happened the first if it's like the 'clickcnt' var is not getting updated or read correctly.

    Thank you

    Joel H

    try if (I == 1) double equal.

  • Contact information for return pixel Imaq image with the mouse click event

    Hello

    I'm trying to get the coordinates in pixels of an image Imaq based on a mouse click event, similar to this post and this post. The problem is that with the first post, I get the coordinates in the image control and hesitate to trust them, they seem to have the Center origin, may return negative coordinates and do not represent the actual size of the detector that I use (512 x 512). It also returns the coordinates outside the actual data when it is clicked on the image control framework. The second method returns simply null coordinates. What I want are the coordinates of the pixel displayed when hovering the mouse imaq image control framework.

    What baffles me, is that I tried the second method with a png stock file and it works fine, it is only when I create an image from the data of my camera than the coordinates are returned null. Note data views of camera under control of image very well.

    Any ideas would be useful. Enclosed is a picture of the offending code and the Panel before displaying the camera data is coming (I know it needs some cleaning).

    Thank you

    Tyler

    for help, please send your vi

    but I think that this example vi is your solution

    check this vi

  • InDesign objects are not locked and will not move with the mouse click.

    I rebooted, uninstalled and reinstalled. Objects interact with when the mouse is clicked. The contours of the block came and the object can be selected and changed, however it will not move with a mouse. Objects respond to the arrows when the issue is raised; but it's heavy at best.

    I gave in my computer image. What was the origin of the problem, is now gone. Thanks for your help.

  • I work with dreamweaver cs6 running on Apple Mavericks.  The site definition window shows all different fields by opening. I have to click blind with the mouse cursor in this window until the fields appear.  It is a very bored

    I work with dreamweaver cs6 running on Apple Mavericks.

    The site definition window shows all different fields by opening. I have to click blind with the mouse cursor in this window until the fields appear.

    It is somehow very annoying to complete the connection to the server and all the other things.

    Is there a solution?

    If this is the case, I think that it is perhaps a good idea to uninstall Dreamweaver. Before you reinstall, make sure that your personal configuration file has been deleted (see reinstalling Dreamweaver (or the extensions Manager) fails to solve problems). You should then have a completely clean copy of Dreamweaver has again the default settings of the program.

  • How can I configure my computer to the simple click with the mouse to double-click to open an item on the desktop instead

    How can I configure my computer to the simple click with the mouse to double-click to open an item on the desktop instead

    Hi placebow,

    Open the Options folder by clicking the Start button, clicking Control Panel, appearance and personalization, and then clicking Folder Options. On the general tab, click single-click to open an item. (To return to the standard click, click double-click to open an item.)

    The setting applies not only at the office, but also in other areas of the shell.
    Ramesh Srinivasan, Microsoft MVP [Windows Desktop Experience]

  • Where can I change the setting for single/double clicking with the mouse

    From: brelade

    How can I change the option to double click with a single click to open programs with the mouse.

    --

    Brelade

    From: brink

    Hi brelade.

    You have to go into Options of folders in the control panel (Classic view) or the Tools menu in the Explorer of.  Here is a link to a screenshot.

    http://www.Vistax64.com/tutorials/40246-single-click-option.html?LTR=S

    Shawn

    Another response of the community of Windows Vista discussion groups

  • Download assets compared to the creative clouds, but when I click with the mouse on the "cloud" Download nothing happen.

    Hello, im tryng download active compared to the creative clouds, but when I click with the mouse on the "cloud" don't download anything happen. I have already uninstall and install again cloud creative app but still does not. Anyone having the same problem and have success on repair? Thank you all

    Luis Oliveira

    Please contact the customer service

  • I look integrated in the block of the legend of slide show, a widget like "Accordion" for, with one click, or by the way with the mouse, open a new caption for each photo. I tried with 'Accordion' Muse, it does not work. I haven't tried to copy and paste,

    Issue.

    I look integrated in the block of the legend of slide show, a widget like "Accordion" for, with one click, or by the way with the mouse, open a new caption for each photo. I tried with 'Accordion' Muse, it does not work. I haven't tried to copy and paste, but no result. The widget disappear into the legend of block. disappear. Do you have a solution?

    Thank you

    Loïc

    Accordion Panel tabs should, with click and open the container.

    Please provide the url of the site where it does not, also if you can provide an example where we can see the exact action, then it would help us.

    Thank you

    Sanjit

  • Does anyone know why illustrator did several objects when I click and drag? No key keyboard shortcuts; only with the mouse.

    When I make a square for example, click and drag with the mouse, it makes duplicate objects until I release the mouse click. How can I disable this feature? Thank you.

    Danopoly,

    How can I disable this feature?

    By unstucking the Tilde (~) key.
  • My XI Acrobat Standard 11.0.09 lost menu bar (F9) and crazy jumps full screen, losing windows buttons high bar, passing just above the menu bar with the mouse cursor, without clicking.

    My XI Acrobat Standard 11.0.09 lost menu bar (F9) and crazy jumps full screen, losing windows buttons high bar, passing just above the menu bar with the mouse cursor, without clicking.

    Yes, it's important somehow. Kapersky broke it somehow and fixed. http://Forum.Kaspersky.com/index.php?showtopic=307391&HL=Adobe

  • Captivate 5 Mac: How to get rid of the little star associated with each mouse click

    Hello

    I recorded a new project and only use the mouse, without noises from klick or select box before you click.

    When I look at the saved project, Captivate shows me before each mouse click on a small star, which I don't want to see.

    Unfortunately, I can't do a screenshot of it, because it is not visible on the slide at the beginning. It shows the second just before the mouse clicks. I'm sure, I can turn it off, but I don't know where.

    Thanks for any help, Miriam

    Hello

    If you click on the object of the mouse to select and look at the properties panel, is there that something set to display the mouse click?

    See you soon... Rick

    Useful and practical links

    Begin to learn Captivate 5 times now! $29.95

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcererStone blog

    Captivate eBooks

  • How to scroll through the tabs with the mouse wheel?

    I used to be able to scroll the selection of tabs when the tab bar is filled using my wheel mouse (like the arrows on each side navigation), but recently it changes the tab I look as if I physically clicked on this subject.

    I'd appreciate help on how to make it work as he did.

    That should still work if you hover over with the mouse, the tab bar.

    Make the scroll buttons on the tab bar work?

    You have maximized the window of Firefox?

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode without failure.
  • What happened to the feature to get around on the artboard by pressing the space bar and dragging with the mouse?

    What happened to the feature to get around on the artboard by pressing the space bar and dragging with the mouse?

    cwalker,

    If it does not, it may be time for the list:

    Sometimes, (some) things may fail or stop working for no apparent reason. When (other) possible reasons/remedies do not work, it is perhaps a kind corruption (temporary or permanent), or even preference settings which disturbs, which can be cured with something on the following list put in place in order to provide a catch-all solution for otherwise intractable cases. It starts with a few easy suggestions and safe) 1 and 2) for cases less serious and goes two ways 3) and 4) to reset the default preferences (easily but irreversibly and more laboriously but more completely and also reversible), then follows a list 5) various other possibilities, and it ends with a complete reinstallation 6). If no other suggestion doesn't work, or if no other suggestion appears, you can start on the list and decide how to go or who can apply.

    The following is a general list of things, try when

    (A) the question is not in a specific file,

    (B) you have a printer installed, connected and turned on if it's a physical printer (you can use Adobe PDF/Acrobat Distiller as a printer by default without the need to have a printer on, of course you will need to specify when you really need print on paper), and

    (C) It is not caused by problems with opening a file from external media (see below).

    You tried/made some of them already; 1 and 2) are easier for temporary strangenesses and 3) and 4) specifically may be corrupted/inconvenient preferences); ((5) is a list in itself and 6) is the last resort.

    If possible / there is, you must record a current work first, of course.

    (1) close Illy and open again.

    (2) restart the computer (you can make up at least 5 times);

    (3) close Illy and press Ctrl + Alt + Shift / Cmd + Option + shift during startup (easy, but irreversible);

    4) move the folder (follow the link with this name) with closed Illy (more tedious but also more thorough and reversible), for CS3 - CC you can find the file here:

    https://helpx.Adobe.com/Illustrator/KB/preference-file-location-Illustrator.html

    5 look through and try the relevant among the other options (click on the link with that name, item 7) is a list of the usual suspects among other applications which can disturb and confuse Illy, point 15) applies to the maybe CS5, CS6 and CC);

    Even worse, you can:

    6 (A) uninstall (check the box to delete the preferences, if any), B) run the cleanup tool (if you have CS3/CS4/CS5/CS6/CC) and C) reinstall. It is important to use this step three way: otherwise, things may persist.

    http://www.Adobe.com/support/contact/cscleanertool.html

Maybe you are looking for

  • Someone hacked Tbird email ACCT. hundreds of demons mailer, how to fix this?

    copy of one of the demon of mailThis message was created automatically by the mail system (ecelerity). A message you sent could not be delivered to one or more of itsbeneficiaries. This is a permanent error. The following address(es) failed: > > > bi

  • Skype on my HP Tablet

    Do I need to get a new mobile phone number or if I can use my existing phone number? Which version of Skype, I do indeed download Skype for windows or your mobile phone?

  • Sidebar problems

    I'm having the same problem, connected to the monitor according to the answer to pamela administator, but it did not work, even if I got the confrmation of succsesfull. logged out and restarted still no joy. The puzzle does not work. I swiched to ano

  • Used computers for primary school in South Africa

    I visited the PRIMARY SCHOOL of NOMPONDO in Kwa Zulu Natal, South Africa.  They need 40-50 computers for the computer lab they are building for children.  It seems as if many companies use Dell computers as a service now and their old computers are r

  • (Redirected) Inspiron 660 s factory settings

    After a recent update of Windows 10, my slow PC dramaticall, so I restored on Windows 8, then upgraded to Windows 8.1. My teenage son tried to speed up the response time and has compounded the issues. Now my PC don't boot-go to top and I can't take b