Jump to content

didierj

Members
  • Posts

    363
  • Joined

  • Last visited

    Never

Everything posted by didierj

  1. You won't find it, since it is part of a set of features, since LV7, that is "jet" not released from NI and therefore reserved to NI people , but... NI forgot to password protect a few VI's (where they use these features), and now, people know of it. See topic Automatic Code Generation, How to DIY Auto Code Generation!! Unfortunately In LV7.1 they closed these backdoors. If you have a LV7 installation you can copy the features from the vi's mentioned in the link to use them. If you have LV7.1 copy them from the examples provided in this forum. Didier
  2. To change the color ramp right click on a marker (the value, not the ramp itself) and select from the pull-down "Marker Color" (see attaced image). On the pull-down you also see "Add Marker" if you want to define more colors and "Interpolate Color" if you want the colors changes smoothly or not. Didier
  3. Do you mean the files are not included in LV7.1, only (I suppose) somewhere on a NI-server?
  4. Before you load your VI, rename your "Plv.dll" to something "Plv.dll.x" so LV doesn't find it anymore and asks you again to select it. Afterwards you can rename it to the original. Make sure to add a "<dot>something" at the end, so LV and Windoze doesn't recognize the file as a dll anymore. I use this system quite often, especially when I transfer a project from e.g. LV6 to 7 and don't want to have the instruments and other commonly used (in LV6) vi's also saved as LV7. Didier
  5. With the mouse, when I go over a "hidden" scripting property, the context help tells me (among other informations): Select the LabVIEW Scripting Properties and Methods Help menu item from the Help pull-down menu for more information. Does anyone know anything about this help? :ninja: Or, did NI already do the job for a future LV version, when the scripting features will be released? :thumbup: Didier
  6. I must have overseen some setting :headbang: Since LV 7.1 when I want to write "#" character, in the block diagram LV asks me if I want to show the grid and on the front panel nothing happens. How do I switch this new shortcut off to use "#" as character? Didier
  7. In your case it does not depend on fonts but it is due to the translation from english to german. This vi was written with an english LV environment and you now imported it in a german LV environment. As a general rule in computing, a translation from english to german or french needs 50 - 100% more place. That's why your elements overlap each other. The code itself isn't touched. It just looks crappy and needs much more place when programming. That's why I switched my LV version to english (as a side-effect it is even a few bucks cheaper). Didier
  8. Basically I want to implement a list, the user can fill with numbers. Seems simple, but... - The list just accepts number-keystrokes (0...9), system decimal point, <enter> or <tab> to go to the next line. - The list doesn't accept empty lines - vertical scrollbars, since the number of elements is unlimited, but I just can display e.g. 5 elements. - 1 column, n rows Now the problems I encouter are: - either I create an array, then the list just accepts number-keys, but implementing the scrollbars and <tab> is a pain! - or I implement a table, then I can intercept the keystrokes with a "key-press?" event, but how do I find out which is the system decimal point, and how do I detect an empty line? Has anyone already solved one of the solutions (I would prefer the second, which means much less coding)? Thanks Didier
  9. Uhh... I thought we were in a LabVIEW forum? ... by the way, plinius, LabVIEW version 1.0 wasn't ever released (but I think this is more a problem for Michael).
  10. It's not just the event structure that doesn't allow selection of array elements, but all property/methods applied on array elements fall into this topic. It it an intended behaviour. Since at designtime you don't know how many elements will be in the array, and at runtime the number or elements can change, you would get problems when wanting to change the property of element that doesn't exist anymore (how would you create an event on the 25th element of an array when your array just hold 20 elements????) On arrays you can just act on the properties/methods of the element type. not the elements itself. The events (e.g. Value Changed) react on the elements not the types - so not possible for array elements. Didier
  11. 1. At which speed do you transmit data over the serial port? Sending one Byte over the serial port at 9600 baud needs 10ms! At 57600 baud needs .17ms Make sure your serial port writes to 57600, 115200 baud or higher. 2. To find the process that consume the most time either use the VI-profiler (Menu: Tools>>Advanced>>Profile IVs...) or place Tick Count's in your block diagram (with e.g. sequences to have the Tick Count readed at the whished time), subtract the values from different Tick Counts. VI-profiler is based on vi, with Tick Count one can "profile" parts of a vi. Didier
  12. It is usable (in some ways), when you're debugging and don't want to step through your whole code. So you get an idea where and when your error occurs.
  13. The answer from NI can be found in this post: NI censoring the devzone..., FYI
  14. As Michael stated, wire the references to the "bundle" not "bundle by name". Now on the output of the "bundle" right click and create a control. You directly get a correct cluster-control on your front-panel thich you can copy-paste to your sub-vi. Afterwards just delete the control on your main-vi, since it's not used anymore.
  15. You're in the same house... In order to make sub-vi's sequencial without the sequence frame, wire the error cluter in and out of every sub-vi. In the sub-vi, wire the error in to a case structure that surrounds everything. This way you wire the error in/out clusters together in the main-vi. Also If a sub-vi produces an error, all the subsequent called sub-vi don't waste time on operations that are then useless. For further informations see LTR (www.ltrpub.com) Volume 7, Numbers 1 + 2. There are rules on good wiring ("rules to wire by"). There is an example of using the error cluster. Maybe there is also something in the online-help. Didier
  16. you're right (first think, then write...)
  17. Seems that the content of the mentioned VI is running under "intellectual property of NI". Although the censuring is legal, I find it not best for NI's image (seen from the developer side). I don't know the details, but it seems that someone just wanted to use a tool NI wrote and not having to reinvent it. Didier
  18. That's the solution. If your data acquisition needs to perform continously without interference of the front-panel activity you'll have to run them in parallel... since LV architecture let you program parallel loops. Use queues to transfer data between the two loops. Didier
  19. I think you're making things much toooooo complicated. To modify the content of a control in a sub-vi, just create a reference from the control and feed it to the sub-vi. In the sub vi, use this ref to modify the value/property. In your example add a bundle before the sub-vi, feed the cluster to the sub-vi, and in the sub-vi unbundle your cluster. Didier
  20. Or might this be an approach: Didier
  21. When you make canges on the data-cluster in GOOP (downloaded from NI) you'll have to also re-save the object reference. Otherwise you have broken methods. Didier
  22. Even with "Time-Critical" your app isn't proof of missing 4:00:00. The only way to be sure not to miss a time would require you to run a real-time operating system. On Windoze (probably Unix and Mac also) you have always tasks from the system that can have a higher priority than your LV "Time-Critical" process. A temporary high network, Harddisk traffic or complicate screen build up (streaming or rendering) can freeze your computer for several seconds. On W2k/XP systems theese are rare occasions, but if your network switch destroys itself (happend to me: while I was copying big file to a network drive a network switch collapsed, my computer was freezed for more than 15 mins) So far, the best method is the notification method. Didier
  23. didierj

    I'm Daddy

    Thanks to all, forget to say, she was born last Friday (15.10.2004). It's strange how suddenly one feels better than the whole world when he gets his first child... For everyone who didn't tried it yet, It's a great feeling!!!! I know and already upgraded my hardware. But I fear I would have to repeat it several times in the next 18 years... For the next two weeks I'll try to get organized with my wife, afterwards I have to find an empty bureau with a door to recover from the sleepless nights (your co-workers hear your snores over the books- and ring binder-walls, since in switzerland we do not know cubicles).
  24. didierj

    I'm Daddy

    Hi Everybody, May I introduce the newest member of my family: Her name is Vanessa, weighs 3.4kg (makes 7.5lb) and already educates her parents... :beer: Cheers :beer: Didier p.s. I'm the proudest daddy in the world.
  25. The only way to do it in LV (from version 7.0 up) is to use a subpanel. Creating custom controls the way known from text-based languages is not yet possible. For further informations on subpanels look at the online help and the examples (menu: File>Find Examples...). Didier
×
×
  • Create New...

Important Information

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