Jump to content

Mikkel

Members
  • Posts

    74
  • Joined

  • Last visited

Posts posted by Mikkel

  1. QUOTE(BrokenArrow @ Mar 27 2007, 03:57 AM)

    One example of where I think I'm overusing [a variation of Boolean Trigger.vi] is when a Push-On, Push-Off button is used to trigger a one-shot event, such as sending a command to a port. The alternatives are a LOT more work. Some of our old code, done back in the mid 90's, uses TWO buttons (one transparent) and two local variables to achieve the same thing.

    Why are you not using the button with 'Mechanical Action' set to 'Latch When Pressed', as far as I can tell, this would provide the same functionallity (if I understood the above correctly)?

    -Mikkel :)

  2. QUOTE(BrokenArrow @ Mar 23 2007, 06:39 PM)

    I can't find the attached Property Node: Front Panel:Origin, in 8.2. But, I can copy it from one of my older VIs, and it works fine. Any thoughts? Thanks.

    Create a new property node, rightclick it, select 'Link to' -> 'Pane'. Click this property node, find 'Origin' and be happy :)

    -Mikkel

  3. QUOTE(orko @ Mar 17 2007, 11:30 PM)

    Wow! Thanks Mikkel! :thumbup: That's what I like about these forums, if you research and ask the right questions, there is bound to be someone that can help you out! :book:

    I'll take a look at these next week!!

    PS. Hey!!! This is my 100th post!

    It's nice to hear, that you can use this for something ;)

    I mostly made it as an experiment to see if I could get ID3Lib to work with LabVIEW...

    I've updated the download, as the original one had a memory leak in the demo vi (if you make a new tag, you better delete it afterwards, else you are leaking tags).

    Congrats on your hecto-post!

    -Mikkel :)

  4. QUOTE(Jeff Plotzke @ Mar 16 2007, 05:38 AM)

    What's the correct way to pass timestamps between systems without worrying about locale settings?

    If you use 'Format Date/Time String' with the 'UTC format' set to true, the string output will be universal time (UT), and should be comparable between systems - but then you will not get 'real' time for your current location (unless of course your location is in the UT timezone).

    -Mikkel :)

  5. QUOTE(mballa @ Mar 15 2007, 03:40 PM)

    Yes, this is one way of handling it. I may be overoptimizing, but calling a sub-VI every iteration of a loop to find out if the loop should terminate just feels wrong :blink:

    -Mikkel

  6. I may be misunderstanding your question (if so, please correct me) but: You can use 'File Dialog' (*) component on the 'File I/O / Advanced File Functions' pallette - set the 'pattern (all files)' input to the string "*.png" to only show png files, set the 'start path' input to the path to your picture folder.

    In the LabVIEW Exampe Finder there are a lot of examples using file functions under 'Fundamentals / File Input and Output'.

    -Mikkel

    (*) Why this has to be an Express VI is beyond me, I hate it. :headbang:

  7. QUOTE(crelf @ Mar 10 2007, 12:32 AM)

    Actually, yes it is :) I'm backing up my iPod, and when copying files from it (it's mounted as an external drive) they're all named xxxx.mp3 (where x = aplha character) and I'd like to rename them something human-friendly like ArtistName_AlbumName_TrackNumber_TrackName.mp3

    I did this a couple of years ago (in C using id3lib) for exactly the same reason...

    If you consider reading MP3 headers yourself, take a look at the id3lib code :o - it's quite convulted...

    -Mikkel

  8. QUOTE(Sherif @ Mar 11 2007, 05:34 PM)

    please try to elaborate how can i insert an external Pic.

    You can use the 'Read JPG File.vi'* (or 'Read PNG File.vi'*), and convert the image data to a picture with the 'Draw Flattened Pixmap.vi'.

    -Mikkel :)

    * Note: The helpfile says that these vis are missing in the Base Package of LabVIEW.

  9. QUOTE(martin@aerodynamics @ Mar 9 2007, 09:44 AM)

    I just googelt the result...

    No problem ;) I was just a bit disappointed, when I looked at the code, expecting it to draw the cool radar image shown on the homepage...

    -Mikkel :)

  10. QUOTE(martin@aerodynamics @ Mar 9 2007, 07:45 AM)

    here is an example code...

    As far as I can see (and it's no simple task understanding code, where all comments and text is in french, as a non-french speaking person) this only loads a nice looking radarpicture from a jpg and updates shippositions (?) on top of the loaded picture.

    So it doesn't really create the radar picture.

    -Mikkel

  11. Some very simple benchmarking (for-loop with 50000 iterations, on my old T41 laptop):

    1) Reset array with invoke note: 30000 ms

    2) Reset array by assigning empty array constant: 44 ms

    Unless I am missing something, it seems to be around 700 times slower to use the invoke note.

    -Mikkel :)

    Edit: It seems to be related to repainting. The invoke note method repaints the indicator, while the assignment does not. If I enable 'Synchronous Display' for the indicator and modify the array contents every iteration before resetting it, the array constant method takes more or less the same as the invoke note method.

  12. QUOTE(tcplomp @ Mar 6 2007, 08:48 AM)

    Too bad I already deleted my alnaimi PM (how many did he sent?), but if I recall his expressions were a little louder

    .....

    This brings up another issue, should our profile site show our last IP-address? This is done at a lot of forums, and it wouldn't harm here (I think).

    Does anyone have issues with such a feature?

    Ton

    Someone once said:

    "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."

    So, yes, I think I would have issues with this feature.

    -Mikkel :)

×
×
  • Create New...

Important Information

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