Jump to content

hooovahh

Moderators
  • Content Count

    3,011
  • Joined

  • Last visited

  • Days Won

    213

Everything posted by hooovahh

  1. On the unbundle of the error cluster check to see what the error code number is. If the error code is equal to the known error code for having no registry key to read, then clear the error and write to the registry the date plus 15 days. As for how to calculate what today's date plus 15 days is, take the time stamp and add 1,296,000 to that number (wire the primitive add to the time stamp and add a double with the value of 1,296,000 to it) if you were wondering there are 1,296,000 seconds in 15 days.
  2. You can convert the time stamp to a string then write to the registry. Then convert from string back to time stamp when you read from the registry. EDIT: The name of those primitives is Flatten To String, and Unflatten From String
  3. QUOTE (jcarmody @ Apr 3 2009, 01:08 PM) I do not remember that shirt in that movie...it has been a while since I've watched it all the way through, I mean its on TBS about every other day. That did remind me of this one (the sticker on the right) As for sequence structures, I only use them for really quick and dirty prototyping and for timing situations. Like I want to know how long it takes for a set of steps to take place so I'll put a stacked structure on it, then take tick count at the beginning and end. I know there are better ways to do it (like with OpenG tick count if my code has an error in and out) (or using a functional global that runs at the beginning and end)
  4. Wow that is definitely cool. Without giving away any secrets how does it work? I mean what if the COM number for that USB to Serial device, is being used on the PC already? Will it change the the COM number for the device which is using that number?
  5. hooovahh

    Alfa String

    QUOTE (alfa @ Mar 31 2009, 06:55 AM) When I'm bored I think about things too, but I don't think I've ever wondered what capitalist and communists have in common. "Why is the sky blue?" "What are some good birthday gift ideas?" "If I had enough money to retire right now would I?" "Where in the world is Carmen Sandiego?" but not that.
  6. QUOTE (Val Brown @ Mar 30 2009, 04:44 PM) I'd disagree it looks fine in my browsers (Firefox 3.0.1, or IE7)
  7. Y-e-s [Enter] Y-e-s [Enter] Well, give me a Y, give me a…Hey! All I have to type is 'Y'. (to Marge) Hey, Miss Doesn't-find-me-attractive-sexually-anymore, I just tripled my productivity!
  8. QUOTE (Yair @ Mar 23 2009, 03:09 PM) Totally thinking the same thing but didn't want to reply to a legitimate question with just that. At work here we had a new hire who was born in 1990. Don't get me wrong I'm not much older than him but that still seemed weird to me.
  9. I haven't worked with FPGA much but the only way I've ever been able to accomplish what you want is using local variables. "In FPGA local variables are your friend" - My boss When you want one loop to send some data to another loop you can set a boolean which the second loop is watching. When that boolean is true you can have the second loop grab some data from a local variable. It's not as easy to follow as the state machines we're use to, but it works. Take a look at this example (a poorly thought out one, but one none the less) I realized after making this example it is a poor design of an alarm system. If an alarm happens when the system is handling alarms, it will be cleared. Also Arrays in FPGA are very costly in number of gates and they should be avoided when ever possible. But in any case I hope you get the idea on how I some times pass data from one loop to another.
  10. QUOTE (PaulG. @ Mar 19 2009, 01:37 PM) Why be afraid of open source? What's there to be afraid of? I don't like the built in LV zip functions, I haven't had much luck with them even on the simplest functions. Also for advanced features...there aren't any. If nothing else use the OpenG ones. But if you want high compression use 7-Zip.
  11. You won't be able to accurately recreate a crank (or cam) shaft signal in real time using a non-real time operating system. Basically if you're going to use the outputted signal on a analog out card I don't think you'll be able to get the data out fast enough. If you have an engine spinning at 7000 RPM and you have 40 teeth (if there were no gaps) that means you'd need to change the voltage over 4000 times a second, that's every 250 microseconds. (all of these numbers are just estimates) Also will the engine be changing speeds? If you just need to generate a signal that looks like an engine at one speed you could just multiply the two signals you've generated. The sine one goes on forever, and the signal with no teeth is just a zero or a 1. It should be a 1 when you want there to be teeth, and a 0 when there should be no teeth. When the two signals are multiplied it should be teeth...no teeth...teeth...no teeth.
  12. QUOTE (Justin Goeres @ Mar 19 2009, 09:38 AM) 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.
  13. QUOTE (crossrulz @ Mar 19 2009, 09:56 AM) 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?
  14. 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. 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.
  15. 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.
  16. 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.
  17. Thanks crelf. I'm definitely going to try to make another one for the gift exchange next year, but where am I going to get another empty mini-keg. I smell a beer night. :beer: :beer:
  18. Use the Position Property Node for that Scrollbar. Right click the Vertical Scrollbar, select Create, Property Node, Position, All. Then change that Property Node to a write, and wiring in the X and Y coordinates.
  19. Sorry I didn't mean to imply that this forum was free (as in beer) I know that there is a real cost in running this forum. What I meant to say was that I didn't know these features existed in these InvisionFree forums. http://invisionfree.com/ But I don't really know if this forum is using InvisionFree it just looks like the same forums that they make.
  20. Wow first of all I didn't even know this feature existed in these Invision Free forums. I am running XP SP3 I tried with Firefox 3.0.1 and IE7 and neither worked.
  21. 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.
  22. QUOTE (TobyD @ Feb 9 2009, 12:04 PM) That's a great tip thanks.
  23. 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.
  24. 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.
  25. Also not sure if people have seen this or not but NI has officially released their unit test framework http://zone.ni.com/devzone/cda/tut/p/id/8082 I haven't used it yet but I hear that it should become a common used tool around the office.
×
×
  • Create New...

Important Information

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