Jump to content

didierj

Members
  • Posts

    363
  • Joined

  • Last visited

    Never

Everything posted by didierj

  1. As far as I know you'll have to program the stuff yourself. Maybe by googling you might find something that you can modify to your need. I suggest to make yourself confident with the string primitives ("Match first string", "scan for tokens" could be good to begin with) and recursion. Recursion is needed to go through the unknown number of paranthesis and find the order to execute the operators (AND has higher priority than OR: "a OR b AND c" == "a OR (b AND c)").
  2. Were you in an anterior life a cat? ... or to explain it in computer language: the last owner did not a HD-wipe... :laugh:
  3. Just stumbled over such an annoying thing :thumbdown: : In the code I use the primitive "in range and coerce" to check if "deviation" (modified meas-value) is in between "lo tol" and "hi tol" (including limits). When doing so, LV reports that the value is out of range. But the user, who usually sees 3-4 significant digits (in the fp-indicator) thinks the value is in range.
  4. Agree. I haven't seen the code (since I don't owe LV8, only LV7.1), but a frequent problem when performing serial/GPIB/... communication is speed or better slowness of the port. Make sure you have either (like Phil described) delays inserted or have set port timeout long enough or (if applicable) have set termination character. There must be demos in the examples (also include the online examples from in the example browser).
  5. Could almost have been: here :beer:
  6. didierj

    Jesus

    When I want something and the salesman tries to please me in addition, then it's like the whipped cream on the cake. Depends on your believings. Old natural religions placed different things beside the person who died, so he/she could take them in the "new" world. In other religions you'll find these things again, because you rebirth. ...but since I haven't read your book (and won't have time to read it the next few years due to my family and pets) I doubt I'll take that with me when I die .
  7. I never get the error "Property Node (arg)" but a "Null window". This happens because main2.vi isn't set to open FP when run. After setting this property the example works fine.
  8. could have guessed, since it's in your profile. Nice to see that you found the solution yourself :thumbup:
  9. didierj

    Jesus

    But by pretending that 97,7% of humans have a low IQ he is destroying all his promotion efforts (not that I would count myself to these 97,7%, most probably like everyone in this forum ). PS: This guy reminds me an older women in our country who once fell of a horse and now wears a white curtain, whirls in a bathtub filled with 2 week old water and has already pretended n times the apocalypse (sorry alfa).
  10. Congratulation also from me. PS: crelf, you are also not far away from this milestone.
  11. To handle events from buttons/values/enums... you only need an event-structure (witout timeout) surounded by a while loop. All the events of a FP will be handled by the same event structure independently of their position in/out of a tab/cluster/... Nesting events is possible but error prone, and doing it just because the controls are nested (in a tab) is IMHO really bad wiring. Use the timeout case for things that have to be done repeatedly (eg. update a time indicator or pressure/temperature/... indicator), but NOT to poll controls, for that you have the event structure. As reference also check the examples. EDIT: ...yes, please upload your example Didier
  12. Something for your next goop project that will always remind you your LAVA-mates: :laugh: Download File:post-253-1150352215.ctl
  13. If you align the whole office API tree on msdn I doubt it would be less than the 1141 pages.
  14. Most probably because NI began this way in the ini-file library.
  15. Try the "decimate array" primitive in the array palette.
  16. I can second this. And print the error-window you get, it gives quite some info which sub-vi's are missing or what is the source of the problem. Also, have you checked if you haven't installed any toolkit on your PC that is missing on the laptop (haven't heard of a "WignerVille Transform" in the standard package)?
  17. This thing must consume more than an airplane :laugh: Having a gas station just across the street (of my workplace) and looking at the gas price, I'm really happy with my good old coal barbeque... although I couldn't use it this year, we had 10
  18. You'll have to make several processes, that run separated from each other. Communicate via queues or notifiers. Since your PID-task has to run 150 times a second (and most probably hiccuping won't be allowed due to the control work it does) and actual "office"-OS's are in no way "realtime" capable, I would recommend to perform the DAQ- & PID-tasks on a realtime system, like RIO: Combine the DAQ in/out and PID control into one loop and run this loop in the RT-environment. File-IO and ion calculation can be done by your PC. Communication between the two environment can be done with dual port IO or globals (even that globals are not "realtime" in their core, they are sufficient when you have a loop that runs at 150Hz) To combine the two sampling rates between DAQ1 and DAQ2/3 you have different options and will depend on how you build your system. I don't know RIO very well but think that different sampling rates are not a big deal for it. It is also doable with a normal DAQ-card, I did it a few years ago with a E-series card (at these times they were known as MIO-E-16) and... wait was it LV5.x . Finally if your budget allows it and for simplicity you can put 2 cards in your computer.
  19. I think you are looking for a "chart" instead of a "graph". The chart holds a history of the data. So just feed in the new datapoint and it will be inserted on the right by shifting the rest to left. Set chart history length (rmb) and x-axis scale to your needs. Unfortunately it doesn't exist as xy-graph (x-axis is always time or a monoton growing number). oh, almost forgot: you'll have to insert the limits as point each time you insert a data point, or they are also shifted left outside view.
  20. Me too... (drum rolls) that one?
  21. You can do it without timeout. The "wait on notification" returns if the notification is fired or when destroyed. On last the primitive "wait on notification" returns with an error. Use it for your advantage and surround your work in the loop with an if state. When no error is returned by the notifier, then do the work and loop back, when an error is returned do nothing and stop the loop. Repeat this for every loop. Now have a 17th loop with the event structure that waits for user interaction to either fire a notification or when stop button is pressed. In this state release all notifiers. Download File:post-253-1148388229.vi
  22. Could you make a similar approach with "beer"? :laugh: Another trend I see on the graphics: While LV searches decrease significantly during christmas holiday, sex searches increase significantly... sooooo sad
  23. Sorry, a bit off topic but... in the second step of the app builder/installer you add 80Megs of runtime-engine... to my opinion a farce :thumbdown:
  24. I'm not aware that there is any setting that could disable it, but you can do it "by hand" and using the event structure: With char you get the ascii representation of the typed key. 44 = comma 45 = minus 46 = point (as decimal, depends on the computer "local settings") 48-57 = values 0..9 maybe you need more, eg. for <ENTER>. Didier
×
×
  • Create New...

Important Information

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