Jump to content

hooovahh

Moderators
  • Posts

    3,365
  • Joined

  • Last visited

  • Days Won

    268

Posts posted by hooovahh

  1. QUOTE (Justin Goeres @ Mar 19 2009, 09:38 AM)

    Unless you're storing more than that amount of data (or need to transport it on a thumb drive or something), just buy one of those. If your data is uncompressed it's also easier to work with. You don't have to go through the gymnastics of going through a zip layer every time you want to look at it.

    Agreed, I think the quick answer to the question would be save it as a binary file (assuming you don't need it to be human readable) and the file size will be pretty smal.

    If this was a compression thread (which it didn't start as) I am also on the 7-zip bandwagon. I even tried making a API for LabVIEW but realized with my limited knowledge of DLL calls my only solution would be to use the command prompt to run the 7-zip command line utility. It would be a decent solution but would be operating system specific.

  2. QUOTE (crossrulz @ Mar 19 2009, 09:56 AM)

    But are functional globals just a crutch or are they actually better to use? Hmm...

    I was told (and maybe misinformed) that the way Global Variables were first implemented were very bad on resources, on top of the usual problems associated with using Globals (hard to debug problems and such) But I heard that the way globals are made natively today is much better than before.

    As for functional global, I'd say it can be considered a crutch, but functional globals can do so much more than the built in global variables, that I think it's ok.

    BTW been global variable free for 4 years now...well I haven't created any in 4 years, some NI examples use them, and I would use the examples in a prototype situation. Does that count?

  3. Wow I thought I had it bad. I found that if you hold the down key (making the blocks drop faster) then click on a different window, it continues to think the down key it pressed even after you release it. So I only lasted an hour and 16 minutes.

    crazytetris.jpg

    But seriously who would ever play this for a long duration. It hurt my eyes just for the 2 minutes I tried playing seriously. Maybe that means I need a higher resolution monitor with a huge projector.

    One of the first things I did when I was learning how to use LabVIEW was I would open the tetris demo in the example finder (Building User Interfaces/Acquiring User Input/Keyboard and Mouse/Keyboard Puzzle Game.vi) and I would tweak the game, adding rows or columns. This essentially did what this HD tetris does and makes the game less fun.

  4. So what handles the error from the "General Error Handler CORE.vi"? Does it recursively handle errors generated by itself?

    We have odd situation where an engine performs a cleanup before exiting, but if an error is generated during the cleanup it will handle the error by prompting the user then exiting. Of course if it tries to exit it will perform the cleanup, but if an error is generated during the cleanup it will handle the error by prompting the user then exiting. This cycle could go on forever.

    We have to be mindful of what kind of errors we might see, and what ones we want to retry on, and what ones we want to just exit on, and disregard the cleanup.

  5. I didn't realize that it needed any programming. But I've always wanted to look for a reason to use one of those NI USB DIO devices for a personal project (since they are relatively cheap)

    I know I could fit a Pico-ITX PC in there, then have a USB wireless adapter connecting to my home network. Then have LabVIEW running on the beer keg PC, and have it control a USB DO clicking a relay and turning on and off the lamp. Kinda seems like alot for turning on and off a lamp, and convoluted.

    Now that I think about it I should try to fit a PC in a mini-keg. Have it be fully functional with all the IO ports of a normal PC.

  6. I remember having this problem before. What is happening is when the user presses enter the new value in the string control is not updated before the event is triggered that the OK button has changed value. The easy solution is to right click the string control and enable "Update Value While Typing" Of course this could have a bad side effect if you are triggering events on the changing string control, but it doesn't sound like you are.

    EDIT: sorry you said you were using a numeric control, in that case I don't know what to do. I've played with it for a few minutes and it does seem odd.

    I setup the same example you mentioned, a numeric control, then an event for changing value of the ok button, then tied the return key to the toggle. After that I made a wait for 1 second, then read the value from the control and put it into an indicator but the value didn't update.

  7. Also I tend to use the OpenG tool Fit VI Window to Largest Decoration, and then I will put down a Recessed Box decoration over the entire window, so that it will resize to that at run time. When developing there is no place to Shift + Right Click in the window, I tend to have to scroll up, to a place where there is no decoration, then Shift + Right Click, then scroll down. Really annoying, hope they fix this is the next version of LabVIEW.

    BTW I don't like the auto tool either, the person who first showed me LabVIEW told me to use Tab to switch tools so that's how I learned it.

  8. I think that by letting NI employees take the certification test, the tests themselves will be improved for reasons just like this. When I took the CLAD I remember a few questions that were a matter of opinion.

    I can't remember the exact wording but it was some thing like which method would you use to save a set of recorded data? Binary, ASCII, TDMS, or some thing else. The answer highly depends on what you would like to do with the saved data, if it needs to be user readable I would use ASCII. If there is a security issue with not wanting anyone to tamper with the file, I would use Binary. If the data was a large file with complicated data types I may look into TDMS.

    By having NI employees run into these problems maybe the tests will be less opinionated.

  9. QUOTE (Tomi Maila @ Jan 26 2009, 04:10 AM)

    To really be able to visualize block diagrams online with Flash etc, the block diagram structure would need to be exported to something like XML and images for each object within the XML would then need to be exported individually.

    That would be really cool in that from there we might be able to produce some kind of open source standard for saving a LabVIEW VI. I heard there was a topic a while ago to save a VI as ASCII art, but it didn't go anywhere.

  10. QUOTE (sachsm @ Jan 21 2009, 10:45 AM)

    This is not your 'fathers' pipe control. It has alot of extra smarts to add connected segments

    and has some interesting programmatic features.

    Wow I guess so. I opened this up and figured it was just a boolean with the images for TRUE and FALSE replaced with a picture of a pipe (that was blue and light blue)

    But you said it had smarts for adding connectors, so I held Ctrl and tried making a copy by dragging the pipe, but it bent where I clicked it. I then realized you can Ctrl click on the end of the pipe, and it will bend depending on what half of the end you click on. I'd also be interested in knowing how it was made, not that I have a use for it.

  11. I'm sure this is just for playing around but I must say you are very bold to try to develop LabVIEW code in a beta operating system.

    I would also recommend trying all the different compatibility options by going to the properties of the executable. Never used Windows 7, but Windows 2000 up to Vista has it so I would assume they didn't remove that feature.

    I'm sure when Windows 7 is officially released NI will release a patch or something if the installer still doesn't work.

  12. QUOTE (crelf @ Jan 8 2009, 12:28 PM)

    Gilligan's Island was before my time :)

    Well yeah me too, but I remember watching all the episodes in syndication after I got home from school as a wee lad. (good thing this is in the LAVA Lounge or I might say we are off topic)

  13. I've been working in 8.6 for a little while and I notice something similar. I will open the project and immediately it states that there are changes (the asterisk) If I perform a save all it goes away. One time I clicked the "List Unsaved Changes" and it states that some attributes were changed in the project.

    Out of curiosity what does LabVIEW state is the changes in your project?

  14. Just here to add my 2 cents, this won't work for all situations (like other operating systems) but could you use a windows DLL to act like you are pressing keys on the keyboard? Like in your LabVIEW program ask for the user name and password, then call Skype, wait for the login dialog to be active, and send the user name and password as keyboard keys (with tab in between) then return.

    This doesn't use any kind of API, and is very prone to problems (like if Skype happens to change the login dialog) but for a quick and dirty solution I think this should work.

×
×
  • Create New...

Important Information

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