Best Method, Array or Listbox?

Hi all,
I'm relavtively new to LabView and programming and I'm writing a measurement and analysis program.
It will be used to test many different parts and each type of part will have its own individual parameters for each test. The individual parameters for each component will be stored in the "recipe" for the component.
The user needs to be able to select a recipe to load or edit.
I had the idea of storing all the recipes in a 2D array with each new row being a new recipe. In this case how can I get the program to recognise a recipe being selected? So i can subarray or whatever to use and edit. 
Or is there an easier way to solve my problem involvin listboxes or something like that?
Many thanks..
Rkll

Here is an alternative solution.  Become familiar with LabVIEW configuration files.  A configuration file is like an ini file.  It has headers and information.  It can edited with a text editor, or you can use the special Labview config file functions.  These files have sections, keys, and data like the windows registry.  For your recipes, you could make the section name the recipe name.  Under each section, you can create keys which will hold your recipe data.  Here is an example:
[Chocolate Cake]  (this is the section name)
  Ingredient1 = flour  (the next few lines are the keys and values)
  Ingredient2 = chocolate
  Ingredient3 = Milk
  Method = Mix them all up and bake.
You can use the config file functions to build your recipe file.  You can display the names of all the sections (recipes) to a user and let them choose one.  Once chosen, you can use the config file functions to get all keys and data from that section.  The data can be assigned to variables and such.
Search for some examples using config files in LabVIEW.  I like using them because they allow very good organization of data, and the files are editable with a text editor like Notepad.  Check them out.
- tbob
Inventor of the WORM Global

Similar Messages

  • Best method for plotting data array?

    I am reading data from a Delta Motion controller and writing that data to an array in my vb.NET program.  The data is not time stamped but I know what the sampling interval is (0.001s).  I want to take that data and plot it on my Waveform Graph.  What is the best method for doing this?  I'm sure this is simple, but I'm new to MS and LV.
    Private Sub btnRampUpA_Click(sender As Object, e As EventArgs) Handles btnRampUpA.Click
    Dim Axis0ActualPrsData() As Single = New Single(4096) {} 'Create array for data from the RMC controller to be read into
    Dim Axis0Actual() As AnalogWaveform(Of Single)
    If RMC.IsConnected(PingType.Ping) = True Then 'Check to make sure comms to RMC is good before trying to read data from it
    Try
    RMC.ReadFFile(FileNumber150.fn150Plot0StaticUA0, 112, Axis0ActualPrsData, 0, 4095) 'read the plot data where sample period = 0.001
    Catch ex As ReadWriteFailedException
    MessageBox.Show("Unable to read plot data from the RMC. " & ex.Message)
    End Try
    End If
    End Sub
    Thank you

    PlotYAppend appears to be the answer according to the white page, although I don't have it working as of yet.  Can someone confirm?

  • What is the best method to provide an option to select "All" for LOV ?

    Some posts sugest that you should "UNION" the origional select with something like (select "all" from dual ) this works as a seperate query but if you want to use and existintg query this is not very clean as viewlinks are not taken into account. We could also pass back an array list and include the all option in the list but that gets away from having the client use the iterator in the pagedef for other requirments of the page.
    Whats the best way to approach this with the new features in 11g?

    How to BackUp  >  http://support.apple.com/kb/ht1766
    Key2Paradice wrote:
    What is the best method to backup an Iphone 3G ...
    Note:
    The iPhone 3G can only update as far as iOS 4.2.1
    Connect to iTunes on the computer you usually Sync with and “ Check for Updates “...
    If an Update Appears Install it... if not... you are up to date for your particular Device...
    See the Using iTunes Section Here...
    How to update your iPhone, iPad, or iPod touch

  • Best method for 8 channel analog control on a microsecond scale

    Thanks for the quick reply, it was most helpful.
    Now that I am restricted to the analog channels I was just wondering as to the best method of control.
    At present I am using the AO Generate waveforms VI, by feeding it a pre-built arrays of data for each of the channels. I found this gave 30us resolution (on the maximum 32767 updates/sec) between values. It doesn't seem as though this is utilising the onboard timer on the card however, rather simply ouputting the signals as quick as possible.
    I tried using one of the counting time or events VIs which utilised the onboard timers, however I had it in a case structure to trigger at certain times which was highly limited by software (as i presumed).
    Basically I was wondering how I can take advantage of the onboard timers to simply trigger voltage changes on channels on a microsecond timescale, I'm sure there is a simple way that is passing me by.
    Any help would be appreciated
    AndyB

    Take a look at the "Function Generator" example under the AO section of the hardware I/O.
    While take a look at the examples that might also intrest you.
    Just aply the same array you are using now to set up the I/O.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • What is the best method to manage a digital I/O board from TestStand?

    Hello,
    I'm a beginner with TestStand (3.5).
    I want to create some Step types in CVI to write/read to a digital I/O board (PCI6509).
    What is the best way to do this?
    I don't know if it is better to build 2 big groups (i.e 48 input / 48output) and read/write all simultaneeusly or drive the lines one by one.
    I would like to create a reusable code, also for multithreading.
    Any help will be appreciated
    Thanks
    baloss

    Hi Baloss,
    in the general point of view there is no "best" method to do this. Again, there are advantages in both ways - it is depending on the Test you want to do.
    I would not recommend to create Tasks and do all the writing and reading in different steps. Sure it might be faster if you are able to get it work, but to get in work it will take a bit of effort. The Task Reference is not Global, so if you pass the Reference to TS and unload the VI from Memory, your Reference will not be valid anymore. If your using Multithreading in some ways you must handle the Resscource so that the Hardware is not blocked by another Task. You see it will be tricky.
    I would recommend to write down, what Tests has to be done. Than you can define steps which are as general as possible. So if you want to read a line in one test and 5 lines in another, it could be a could idea to define a step in which you read a hole port into a array and depending on a input array with a "wanted line pattern" you can pass the results of 1 , 2 or more lines needed to TS.
    You have one step in which you can perform every read request depending on a input from TS.
    The Step will be self-contained and reusable and you can create a Report with the Read-Results.
    The same way I would recommend for Write Operations. All with focusing on the Test Results you want to get.
    I really hope that helps a bit.
    Stefan
    NIG

  • XML in Oracle 9i (best method to return a xml file from a table query)

    Hello.
    What is the best method to query a table, or set of tables (that will return thousands of rows) using xml in oracle? (best performance)
    I'm currently using DBMS_XMLGen, is there a better method ?

    I think, if your talking about generating XML, that you should use XMLElement, XMLForest, etc. to create your XML.
    Lets assume that you base is relational data, then maybe the following great example will give you an idea how to do it : Re: Generate XML Schema from oracle tables
    As michaels pointed out (did you read the link/ URL given?), the general expectancy is that the packages will be less and less important. So also maintenance wise the XMLElement, etc way will be the best, also for the future, maintainable method.

  • Best Method To Upgrade Database From 8.0.5.2.6 to 9.2.0.5

    I have the following:
    Oracle 8 (8.0.5.2.6) Database running on a machine with Windows NT
    And I want to accomplish the following:
    Upgrade database to Oracle 9i (9.2.0.5) on a new machine running Windows Server 2003.
    I am looking for advice on the best method to accomplish this considering that I am changing three variables: 1)the database version, 2)the operating system, and 3)the physical location of the database.
    Thanks in advance for any advice anyone can provide.
    Jason

    It depends upon how you want to do the export and import. Whether a full database export or just the schema containing the data, etc. based on that you will have to create the 10g database and perform the import. Below are some relevant documents:
    Oracle® Database Upgrade Guide
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14238/toc.htm
    Oracle® Database Upgrade Guide - Export/Import
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14238/preup.htm#sthref67

  • I'm moving to an imac from a PC. I want to move my itunes library from the PC to my new imac. What is the best method and where can I find instructions?

    I'm moving to an imac from a PC. I want to move my itunes library from the PC to my new imac. What is the best method and where can I find instructions?

    Move iTunes from PC to MAC, http://www.macworld.com/article/146958/2010/03/move_itunes_windows_mac.html

  • What is the best method for backing up photos in IPhoto?

    I have over 10,000 photos in IPhoto and am looking for the best method for doing a backup (or an archive?).  I'm now using ICloud and it appears it's just photo streaming and does not have storage capability. External hard drive, copying to a DVD, other suggestions?

    Most Simple Back Up
    Drag the iPhoto Library from your Pictures Folder to another Disk. This will make a copy on that disk.
    Slightly more complex:
    Use an app that will do incremental back ups. This is a very good way to work. The first time you run the back up the app will make a complete copy of the Library. Thereafter it will update the back up with the changes you have made. That makes subsequent back ups much faster. Many of these apps also have scheduling capabilities: So set it up and it will do the back up automatically. Examples of such apps: Chronosync or DejaVu . But are many others. Search on MacUpdate
    My Routine
    My Library lives on my iMac. It’s Backed up to  two external hard disks every day. These disks are permanently attached to the iMac. These back ups run automatically. One is done by Time Machine, one is a bootable back up done by SuperDuper
    It’s also backed up to a portable hard disk when ever new photos are added. This hard disk lives in my car. For security, this disk is password protected.
    I have a second off-site back up at a relative’s house across town. That’s updated every 3 or 4 months.
    My Photos are backed up online. There are many options: Flickr, Picasa, SmugMug etc. However, check the terms of your account carefully. While most sites have free uploading, you will often find that these uploads are limited in terms of the file size or the bandwidth you can use per month. For access that allows you to upload full size pics with no restrictions you may need to pay.
    Every couple of months I test the back ups to make sure they are working correctly. It’s very easy to mis-configure a back up application, and the only way to protect against that is to do a trial restore.

  • What is the best method of backing up my digital files (catalog) in the Photoshop Elements Organizer

    What is the best method or service for backing up my digital files (catalog) in the Organizer from Photoshop Elements 12. Since there no longer is  the automatic  Elements sync available I do not know what to choose. I have tried to back this up using my external drive, but I cannot find the digital images per se. I see the entire program but not the catalog of pictures. Also, I have a windows operating system and Adobe  Revel offers no edit capabilities with this OS.

    I'm in a similar situation including movies I've purchased from iTunes...
    Here's my setup:
    I have all my iTunes data (music, movies, etc.) as well as about 10 GB of photos stored on a nework storage device that uses RAID-5 with SATA disks. This is basically a little toaster-sized NAS machine with four hard drives in it (www.infrant.com). If one of these drives dies, I get alerted and can insert a new one without missing a beat since the data is stored redundantly across all drives. I can also just yank out any one of the four drives while the thing is running and my data is still safe (I tried this after I bought it as a test).
    That's how I prevent problems with a single disk... Redundancy
    Now onto "backups"...
    Nightly, my little RAID toaster automatically backs itself up to an attached 250GB USB drive. However, these backups are only of my critical data... documents, photos and home movies... I don't bother backing up my "Hollywood" movies since I can live without them in a disaster.
    ... I actually don't permanently store anything I care about on a laptop or a desktop. It all goes on the NAS box (Network Sttached Storage) and then my other computers use it as a network drive. It's attached via Gigbait to my main computer and via wireless to most everything else.
    My achilles heel is that I don't store anything outside of my house yet. If I was smart, I'd alternate two USB drives attached to my NAS box and always keep one of them somewhere else (Safe Deposit Box?).
    ...and that's just one way to do it.
    -Brian

  • 2006 MacBook Pro died, best methods to transfer data to new MacBook Pro

    So my Rev. A MacBook Pro 2.16Ghz intel core duo finally died, looks like something on the logic board. So I bought a brand new 2011 2.2Ghz MacBook Pro. I have purchase and On The Go 2.5 inch enclosure from OWC, it's a USB device. the old hard drive is now in the enclosure, and I'm awaiting delivery tomorrow, of the new MacBook Pro.
    My question is, what would be the best method to transfer old files. I want to start fresh with library and system files, as well as email IMAP files. my main concern is applications.
    Can I simply drag the actual app from the old app folder to the new app folder? Will it bring along with it preferences and settings? Or do I need all the .DMG files to install the app into the new MBP?
    Apps like; Audiohub, Connect360, Adobe Photoshop, Illustrator, Premiere Pro. honestly there are so many more that I can't remember right now.
    Thanks in advance.

    You can attempt to manually move these files but if it doesn't work then just migrating the whole user and deleting the items you don't want might be the way to go.
    Copy the following files from the old HD to their matching location on the new computer and then restart the computer before you launch any of these applications:
    Safari:  Users / Your User / Library / Safari
    iCal:  Users / Your User / Library / Calendars
    Addressbook: Users / Your User / Application Support / Addressbook
    iChat : Users / Your User / Library / Preferences / com.apple.ichat (there may be more than one of these files.  copy them all over)
    I don't use Skype so I don't know exactly where they store their files but checking in Users / Your User / Library / Skype would be a logical place to start.  You can certainly ask in the Skype forum: http://forum.skype.com/
    Adobe products tend to have bits and pieces scattered throughout.  There may be a simple solution but I would suggest you inquire in the Adobe forums: http://forums.adobe.com/community/photoshop/photoshop_macintosh
    Best of luck!

  • F110:  What is best method in voiding an EFT payment after check run?

    What is the best method in voiding or reversing an EFT payment after a check run (F110)?
    Thanks!

    have you figureed it out?
    if I didn't remember wrong, we first find the clearing document number in proposal log, and used FBRA to reset the clearing items, then reverse the document
    I am also interested in setting a dummy check number for EFT, anyone can throw some ideas here?
    thanks
    Keqin

  • Best Method To Organize (move) Messages (many Mailboxes to one)

    I'm working on reorganizing my Mail messages from unique Mailboxes for certain topics (or senders) to having my messages in Mailboxes by year. Then use Smart Mailboxes to view what I need.
    Before I start moving around a lot of messages, I want to make sure what I'm doing will work and not cause any unforeseen side effects.
    Right now, I have many (20 or more) Mailboxes that I use to organize all the mail I get. What I want to do is move all my messages from last year (2013) into one new Mailbox.
    Here's the method I thought I'd use:
    Create a Smart Mailbox > Date Range > 1/1/2013 to 12/31/2013
    That should effectively show me all mail messages received last year.
    Create a new Mailbox called Mail 2013
    Drag all the messages in the above Smart Mailbox into Mail 2013.
    My understanding is that this will move all the messages I received in 2013 (which are currently sitting in many different Mailboxes on my Mac) into the newly created Mail 2013 Mailbox. The Smart Mailbox (with the 2013 date range) will still show all the same messages, since it doesn't matter where the messages are located.
    Am I correct?
    Is this the best method for doing this? Moving messages from many Mailboxes into a few Mailboxes that contain any and all messages within a specific date range.

    Hi;
    My first question is your ASM cant be mount to your new box? If answer yes than Just create same path,same hostname&Ip for new server(Unplog your existing server cable) than just open your new server and open db.
    You may also go wiht RMAN(Even you go wiht clone process you need to use RMAN due to do usage of ASM)
    I suggest also see:
    Master Note For Oracle Database Upgrades and Migrations [ID 1152016.1]
    Regard
    Helios

  • When bouncing- what's best method for smallest file size/highest quality?

    I am in the process of embedding 3 mp3's into a PDF to submit as a portfolio. The PDF also has text, and two scores included, and with the 3 embedded mp3's it can't be more than 10mb.
    So my question is: When bouncing a project out of Logic, what is the best method for getting the smallest file size, but retaining the best audio quality? And once it's out of Logic and it is an mp3 or other type of audio file, is there a best format for compressing it further, and still maintaining the relative quality?
    I bounced out the three projects into wav's. Now I am using Switch for Mac to compress them down to smaller Mp3's. I basically need them to be about 3 mb each. Two of the recordings sound OK at that size, but they are just MIDI(one project is piano and string quartet, the other is just piano- all software instruments. The recording that combines MIDI and Audio and has more tracks (three audio tracks and 10 Midi/software instrument tracks)and sounds completely horrible if I get it under 5 mb as an mp3. The problem is that I need all three to equal around 9mb, but still sound good enough to submit as a portfolio for consideration into a Master's program.
    If anyone can help I would really appreciate it. Please be detailed in your response, because I am new to logic and I really need the step by step.
    Thank you...

    MUYconfundido wrote:
    I am in the process of embedding 3 mp3's into a PDF to submit as a portfolio. The PDF also has text, and two scores included, and with the 3 embedded mp3's it can't be more than 10mb.
    So my question is: When bouncing a project out of Logic, what is the best method for getting the smallest file size, but retaining the best audio quality?
    The highest bitrate that falls within your limits. You'll have to calculate how big your MP3's can be, then choose the bitrate that keeps the size within your limit. The formula is simple: bitrate is the number of kilobits per second, so a 46 second stereo file at 96 kbps would be 96 x 46 = 4416 kbits / 8* = 552 kBytes or 0.552 MB. (*8 bits = 1 Byte)
    So if you know the length of your tracks you can calculate what bitrate you need to keep it within 10 MB total.
    I consider 128 kbps the lowest bearable bitrate for popsongs and other modern drumkit based music. Deterioration of sound quality is often directly related to the quality of the initial mix and the type of instruments used in it. Piano(-like) tones tend to sound watery pretty quickly at lower bitrates, as do crash and ride cymbals. But don't take my word for it, try it out.
    And once it's out of Logic and it is an mp3 or other type of audio file, is there a best format for compressing it further, and still maintaining the relative quality?
    You can only ZIP the whole thing after that, but that is just for transport. You'll have to unzip it again to use it. And no, you cannot compress an MP3 any further and still play it.
    I bounced out the three projects into wav's. Now I am using Switch for Mac to compress them down to smaller Mp3's.
    That is silly, you could have done that in Logic, which has one of the best MP3 encoders built in. And how good encoders are will especially come out at bitrates around or below 128, which you might be looking at.
    I basically need them to be about 3 mb each.
    So, one more scrap of info we need here: how long are those three pieces, exactly? I'll calculate the bitrate for you - but please bounce 'm directly out of Logic as MP3's. They will very probably sound better than your WAV-conversions made with Switch.
    !http://farm5.static.flickr.com/4084/4996323899_071398b89a.jpg!
    Two of the recordings sound OK at that size, but they are just MIDI(one project is piano and string quartet, the other is just piano- all software instruments. The recording that combines MIDI and Audio and has more tracks (three audio tracks and 10 Midi/software instrument tracks)and sounds completely horrible if I get it under 5 mb as an mp3. The problem is that I need all three to equal around 9mb, but still sound good enough to submit as a portfolio for consideration into a Master's program.
    Length of the piece? And does the .Wav bounce you have sound OK?

  • What is the best method to store session variables

    As the title says, what is the best method to store session
    variables in a Production environment?
    I have been reading the posts on sessions and have been
    getting different ideas on where to store session variables, in a
    db, registery, cookies etc etc
    Can someone clarify possible best practice on this matter?
    Matrix

    From my experience, db is the best to store client variable
    data. Registry will cause you trouble in future (when data gets
    overloaded) and cookies will not serve the purpose for a few % of
    your users.

Maybe you are looking for

  • Integration with MM how the asset transaction type is triggered during MIGO

    Hello everybody, Do you know how SAP triggers the asset transaction type during MIGO when Asset is purchase with MM? Is there a customizing transaction to set up the link between the movement type used in the MIGO and the asset transaction type durin

  • Printing Problem - Incomplete multiple page print job - until paper runs out

    I'm on Mac OS 10.9.3 printing to a Samsung CLX-6250FX. This is a network printer used by all the Apple/Window computers in this office. I am having terrible problems recently with printing multiple page documents - excel, word, email, pdf etc. I am s

  • Why can't I click and drag clone brush??

    I'm working with a trial version of Aperture and trying to clone out a couple of annoying background details. When I use the clone tool, I cannot click and drag or "paint" with it. I only get a circular clone that is the diameter of the brush. I don'

  • I want to see the files which i was already selected

    From the files selcetion, i did not see how big the size which i was already selected Is there any place to see it properly?

  • Console to GUI, Gamma correction Woes

    Is there any way in Linux that I can make gamma adjustments in an application basis? Switching between dark console fullscreens to a bright white browser window as fast as hitting a key combination is killing me! (I'm using i3). I'm not sure I will b