Jump to content

didierj

Members
  • Posts

    363
  • Joined

  • Last visited

    Never

Posts posted by didierj

  1. It starts all innocently with a simple "find and move red ball" application next thing you know ... I Robot!

    I'd prefer: "find and chase the cat" (...that is meowing under my window) :laugh:

  2. Finally, all answers and suggestions will be greatly appreciated. Will it be worth it if I pay all the money to get the CLAD and CLD certificates?

    It depends if you're going to use LV in the near future, e.g. find a job that involves LV.

    The LV-certificates have an expiry date. After 3 years you loose your certificate. To keep it you'll have to redo the exams.

  3. maybe some japanese peppermint oil is easier to get and more effective than a cat chasing robot (how will you manage it that it can climb up the trees?). Cat's really hate that intensive smell of the peppermint oil and immediately disappear ...

    fortunately there is no tree in the next neighbour, because the neighbour has his cow-stable with runout (correct for "Auslauf"??). There are just a few bushes, but they not big enough to hold a cat.

    ... otherwise I thought to adapt a paintball gun or so on my mindstorm... :laugh:

    ...I know it won't be "kid-compatible" anymore, but funny to see "pink-pointed" cats... :laugh:

  4. Well using the Cluster will be much easier to figure out what element was clicked but if you must use an array, you should register the "array element" for the mouse up event and the math will be much cleaner when trying to calcluate which element was clicked because you never need to use the mouse click position, it will simply return the left/top position of the control clicked upon

    See below

    post-208-1154621312.jpg?width=400

    Haven't been aware to use the array and dynamic event in such a combination, really nice :thumbup:

  5. ... still is practically the only graphical programming language on the market...

    that's not true, there are (to my knowledge) at least 2 products that use graphical programming:

    - Simulink from Mathworks

    - Softwire from Control Engineering, see this

    ...and yes, NI fought heavily on courts to let the two other die:

    - where the status in the lawsuit against Mathworks is, I don't know, but Mathworks still sells Simulink and it has a strong community (especially in education and medicine.

    - after lawsuits from NI and back from Control Engineering (Softwire), finally NI bought Control Engineering. But I never heard that Softwire is going to be shut down. Softwire is made for Visual C++.

  6. Thank you everyone... :worship:

    Congratulations!

    This new process may cause your utilization to increase exponentially (it did for me!)

    post-949-1152730840.gif?width=400

    I haven't understand your implementation at it's full: If child 1 (or 2) is not happy, you increase mom (or dad) by one... does this mean that mom(or dad) gets exchanged :blink: , or does this number mean the wanted childs, or :question: ?

    Sounds like a system that requires constant maintanence!

    In german we say: "This, you can tell it quite loud"... The longer it goes, the more maintenance it needs (also almost like an old car).

    I'm a bit afraid of the bugs that will come up in this "child process" during the years.

    And that sounds like a definition of marriage. I don't think OO will get you out of that.

    Let me add my Congratulations!! as well. We are expecting our third in a couple months. Lots of fun, though I must say that an exponential increase would be a bit much.

    Having 3 childs gets a bit more complicated when you want go out for dinner (with your family). Usually tables are made for 4 persons but seldom for 5 :thumbdown: .

  7. After almost 9 Month of planning and a painful installation, the child process 2 began to work at 21:13 on my main Family system :laugh: .

    Yep, I'm again a happy "Dady".

    Junior, with name Jonas, and Mamma go both well, although a bit tired.

    post-253-1152709704.jpg?width=400

    :beer: cheers :beer:

    Didier

    ps. Michael, I haven't forgotten the picture from Vanessa (my first child) with the LAVA T-shirt. Unfortunately the camera, where the picture was in, got stolen :thumbdown: . I have an update on my "old" camera (the one which you fill with these chemical strips), but the film is still in there... should be filled in the next days.

  8. Can I just rewrite the LabVIEW provided single precision saving function to save double precision files? I've tried doing that the naive way by just changing the single precision arrays to double precision, but that resulted in garbage results. So if anyone has any suggestions on how to save data to a double precision binary file I would love to hear them.

    Don't forget to rewrite the data read functions with double precision, or, indeed, you end with garbage: The file read function does not care what datatype is in the file, YOU feed the datatype to the function.

    So, if you write a double-precision array to file, LV alignes the elements as 8bytes, if you read single-precision from this file, LV assumes that the file has 4bytes aligned as elements, resulting in a big mess. There is NO typedef check and/or conversion in the file read function.

  9. Essentially, I have a table control. This is used to hold all sorts of data and parameters for a test program I have. I need to eventually extract one row from the table (index array?), change one element in that row, put it back in the array, and then send that new array to an indicator. The problem comes from this sequence being in a for loop. After the first iteration, I need to use the indicator table as my control table. Feedback works until the last iteration, when my changed row does not appear at the indicator.

    Would it help to write back the modified table into the original table? If so you can achieve it by right-clicking on your table-control and select Create/Local Variable.

  10. EDIT: Well, I've found out that I actually do have more precision in my results than I orginally thought; however, there is still a problem which may actually be the expected result of computer arithmetic. The conversion function will convert a string such as "+5.748901924922E+002" into the number 574.8901977539. Is this just a result of the inherent lack of extreme percision in floating point numbers represented by a computer? I know the amount of precision one can achive is limited, but I didn't think this number would reach that limit, though I could very well be wrong. Once again, thanks in advance for any and all assistance.

    I just tried to convert your number. When I display the converted value with a SGL-Indicator I get "574.899047851562499000", but when done with a DBL-Indicator I get "574.8990192492200320...". This means that SGL has not enough bits to represent the value with this precision.

    You should

    - either change to DBL precision

    - or think about if you really need that many digits (usually 6 digits are enough; exception is physics, where sometimes values can't be precise enough ;) ).

  11. The other thing I've started doing (artistic license only) is to label my loops, change the background and forground of the label to the dark grey of the loop, Move the label into the inside upper left and use a font that is bold and white. I just like how it looks :)

    :thumbup:

    I use this technique also on case structures and include the main tasks that are performed in the case.

    eg.:

    "initialisation failed:

    - report error

    - ..."

    "VISA read ok:

    - decode string

    - check events on GPIB

    - write log entry"

    ...but I haven't done any recolouring, just a transparent frame.

  12. ...inside a sequence frame...will use 3 sequences frames...

    Uhh... :blink:

    Sequences only serialize the execution of the primitives/sub-vi's. BUT since the VISA-primitives have error-in/-out, use them to serialize operation. As a bonus, subsequent operations will be skipped, if an error occurs somewhere.

    Heavy use of the sequence structure is considered as bad wiring, better use Error-cluster, or (if appropriate) just let independent tasks run in parallel.

×
×
  • Create New...

Important Information

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