What is an effective method to create presets?

Hi all

I am trying to create presets for my VI and I would like comments from other people who were created pre-defined methods.  I saw this post and saw that it was possible to create a "Preset" pre defined pretty easily.  It is one, but I need to update my presets on the fly.  Basically I want through four servos pulsewidth at a certain position.  However, there will be a lot of different positions (~ 20) I need them to be at, and try to arrest the code and constants looks like it will be extremely difficult for each preset.  I would like to create a predefined method that would take the servo location and store it somewhere so I can load it again later.

One idea I had was to create a txt file and store the pulsewidth of each servo.  This way I could replace the file and read the file at any time.

I searched in the structures of the event, but that seems like it will go with the idea of making pre made presets.

Any help would be gladly appreciated.

Thank you

Matt

If you have just 20 positions, which will never change you can use Enum control connected to a case structure (all this in awhile put in loop).  If the Enum control value changes, select the box structure that contains the values to correct pulswidth.

If your positions could change overtime, an external file would be a good way to do.  Look at the Configuration files.  You can write an article for each position.  In each section, you will store the 4 values of pulsewidth you need.

Tags: NI Software

Similar Questions

  • What is the available method to create db using dbca in exadata?

    I would like your advice.

    Find the solution.

  • What is the preferred method of formatting and partitioning a hard drive?

    Format the hard drive... and build a Partition... (question of part 2)

    I finally get my CD with Windows 7 and ready to install... I just thought I would ask the "Perferred" formatting the hard drive method...? Quick format in fat files... a quick format in NTFS... elongated format... What is the formatting the hard drive perferred method... Also... build a partition to install Windows 7 within this partition... It is also the preferred method... ?? You don't computer Pro to always build a partition and install the Windows operating system inside the partition... ?? What is the perferred method... ?? I would like to try this for the first time... !!! Is it easy to do... ??  What size partition can I build... ???

    During the installation process, you can format/delete/create partitions on the disk hard if you perform a custom installation. Data backup before installing Windows.

    Using NTFS with Windows 7 system.

    Most people do a quick format.

    Install Windows 7 on a partition with a minimum of 60 GB. 100 GB or lager is recommended. You can use all the hard disk to the Windows partition if you want to.

    Format/delete/create the partition with the Windows 7 installation DVD, you can:

    1 boot from the DVD

    2. click on install now

    3. in the configuration screen, click Custom (Advanced)

    4. click on Drive Options

    5. you have the option to format/delete/create partitions and choose size during the creation of their

    6. continue with the installation.

    Activate Windows 7 on this computer

    http://Windows.Microsoft.com/en-us/Windows7/activate-Windows-7-on-this-computer

    Case of failure of the online activation:

    Call Microsoft use the manual phone Activation

    Note: If you always install Windows page enter your product key, do not enter your key and uncheck the "Automatically activate when online" then click OK/next to complete the installation.

    1. open Windows Activation - click on the Start button, right-click computer, click Properties, then click the option to activate Windows now or change your key.

    2. click on show me other ways to activate.

    3 type your Windows 7 product key, and then click Next.

    4. click on use the automated phone system.

    5. click on the location nearest you from the drop-down list, and then click Next.

    6. dial one of the available phone numbers listed.

    7. do not select all options and wait for a person pick up, then explain what happened.

    Questions about installing Windows 7?
    FAQ - Frequently Asked Questions from Installation Windows 7 & responses

  • Method to create script

    Hi gurus

    I wonder what should be the method of creation of script file. My script contains a DDL and DML statement... Can someone guide me or to provide a small sample...

    Muzz says:

    Thanks for the responses, in fact I've already created a script and want to know what are the set command, I need to use as the value out of server on a defined line size, the value of echo on... .spool file on...

    .

    No one can tell you what SET commands, you must use because no one knows your specific needs.  All you have to do is read the relevant section of the documentation to https://docs.oracle.com/cd/E11882_01/server.112/e16604/toc.htm.  And don't forget that these are the sqlplus commands.  These are guidelines to sqlplus himself.  Do not apply to any other tool client that you can use to run your scripts.

    one more thing that I use / after each statement, my question is should I use semi column and slash after each statement or only / is enough...

    Once again, the docs are your friend if you actually...

    https://docs.Oracle.com/CD/E11882_01/server.112/e16604/ch_four.htm#i1039415

    https://docs.Oracle.com/CD/E11882_01/server.112/e16604/ch_four.htm#i1039663

  • Create presets in trial version - will they still be here if buy?

    LR presets created in a trial version of CF will still be there if I choose to buy the standalone LR product or a subscription of the CC?

    And are there compatibility with the help of Windows 10 issues?

    Thank you

    You will be able to convert installation you have either the plan creative cloud subscription or stand-alone plan 6 of Lightroom. The conversion will take place in what you have installed, so all you have done including creating presets will remain in place. The presets are part of the catalog, which is a file created by the user who is not in any way replaced when newer versions are installed.

  • What are the effects of the clearing the browser Cache?

    What are the effects of the clearing the browser Cache?

    Caches to store a copy of the page Web that you visit to speed up the loading of the page even when you revisit the page.

    Once you empty the Caches, pages must be again downloaded from Web sites.

    With higher bandwidth available now, is not a problem.

    Sometimes these caches can get damaged and a troubleshooting step

    You can clear those without causing any problems.

  • What is the best method/app to remove the old files on a late 2009 iMac?

    Want to clean and remove some old files, on which some I don't even know.  What is the best method, and or the app? I have airport time capsule as back up.

    Look at and think are the best, there is no app that comes already to know your preferences.

  • Satellite L655 - what is the best method to reisntall ati display driver?

    What is the best method to reisntall ati display drivers as the ati Control Center no longer works.
    It won't work anymore.

    I think that something is going wrong.
    So how to uninstall the entire package and install again.

    Thanks in advance

    Satellite L655 (PSK1JE)

    Go to the page of the Toshiba UE driver.
    Choose the display updated L655 driver
    Download the package, unpack it and run the setup.exe :)

  • What is the recommended method to organize your applications on 6 s more?

    What is the recommended method to arrange the icons on the iPhone

    Hello

    Simply move you them where you want on the screen of each apps

    Are in different places on the move of the screen by holding down until what they shake.

    See you soon

    Brian

  • What is the MTBF method, used for the cRIO 9012, is the method of counting of Telcordia under what conditions?

    What is the MTBF method, used for the cRIO 9012, is the method of counting of Telcordia under what conditions? (Temperature, humidity, etc.)

    Hi jojosalud,

    According to the specifications for the cRIO-9012, the MTBF is 330 481 hours at 25 ° C; Question of Bellcore level II.

    Kind regards

  • What is the best way to create a backup external to the files from my laptop?

    What is the best way to create a backup external for my laptop files which may be about 40 GB +.

    There are a few utilities in Windows that will help you to back up data. Consult the following link:

    http://www.Microsoft.com/athome/Setup/backupdata.aspx#fBid=UkLRcjvJbN_

    There are many third party tools that will help you to do so. Here's a free:

    http://www.ssesetup.com/SDB.html

  • "Do not put the laptop near devices such as TV speakers/fridge that generates a strong magnetic field" what is the effect of this?

    Original title: do not put the laptopn close device suas: a fridge that generates a strong magnetic field of the speakers on the TV? What is the effect of the magnetic field, causing the laptop?

    Do not put the laptopn close device suas: a fridge that generates a strong magnetic field of the speakers on the TV? What is the effect of the magnetic field, causing the laptop?

    Hi stuckfree,

    Magnets are used in computers for various purposes, for example in the hard drives. Several parts of a laptop computer may be affected by a magnet. More commonly known as material element affected by magnets is the hard drive.

    That is not exactly true. Hard drives are well protected against most of magnetism, and most even use a magnet to turn, but many strong magnets and electromagnets can and will damage a hard drive. More likely to be affected is the BIOS of your computer (Input\Output base system) ROM, which shows how to use the basic components and boot into the operating system to your motherboard.

    So it's best to avoid placing computers\laptops close to all these devices.

  • What is the effect of the evolution of the number of 20000 to 200 in the waittokillservice registry key?

    in regedit, what is the effect of changing the number of 20000 to 200 in the waittokillservice?

    Original title: regedit

    Hello AnuModi,

    The time taken by the process to be killed, i.e. stop Windows, is reduced from 2000 to 200 milliseconds Ms. This should allow the service to be closed more quickly. The end result is a slightly shorted stop time when you exit Windows.

    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 is the preferred means of creating group policies?

    What is the preferred means of creating group policies?

    For example policy of GP1 for wallpaper and GP2 political mapping of drive and printer.

    or to combine politics both GP1 and GP2 in unique group as GPDOMAIN policy.

    Application of associated Win2K8 R2 group policies

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

  • What is the new method of SQL joins

    Dear all,

    What is the new method of SQL joins

    1

    SELECT <fields>
      FROM TableA a INNER JOIN TableB b ON a.key = b.key
    

    2

    SELECT <fields>
      FROM TableA a, TableB b
     WHERE a.key = b.key
    

    Above the two queries work very well in PL/SQL, but request that no 1 does not work in Oracle Forms 10 g

    Kind regards

    Zafar Iqbal

    Hello

    Zafar Iqbal wrote:

    Dear all,

    What is the new method of SQL joins

    1

    1. SELECT
    2. TableA, TableB INNER JOIN a and b WE a.key, b.key =

    2

    1. SELECT
    2. FROM TableA, TableB b
    3. WHERE a.key, b.key =

    Above the two queries work very well in PL/SQL, but request that no 1 does not work in Oracle Forms 10 g

    Kind regards

    Zafar Iqbal

    What, exactly, is your question?

    Literally ask you which of these 2 methods is new?  As mentioned above, none is really new.  Both participated in Oracle at least 13 years.

    Query 1, above, ANSI join syntax uses, which is more recent.   As mentioned above, Oracle has started to support that the syntax in version 9.1 (2001) previous versions only supported syntax used in query 2.

    Did you mean to ask something else?  Maybe "How can I use a query as a query 1 forms?" or "are there other places where a method works, but the other is not?

Maybe you are looking for

  • Search in the Mail does not!

    I've recently updated to El Capitan of Snow Leopard and now when I get something in the Mail, happens absolutely nothing, not even "Councils", and, to, subject, nothing. In addition, at least a dozen of my mailboxes no longer appear in the left colum

  • Satellite A300 - 1 5 - can I put it to WiFi draft N?

    I have the Toshiba Satellite A300 - 1 5 with the Chipset Intel GM965. The Intel PRO/Wireless 3945ABG Network Connection has been pre-installed in it. Currently, I want to update for the Intel N wifi card 5300 wirelss. Is it possible to do?As I'm not

  • remove the two zeros of hexadecimal string

    I'm passing an ASCII string of bench to a VI I wrote and I start with "04" and my VI the ASCII get normal "04".  I then have to convert an ASCII string to a Hex string (using a solution of VI, which I found on the web) and instead, having it display

  • How can I get my HP Deskjet f2200 printer work for Windows 7.

    I recently had to buy a new PC, but my HP Deskjet f2200 printer does not work for Windows 7. He said that it is only compatible with Windows 2000, XP and Vista. I think I need to download a driver but which. Also, how do these things? Can someone hel

  • Drive hard expansion without reason

    It's the weekend.  No download.  Maybe 50 KB of emails every day.  Why my hard drive works outside the space again and again?  I fly over external 250 MB Thursday, an another 250 MB Saturday.  Despite this, the drive continues to run out of space.  I