Jump to content

Ton Plomp

Members
  • Posts

    1,991
  • Joined

  • Last visited

  • Days Won

    38

Everything posted by Ton Plomp

  1. This is a floating point issue, derived from the fact your 0.3 != (0.2+0.1). To see this expand the 'sorted array' to have 20 digits: A LabVIEW wiki on this is Numeric. The second paragraph titled 'Comparing real numbers' is of your interest. A wikipedia article on this issue can be found here. Ton
  2. QUOTE(Norm Kirchner @ Jan 2 2008, 08:37 PM) Yes I like the Jing video as well, I've used it for the instruction video of the http://forums.lavag.org/downloads-file121.html' target="_blank">Code Capture Tool. (it's the big black square at the bottom) Only restriction is the time size of 4 minutes. [plug]For LabVIEW code, I use the Code Capture Tool.[/plug] Ton
  3. This is a cross-post, it is considered good manners to mention cross-posting (including a link) On Topic, you should wait on a 'Shortcut Menu Activation?' event and generate the menu. Then you should wait on a 'Shortcut Menu Selection (user)' event to apply the change. Ton
  4. QUOTE(Aristos Queue @ Dec 30 2007, 04:10 AM) Confirmed, I was confused by the fact that I had a ton of errors where one was that a possible recursion was removed. But as soon as I got everything straightened it worked. (You can see this in version 1.2 of the Variant Probe) One thing I dislike is that a 'dynamic dispatch' VI can't be part of a polymorphic VI. Ton
  5. QUOTE(Bhima @ Dec 28 2007, 01:35 PM) If you already have a stack of books, this will only make you get more lost, just absorb wha't in the books, follow the example and try to find your own programming style. QUOTE Now as for your advice to use a state machine. Are you saying that I should wrap the bloomy interval timer vi a new sub vi using the standard state machine template? Then everywhere where there is interval time functionality that needs to be replaced, I put this new sub vi, set the state I want, and then add the input or get the output. Is that an accurate recounting? No, I wasn't focusing on the bloomy interval timer (which I don't know) just a general hint. Ton
  6. QUOTE(osvaldo @ Dec 21 2007, 02:52 PM) Yes I http://forums.lavag.org/downloads-file63.html' target="_blank">updated it, but in the process something happened you might dislike, it's upgraded to LabVIEW 8.5 because of the use of recursive LVOOP. Ton
  7. QUOTE(Aristos Queue @ Aug 3 2007, 09:29 PM) Am I right is this just plain recursion? A->A? And not 'branched' recursion: A->B->A Ton
  8. QUOTE(ASTDan @ Dec 29 2007, 03:38 PM) QUOTE(Dan Bookwalter @ Dec 29 2007, 05:19 PM) Well LabVIEW has an ASCII table included: <ctrl-?>, search, ASCII Codes, and at #29 is a table. But unfortunately it's incomplete, only the first 127 charactars are shown. Ton
  9. QUOTE(TobyD @ Dec 28 2007, 07:41 PM) I see the same with NewsFox in Firefox, the [ /quote ] isn't shown in the RSS feed. Ton
  10. QUOTE(Bhima @ Dec 28 2007, 12:34 PM) That's always tough. QUOTE When I open the vi I get this error: "Interval uses data range coercion, which now only applies to data entry; values will not be coerced when passed to subVIs. To coerce passed values, use the In Range and Coerce function." Is this something I need to fix before proceeding? If so, how do I fix this? The VI you mention uses 'data range coercion' on one of it's front panel controls. This means a user can't set the value to an invalid (unwanted) value. However if you use the VI as a subVI the data is not coerced and an invalid value may be feed to the function. So you should use some data validation. A solution is to use the mentioned 'In Range and Coerce'. QUOTE Next I am unsure how to integrate this vi into the existing application. Currently this functionality is attempted by a wildly desperate parts spread over a block diagram which is approximately 1 Meter x 2.5 meters in size. It uses global variables, strings, a myriad of local variables, seemingly random separate mathematic functions. Is my best avenue to wrap this into a non-reentrant sub-vi and create a small cadre of global & local variables, and then use these variables to replace the old ones all over the place? Or is there some more palatable solution I'm missing? I advise you to use a State Machine architecture. A good book on this topic is 'Software engineering approach for LabVIEW' (esp. the first half of the book) QUOTE If it would be helpful I could post snippet jpegs of the old code in question. If you're going to I advice you to use the Code Capture Tool. Just remember the two golden rules: KISS (keep it simply stupid) If it ain't broken, don't fix it. Ton
  11. QUOTE(BOBILLIER @ Dec 27 2007, 02:03 PM) Hi Eric, I just tested it and downloaded version 1.1.2! Ton
  12. Use 'Get Date/Time In Seconds' This will return the current computer time as a timestamp. Ton
  13. QUOTE(jlokanis @ Dec 21 2007, 10:50 PM) No, it's not obvious, and yes I care. I can't find an explanation. I only noticed that the 'Edit position' isn't updated by the property. Ton
  14. QUOTE(JDave @ Oct 29 2007, 08:50 PM) Dave it might be usefull to add the help-file image to your VI. This code should work: http://lavag.org/old_files/monthly_12_2007/post-2399-1198232835.png' target="_blank"> Ton
  15. QUOTE(xbt87 @ Dec 21 2007, 06:51 AM) [tip]Please use LAVA stored images, http://forums.lavag.org/FixedBoard-width-New-lay-out-is-very-wide-t4769.html#' target="_blank">see here why[/tip] One thing, a graph will never store previous runs. But it looks like you used a chart, so that shouldn't give a problem. Are you sure your values are in the range of the plot? Try putting on 'Autosclae' for X and Y scale. Another issue, your current 'String' doens't show the type-specifiers 'voltage' or 'tempdeg' so the scanning won't find anything usefull. You need a more sophisticated routine to do the string parsing. Ton
  16. QUOTE(alfa @ Dec 21 2007, 08:38 AM) Cross-post from the http://forums.ni.com/ni/board/message?board.id=170&message.id=291665#M291665' target="_blank">NI forums, it is considered googd manners to mention cross-posting
  17. Give me some time to absorb, it's 6 in the morning. Ton PS It looks nice though
  18. QUOTE(phuzionz @ Dec 19 2007, 10:03 AM) Here's a tested version on LabVIEW 8.0.(1?) that works. Only the dynamic key-down doesn't work. However the dynamic mouse-down works. Ton
  19. QUOTE(TiT @ Dec 19 2007, 11:49 AM) Are you sure about this (in the recent versions of LabVIEW). I don't see the issue, but you must be aware that it's all in the eye of the beholder. The default timestamp control is formatted to show DST timing. However if you change the formatter to %^T you will get UTC time. Ton
  20. QUOTE(silmaril @ Dec 19 2007, 10:36 AM) Yes and No, it is installed by the OpenG 'Additional Application Control' package. Ton
  21. QUOTE(Michael_Aivaliotis @ Dec 19 2007, 09:37 AM) What I mean is when you are a posting and finished I have to scroll down (even on my 1280x1024 screen) to 'Add Reply': IMHO the 'Attachments' and 'Post Options' sections could be implemented in one layer side by side. And the 'Post Icons' is almost never used (by me at least) Or the Add Reply button should be moved up. Not flaming Ton
  22. QUOTE(Michael_Aivaliotis @ Dec 19 2007, 09:37 AM) What I mean is when you are a posting and finished I have to scroll down (even on my 1280x1024 screen) to 'Add Reply': IMHO the 'Attachments' and 'Post Options' sections could be implemented in one layer side by side. And the 'Post Icons' is almost never used (by me at least) Or the Add Reply button should be moved up. Not flaming Ton
  23. QUOTE(TobyD @ Dec 18 2007, 11:45 PM) Well the pane is just a FrontPanel thing, the block diagram don't know about them, so it shouldn't be anything different than a single pane VI. But unfortunately not the 'Open VI Object Reference' The following code should work: http://lavag.org/old_files/monthly_12_2007/post-2399-1198046848.png' target="_blank"> Notice the error out will be true on completing this code since the second pane (in my case) doesn't have the 'Boolean' control. The funny thing is the 'Owner' of the Boolean is not the Pane but the Panel. Good luck, Ton
  24. If you want to tag per se, you could use del.icio.us or one of the other thingies in the bar above the thread. And since the LAVA search doesn't suck anymore it's quite usefull. One thing I dislike is when I post I have to scroll to get to the 'Add reply' button. Ton
  25. If you want to tag per se, you could use del.icio.us or one of the other thingies in the bar above the thread. And since the LAVA search doesn't suck anymore it's quite usefull. One thing I dislike is when I post I have to scroll to get to the 'Add reply' button. Ton
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.