Jump to content

crossrulz

Members
  • Posts

    533
  • Joined

  • Last visited

  • Days Won

    21

Posts posted by crossrulz

  1. Yeah, gotta love those highly generic emails. It's an automated message that they send out. Could they sound less arrogant? Probably. But that's marketing for you. I usually just instantly delete e-mails like that and move on.

  2. QUOTE (Cat @ May 19 2009, 07:27 AM)

    My favorite episode is the first time (I believe) "I'm a doctor, not a fill in the blank!" was used. It was, in that case, "I'm a doctor, not a bricklayer!" I guess the "damnit" part would have never made it past the censors. Extra points to anyone who can identify the episode without looking it up. :)

    It sounds like the episode where they find the silicon life form on that mining planet, at the end when Bones is trying to heal the "mother". Cause then Bones pops up and and says something like "Maybe I am a bricklayer" once he healed the "mother's" phaser injury. I couldn't tell you the episode name, but I remember it being on the first season.

  3. QUOTE (Gavin Burnell @ May 12 2009, 09:43 AM)

    Actually I did it for real http://forums.lavag.org/who-will-help-me-t9851.html&p=40521#entry40521' target="_blank">once last year but nobody else got it on the act (possibly because writing artisctically bad code is hard work !)

    Dude, that is hilarious. I just spent the last hour looking at it figuring out what you did. I can tell you wasted a lot of time puting it together. On a side note, this would be an excellent example for a lecture on refactoring.

  4. QUOTE

    No way to do that. THis computer is so old it has no usb. It does have a floppy but I don't have one on any other computer. I have no idea what the format is its a labveiw file. I just don't understand how this simple task in Labview 8 is such a bastard in labview 5.

    I have had to do this with some computers. Take out the hard drive and make it a secondary hard drive on a newer computer. As long as you don't muck around with what is actually on the hard drive, it should go back into the old computer and run just fine. I am also assuming you have another computer with ATA hard drive connections and not the SATA. This is also a good way of getting into people's "My Documents" :ninja: .

    My next question though is how was this file generated in the first place? There has to be a VI or something somewhere that was used to generate it. Or if all else fails, make your own new table and change the code to be able to read your new format.

  5. Hmmmm....this VI looks very familiar. Is your boolean "Send Parameters" is set to TRUE? Are you referencing the right COM port VISA session? Is there some weird error coming out of the Serial Port Setup VI? These would be the software problems possible. I am assuming that you are sending out the right data byte since I previously helped somebody else with this exact VI (must have gotten it from a teacher). After the software checks, I would check your wiring (TX to TX will not work well) and then your microcontroller code. My gut feel is your boolean is set to false and therefore you will not send out the byte.

  6. from the NI help

    QUOTE

    Error -1950678985 occurred at an unidentified location

    Possible reason(s):

    LabVIEW: Invalid variable name. The name of a variable cannot start with a single quote (') or contain a backslash, forward slash, or any of the following backslash '\' codes: \r \n \t \b \s.

    Just to check to see if it might be the student version or communication error, you might want to make a very small program that just reads and writes a few variables and see if you get the error that way. If this works fine, then I would start looking at the code really hard.

  7. This is starting to become a heated debate. People have a tendency of finding a good tool and then try to use it as a cure-all. We have all done it. I think what ShaunR is trying to say is that a lot of people on this forum will instantly say to use a queue without much thought for any other tool. Yes, queues are one of the more powerful tools in LabVIEW. Are they for every situation? Absolutely not. They can easily complicate things, like any other powerful tool. But as far as passing data between loops, I'd say that, in most situations, queues are the best route to go for mostly two main reasons: 1. They do not lose data (every element written into the queue will be available for dequeue) and 2. if there is no data in the queue, there is no CPU usage for the dequeue loop (assuming infinate timeout). Polling globals uses valuable CPU time. I have to put code on computers that are 10+ years old, so I need all the CPU time I can get.

  8. QUOTE (postformac @ Apr 24 2009, 02:49 PM)

    Is there any easy way to get it to add column headings for the output file, or do I need to do this manually by ensuring that the first item of data for each array is the column heading?

    Yep, put the heading as the first row in the array. In case you didn't know, you can use the comma delimited file and make the extension a .csv (instead of .txt) and windows will automatically think it is an Excel file.

  9. QUOTE (asbo @ Apr 24 2009, 11:35 AM)

    You mean like this:

    post-11268-1240591236.png?width=400

    Already in there. Darren had a nugget about these case structures here. Check it out. There's lots of good info in it.

    EDIT: I just figured out that you didn't want to include the 10 in that case :headbang: . That would be interesting. But the case structure can't handle floating points, so therefore you would have to use "1..9".

  10. Move your wait from the case structure to the while loop and change the wait time to 250ms. This will cause you to wait 250ms before even checking the COM port. As for appealing to the eye, I recommend changing your graph into a chart. A history will be available then. Also spend some time cleaning up your code. I had to spend time cleaning it up just to possibly understand what the code was doing. Here's what I did with it:

    post-11268-1240578157.png?width=400

  11. QUOTE (Cat @ Apr 24 2009, 08:12 AM)

    Argh! I'm going to have to wait until I get home tonight and can see this on a computer that's not controlled by Big Brother. :headbang:

    ditto. But I found it on you tube awhile back (I'm assuming I'm thinking of the right video). Also hilarious is the engineer's guide to cats. Even my wife liked that one.

  12. QUOTE (Chr1sG @ Apr 21 2009, 07:56 PM)

    Perhaps this again is a reflection of my education making me too literal!

    By the way, have we settled on an answer?! (Are array elements ordered?)

    Yes, you are being too literal. I get in trouble for that too.

    And my honest opinion is that they are asking if the array elements are sorted. If I am correct about this, then array elements are not always ordered

  13. QUOTE (TobyD @ Apr 21 2009, 11:05 AM)

    Somewhere there exists a video of me and a friend at a high-school pep assembly holding our 48GX's up to the microphone so the entire school can hear how we programmed the schools fight song into our calculators. It was a big hit...to our reputations. I wrote a note sequencer and my friend entered the song in a note,duration format.

    :worship: And here people thought I was the big geek in high school when I programed my TI-82 to use unreal numbers.

  14. QUOTE (Chr1sG @ Apr 21 2009, 12:44 AM)

    Have I missed something?

    I can't see how there is any situation where only one statement is false :wacko:

    I'm not confused at this question at all other than what exactly do they mean in statement B. This is a very common question format in the US for "standardized testing". Maybe those of you who are not from the US just are not used to it.

    Which of the following is false?

    A. true

    B. true

    C. true

    D. Statements A, B, and C are all true

    In this case, D is not being checked for a false. It is a cheap way out of having three true statements and then still having a correct answer. Misleading? Heck yeah! But once you get used to them, it's not really that bad. You can thank the great US education system for this mess.

  15. QUOTE (ShaunR @ Apr 16 2009, 04:11 PM)

    That said, I'm not talking about the Serial Key (I've got one of those that covers everything) I'm talking about the activation codes since the development PC isn't connected to the internet

    I have to phone up NI and (always seems to be a girl called Sam.....lol) they look my details up and maybe a day later 25 e-mails come through with the activation codes which I then have to get to the other machine. Real pain in the proverbial 2-3 times a year especially if they miss hear the computer ID :P or I haven't upgraded all the items!

    You can get the activation codes over email from another computer. I've done the exact same thing and have the codes within an hour, usually 10 minutes.

×
×
  • Create New...

Important Information

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