In this case, how would you save values to a file?

Hi,
I need your advice. I have a Vi with lots of controls and the user can change many settings.
If I stop and start the vi again, you'll surely know, all settings are back to default, due to the fact that LabVIEW unfortunately does not allow to make values default programmatically.
Nevertheless there are many possibilities to save and load the settings. But which one is the best in my case?
I have boolean buttons, over 60 numeric controls, two file pathes and one numeric array.
I could write all of them separated by tabs in a text file (see screenshot), and read them back - but this is very laborious and prone to mix-up.
I tried clustering, but it's not possible due to the array, which I cannot put into a cluster.
What would be the best and simplest way to accomplish this saving and reading of the settings? What would you recommend?  
Greetings
Johannes
LabVIEW 7.1.
Windows XP Professional 2002 SP 2
Intel Core 2 Duo, 2,4 GHz
Message Edited by candidate on 12-01-2008 10:00 AM

You could write a VI that set values from a file using VI server. With VI server you get references to all controls and create a list of label.text. When you read the value for "Smierung" you search the index of the reference to that control in the label array and set the value using "Value" property.
Play around with VI server and control references.
Regards,
André
Using whatever version of LV the customer requires. (LV5.1-LV2012) (www.carya.nl)

Similar Messages

  • Email attachments: whenever someone sends me a file the Ipad labels it winmail.dat and wont allow me to open it...these are Word, Exce or jpgs.  Does anyone know why this is and how to fix it?  Also, how can you save attachments to a file on the IPad2

    whenever someone sends me a file the Ipad labels it winmail.dat and wont allow me to open it...these are Word, Exce or jpgs.  Does anyone know why this is and how to fix it?  Also, how can you save attachments to a file on the IPad2

    Is this a particular sender, or all of your attchments?  Google winmail.dat and you will see a number of returns that can explain this, but in short, this is the way some e mail providers deal with attachments.  If all of your e mail is coming that way, you need to change a setting on your isp set up.  Perhaps stary here...
    http://www.nytimes.com/2010/11/25/technology/personaltech/25askk.html

  • How do you save a jepeg scanned file to email it?

    I scanned a document and the mac saved it as a jpeg file in photosmart utility (colorsync utility?).  I could not email it as an attachment,  and I could not save it as a different type of file.  I could not copy the file to paste it as a word document.  How do you save a jpeg scanned file to email it?

    I scanned the document on an hp injet printer and it was all automatically done by the laptop.  I didn't use image capture, that I know of.  I don't know what that is, or how to utilize it to scan the pages.  I scanned about 10 pages and they went into a folder called scanner output.  I was able to attach that to the email, but then the email could not be sent.  The email tries to send it, then after about 7-8 minutes I get a message that says:
    "Sending the message content to the server failed.
      Select a different outgoing mail server from the list below or click Try Later to leave the message in your Outbox until it can be delivered."

  • If you have a quicktime movie with an AC3 sound track, how do you save out the AC3 file with only an AC3 extension?

    Im using Quicktime 7.6.6
    OS X 10.6.8
    I'm trying to remove the quicktime container so I can import the AC3 into Adobe Encore, which will not import a 5.1 asset if it is within a quicktime container appearently.

    Im using Quicktime 7.6.6
    OS X 10.6.8
    I'm trying to remove the quicktime container so I can import the AC3 into Adobe Encore, which will not import a 5.1 asset if it is within a quicktime container appearently.
    It would normally help to know more about the source QT file' compression format(s). If the file is "muxed" MPEG-2/AC3 data in an MOV file container, then you can use MPEG Streamclip to "demux" the AC3 content directly to an "AC3" file container using the "Demux/Demux to AC3..." File menu option. If the AC3 track is an elementary stream within the MOV file container and if QT 7 has been upgraded for "Pro" use, then you could try extracting the AC3 track to a new player, ensure the AC3 track is selected/active in the new player, saving the new player as a new MOV file using the "Save As..." File menu option, manually change the extension from ".mov" to ".ac3" and try importing the re-named asset to Encore. (This probably only works if the importing app only checks the extension and not the container itself.) In a similar manner, if QT 7 is not upgraded for "Pro" use, you can use Subler to extract the AC3 track and save it as an M4V file whose extension can then be changed to ".ac3" in the finder.

  • How Do You Save The Saved Game Files On the iPhone If It's Possible?

    Hi. Sometimes the best apps like games are 1GB or more and you need to erase it to make way for photos or videos but is there now a way to save the saved game files and other saved setting for other non-game apps? I'm on iOS 7 which is very nice once you get used to it (the icons and individual elements are not good looking on their own but as a whole, 7 is). If I delete it hours of work on say, an RPG app, will be restarted.
    Thank you in advance.
    God bless.

    Not possible to delete any apps included with iOS, and the App Store app is included.
    Do you have Restrictions enabled on your iPhone?
    Have you checked in every folder on every home screen?

  • How would you record overdubs on FCP files?

    I have about ten hours of footage for a doc I had translated. I have a guy coming over to do overdubs, and I just realized I don't know how I am going to have them recorded! FCP can't record them right? Any suggestions for software or other ideas. I would love to have something which was somewhat integrated so I don't have to export all ten hours of footage from FCP.

    Here's a link to a freeware program called Audio In. It's about the simplest tool you can use for voice over. It records AIFF files that easily import to FCP.
    http://www.versiontracker.com/dyn/moreinfo/macosx/15962

  • How do you save arrays in tdm files?

    Hi,
    As part of a university project I am trying to save some program data to a .tdm file.  On each channel I wanted a number of different types of data including an analogue wave form and a couple of 1-D DBL arrays.  I have found an NI presentation that says that you can store arrays in them but dont seem to be having any luck.  Any ideas what Im doing wrong?  I am using labview 8.5.
    Regards,
    James

    Hi James,
    in a channel, you can save only one array as data. If you want to save more arrays then use several channels. You can organize them in groups. If the arrays must be in the same channel, then convert them to a spreadsheet string (in string palette) and save the string as a property.
    Greetings,
    shb

  • How would you implement equals ()

    For complex classes with many data members, my dilema is:
    1. equals should return true only if all fields of the two objects are
    equals.
    2. equals should return true if the key(s) of the two objets are equal.
    For instance, we have the Class Person, that contains dozens of
    data: ID, name, age, job, salary, children, more 1000 items.
    Person is like a record in a DB table. There can not be two persons
    with the same ID.
    In this case, how would you implement equals, and why?
    thanks

    What I'm trying to say is: what is equality foryou?
    Two objects are equal if all there contents areequals
    or is it enough
    to compare their keys?
    In the latter case, there can happen, by somereason,
    that we can end
    up with two objects with the same keys, but all the
    rest of
    the contents different.i think you meant to say that:
    In the latter case, there can happen, by somereason,
    that we can end
    up with two objects with different keys, but
    all the rest of the contents the same.and the answer is, and listen carefully, it totally
    depends on the application you are writing. there
    is no hard definition of equality where custom classes
    are concerned... that is the answer.If this question arises, you should revisit your design.
    If two entities have equal keys, they should be considered to be equal. Otherwise the attributes you call keys are in the fact normal attributes and no keys.

  • How would you go about saving an online image locally?

    Say if you knew the url such as http://www.yahoo.com/img.jpg
    How would you save this locally?

    Read the answer in your previous posting:
    http://forum.java.sun.com/thread.jspa?threadID=772451
    Use the file as an InputStream to read the data and then use an OutputStream to write the file.
    The logic is the same as reading and writing a file from disk once you have the InputStream.

  • How do you save "game state" so the user can continue next time?

    I'm not sure what the correct game terminology is for this, but how do you save "game state" so the user can continue next time?
    This seems like a pretty important feature for building some games, we don't want users to have to start over everytime.
    Any ideas if this is possible?

    Check out my blog post on the PersistenceManager:
    http://www.unitedmindset.com/jonbcampos/2010/11/01/flex-4-5-persistencemanager/
    This will help you understand how to store the data. When the app starts up again get the state information from the persistencemanager and reset you game to the state you need. It requires a bit of code for the startup, but it is relatively simple.

  • VI Analyzer - How Would You Configure It for This Use Case?

    My group has different people working on different LVPROJs for each software deliverable we have. Each LVPROJ uses our user.libs and instr.libs, as well as an overall "framework" that is the same for most LVPROJs.
    I really think the VI Analyzer toolkit would be powerful for code reviews, but only if I can configure it in a way where which tests I run and what the criteria are can be saved and used on any project. I can't seem to get this to work for me. I want to save all those configurations, and use it on new LVPROJs easily - the easier I can make this process, the more inclined others will be to use this for code review. How would you do it? (if it's even feasible)
    Solved!
    Go to Solution.

    I suggest creating a .cfg file without a project linkage, but with all the tests selected and configured as you want...so a .cfg file with no "Items to Analyze" specified. Then, when working on an individual project, open that CFG file, add the project's top-level folder to the analysis, then save that CFG file with that project. This means you can't have the project linkage in your CFG file, but assuming your project is all within some top-level folder, that shouldn't be much of an issue, since the CFG file will be "linked" at that point to the top-level folder containing your project.
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Advice - how would you do this?

    I have a compound path (an inner rectangle and an outer one) in an opacity mask. I have to apply an b/w gradient from the outer to the inner ractangle.
    I can only find a feature to add circular an linear gradients!
    How would you do this?

    haemse,
    Transitions like this are made with Blends; Object>Blend>Options to ensure the options you want, then Object>Blend>Make.
    In this case you may:
    1) Object>Compound Path>Release;
    2) For each rectangle, set Stroke to the Fill Color and set Fill to None;
    3) Select both and Object>Blend>Make (keep it Smooth).
    In other words replace the Compound Path with a Blend.

  • How would you detect a ground like this:

    I have made racing games in the past, but never a side scrolling type.
    Im trying to make one similar to this: http://www.gamesfreak.net/games/Cyclo-Maniacs_3730.html
    But how would you keep the player on the ground? well not stuck to the ground because we would want the player to be able to use things like ramps.
    Would it be a hit test? hmmmmmmmm Any ideas? anyone.

    Oh i apoligize. I pressumed because of the popularity of box2D you meant that. Well the code I have so far does a OK job for physics. Allthough i made it in intensions of a platform/side scroller. But its ok. I guess it could possibly be  modified for a car or something.
    Here is what i have so far:
    package
              import flash.display.MovieClip;
              import flash.events.Event;
              import flash.events.MouseEvent;
              import flash.events.KeyboardEvent;
              import flash.geom.Point;
              public class DocumentMain extends MovieClip
                        public var _startMarker:StartMarker = new StartMarker;
                        public var _Player:Player;
                        public var _Boundaries:Boundaries;
                        public var _Wall:Wall;
                        public var _Floor:Floor;
                        public var _LButton:LButton = new LButton;
                        public var _RButton:RButton = new RButton;
                        public var _UButton:UButton = new UButton;
                        public var _DButton:DButton = new DButton;
                        private var _vy:Number;
                        private var _vx:Number;
                        public function DocumentMain()
                                  stage.focus = stage;
                                  //stage.addChild(_startMarker);
                                  //_startMarker.x = 300;
                                  //_startMarker.y = 300;
                                  stage.addChild(_LButton);
                                  _LButton.x = 80;
                                  _LButton.y = 600;
                                  _LButton.height = 75;
                                  _LButton.width = 75;
                                  _LButton.addEventListener(MouseEvent.MOUSE_DOWN, LMouseDown);
                                  _LButton.addEventListener(MouseEvent.MOUSE_UP, LMouseUp);
                                  stage.addChild(_RButton);
                                  _RButton.x = 210;
                                  _RButton.y = 600;
                                  _RButton.height = 75;
                                  _RButton.width = 75;
                                  _RButton.addEventListener(MouseEvent.MOUSE_DOWN, RMouseDown);
                                  _RButton.addEventListener(MouseEvent.MOUSE_UP, RMouseUp);
                                  stage.addChild(_DButton);
                                  _DButton.x = 140;
                                  _DButton.y = 650;
                                  _DButton.height = 75;
                                  _DButton.width = 75;
                                  //_DButton.addEventListener(MouseEvent.MOUSE_DOWN, DMouseDown);
                                  //_DButton.addEventListener(MouseEvent.MOUSE_UP, DMouseUp);
                                  stage.addChild(_UButton);
                                  _UButton.x = 140;
                                  _UButton.y = 550;
                                  _UButton.height = 75;
                                  _UButton.width = 75;
                                  _UButton.addEventListener(MouseEvent.MOUSE_DOWN, UpMouseDown);
                                  _UButton.addEventListener(MouseEvent.MOUSE_UP, UpMouseUp);
                                  _startMarker.visible = true;
                                  _startMarker.x = 500;
                                  _startMarker.y = 300;
                                  _vx = 0;
                                  _vy = 0;
                                  _Player.addEventListener(MouseEvent.MOUSE_DOWN, JumpDownHandler);
                                  _Player.addEventListener(MouseEvent.MOUSE_UP, JumpUpHandler);
                                  this.addEventListener(Event.ENTER_FRAME, enterFrameHandler);
                                  stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
                                  stage.addEventListener(KeyboardEvent.KEY_UP, keyUpHandler);
                        private function JumpDownHandler(MouseEvent):void
                                  _vy = -20;
                        private function JumpUpHandler(MouseEvent):void
                                  _vy = 0;
                        private function LMouseDown(MouseEvent):void
                                  _vx = -20;
                        private function LMouseUp(MouseEvent):void
                                  trace("LMouseUp");
                                  _vx = 0;
                        private function RMouseUp(MouseEvent):void
                                  _vx = 0;
                        private function RMouseDown(MouseEvent):void
                                  trace("RMouseDown");
                                  _vx = 20;
                        private function UpMouseDown(MouseEvent):void
                                  _vy = -20;
                        private function UpMouseUp(MouseEvent):void
                                  trace("UMouseUp");
                                  //_vx = 0;
                        private function enterFrameHandler(e:Event):void
                                  _vy +=  2;
                                  //_vx += 20;
                                  _Player.x += + _vx;
                                  _Player.y += + _vy;
                                  processAllTheCollisions();
                                  scrollTheStage();
                        private function processAllTheCollisions():void
                                  if (_vy > 0)
                                            if (_Player.y > 500)
                                                      _Player.x = _startMarker.x;
                                                      _Player.y = _startMarker.y;
                                                      _Boundaries.x = 0;
                                                      _Boundaries.y = 0;
                                                      _vy = 0;
                                            else
                                                      var collision:Boolean = false;
                                                      if (_Boundaries.hitTestPoint(_Player.x,_Player.y,true))
                                                                collision = true;
                                                      if (collision)
                                                                while (collision)
                                                                          _Player.y -=  0.1;
                                                                          collision = false;
                                                                          if (_Boundaries.hitTestPoint(_Player.x, _Player.y, true))
                                                                                    collision = true;
                                                                _vy = 0;
                        private function scrollTheStage():void
                                  _Boundaries.x += (stage.stageWidth * 0.5) - _Player.x;
                                  _Player.x = stage.stageWidth * 0.5;
                                  //_Boundaries.y += (stage.stage.stageHeight * 0.5) - _Player.y;
                                  //_Player.y = stage.stageHeight * 0.5;
                        private function keyDownHandler(e:KeyboardEvent):void
                                  switch (e.keyCode)
                                            case 37 :
                                            _vx = -20;
                                            break;
                                            case 38 :
                                            _vy = -20;
                                            break;
                                            case 39:
                                            _vx = 20;
                                            break;
                                            default:
                        private function keyUpHandler(e:KeyboardEvent):void
                                  switch (e.keyCode)
                                            case 37 :
                                            case 39 :
                                            _vx = 0;
                                            break;
                                            default:

  • How would you create this effect?

    I am curious if there is a fairly straight-foward away of creating the effect seen in this image. I am talking about the pixelated effect made up of many little red boxes of various hues at the top part of the image.
    I was thinking of zooming in real close to an image in photoshop and doing a screen capture, but I'd rather have a vector image that can be easily scaled in size and easy to change the hue to different colors.
    Something like this able to be done in illustrator without building it a box at a time?
    Regards,

    Well I'd say that PDF is a vector.
    The PDF contains nothing other than a raster image. It contains no vector paths.
    (By the way: "A vector" is a single expression of a direction. Calling a vector-based illustration "a vector" is like calling a raster-based image "a pixel.")
    I zoomed in as close as I could and didn't see any pixels.
    All you could see is pixels. That's all that's there.
    If it's raster I'd be interested in knowing what resolution...
    Its resolution is 1. It's a single-pixel raster image (as given away in its title).
    I've never experienced a raster image that didn't get more pixelated the larger you scaled it up.
    Yes, you have. That's exactly what I demonstrated in post 5 and in the PDF.
    The operative word in your comment is more pixelated. That misconception is the point of the demonstration. Your image is already pixelated, and that's exactly what you want. It won't be "more" pixelated whatsoever, no matter how large you scale it.
    At the heart of the [quite common] misconception is this: What you are calling "resolution" is not. True resolution is the measure of the amount of information contained. A raster image contains only a fixed amount of information. PPI is merely a scale factor. It's merely an expression of information density, not quantity. As you can see, that PDF is every bit as "resolution independent" (i.e.; scaleable) as a vector square.
    The same priciple applies to your raster image. Your whole intent in your posted example is to display pixelation. So if the very thing you're trying to depict is the pixelation of, say, a 10 pixel x 20 pixel raster image, then all you need in order to depict that at any scale is a 10 pixel by 20 pixel raster image. At a scale of 10 PPI, you've got a perfect depiction of 10 square Pixels Per Inch. At a scale of 200%, you've got a perfect depiction of 5 square Pixels Per Inch (i.e.; 10 Pixels Per 2 Inches). You can scale it to the size of the moon and you'll have a perfect depiction of 10 Pixels Per Moon. It's just as scaleable as a 10 x 20 array of vector squares.
    In other words: All the actual resolution of your raster image (all its information—all its pixels, in all their squareness) is already visible. Reducing its information density (by scaling it larger) will not reveal more of its actual information (the square shape of its pixels—the information that one usually wants to conceal or disguize about raster images, but not in this case).
    The whole purpose of making sure your raster images have "sufficient resolution" in desktop publishing is to disguise the squareness of their pixels (what is commonly called "pixelation"). But that is exactly what you are intending to depict in this case. And you want to be able to depict that with equal clarity at any scale. There's no need to re-draw it as vector paths in order to do that. In this situation, you are not trying to avoid "pixelation," you are trying to show it, which is exactly what a raster image does by its nature.
    Think of it this way: If all you are trying to draw is 200 squares, it can easily be argued that a raster image is more "data efficient" than a file containing 200 square vector paths. For each vector path, you have to include four coordinate pairs (800 anchor points). For a raster image, all you need is 200 color values.
    This is not just a symantic or academic or pompous know-it-all point of argument. It's a point widely applicable to many common situations, and something every graphics professional should understand. For example, consider the software instructions author who pointlessly frets over the misunderstood "requirement" for pixel density when his illustrations necessarily consist of screenshots that are, after all, supposed to accurately and clearly depict what the user sees on his screen. Or the fact that you see single-pixel raster images scaled to the full width of the page, or dimensions of a table cell or large section of a whole background on web pages everyday. Or the widespread misconception that intentionally fuzzy raster effects like soft drop shapows "require" 300 PPI.
    JET

  • Disable the pop-up message box "How would you like to open this file" to open pdf file??

    Hi,
    is there any way i can stop the pop-up box displaying to open pdf file in sharepoint document library? Right now whenever i am trying to open pdf file, asking "how would you like to open"  Read only or edit mode. currently MIME Type is setup
    but still pop-up message box.
    Thanks in advanced!

    Hi ,
    As far as I know, This is a default feature. and is not recommended to delete or deactivate this pop up. 
    This is a feature of office and there is a dll called owssupp.dll which is responsible for getting the popup to open.
    You can go to IE tools> addon settings and deactivate the above dll (sharepoint open document class). But if you do so, then the other office office files which are word/excel/pptx etc.. would aslo gets affected and they also wont get the popup.
    Hope this helps.
    Best Regards, Ashok Yadala

Maybe you are looking for