Jump to content

Francois Normandin

Members
  • Posts

    1,210
  • Joined

  • Last visited

  • Days Won

    47

Everything posted by Francois Normandin

  1. I've been trying to create a cluster dynamically using scripting, starting from a template VI that I modify before I launch it (Run). It works fine in the development environment but I just can't make it work in EXE. Since I cannot add or remove controls and indicators while at runtime, I thought I'd save my *.vit in the same folder as exe, call it, add the controls dynamically and then "Run VI". I guess it was too simple because it crashed my application everytime... Can I do that at runtime at all? I know some properties and methods are not available at runtime... Are the OpenG's "Additional Application Controls" VIs available only in the development environment? Here's a snapshot of what I'm trying to do.
  2. QUOTE (Imagineer @ Dec 11 2008, 01:44 PM) Hi Tirthankar De, To determine the types of controls/indicators in a cluster, you can install the OpenG cluster tools (green icons) and use the variant properties to get it. I often use this type of architecture to browse through a cluster: Download VIPM and you'll be good to start.
  3. QUOTE (Aristos Queue @ Dec 11 2008, 03:36 AM) <HailMary> Care to tell us when???? <\HailMary> Doesn't hurt to try...
  4. QUOTE (Aristos Queue @ Dec 9 2008, 11:02 AM) I was pointing out that it probably took a Star Wars fan not to know that the borgs' motto was "Resistance is futile" ... but you're right, if I were a real hardcore geek, I would have known it was from HHGG. Sorry for the confusion!
  5. QUOTE (crelf @ Dec 8 2008, 11:07 PM) I'm too young for those references... I must kneel before thee. :worship:
  6. I had the same errors once. Check this. It partially answers your question (dynamical dispatch), but not why Share Clones vs Preallocate.
  7. QUOTE (crelf @ Dec 8 2008, 07:13 PM) I can see you're a Star Wars fan... http://lavag.org/old_files/monthly_12_2008/post-10515-1228782281.gif' target="_blank">
  8. Hi Eugen, You've got two three VIs (at least) that have a Reentrant execution error. (Tasking_QueueStatus & Tasking_WriteAll & Tasking_ReadQueue) Change them to Share Clones and it'll resolve the errors.
  9. Somehow I don't think this is a computer automated reply... but the idea is interesting :thumbup: . It reminds me of MIT guys that created an automatic computer science paper generator, and some of those completely foolish articles were accepted to conferences (fortunately non peer-reviewed). It this case of doG (oups, a palindrome), I think a bot would make a lot of grammatical mistakes maybe, but not as many html style mistakes or orthographic errors as is the case . I would also be surprised if a bot could understand when it is being replied to explicitely, and when to ignore a reply that is not aimed at it directly. This could be the best coding challenge idea I've heard so far...
  10. QUOTE (Jarimatti Valkonen @ Dec 8 2008, 09:26 AM) You can't access any properties or methods for TCP in LabVIEW, they're not exposed. However, you can get the remote port and IP address when you use "TCP Wait on Listener". When a new connection is established, you get those properties along with the connection ID.
  11. QUOTE (orko @ Dec 5 2008, 05:57 PM) We sure don't want to have monkeys do our job, don't we? Could they?
  12. QUOTE (alfa @ Dec 5 2008, 05:24 AM) I'll buy your book if you can prove this: http://lavag.org/old_files/monthly_12_2008/post-10515-1228493456.png' target="_blank">
  13. QUOTE (Yair @ Dec 4 2008, 11:45 AM) So basically, you've overloaded the http://en.wikipedia.org/wiki/Operator#Convolution' rel='nofollow' target="_blank">Convolution operator to 2f+g? You're amazing! I hadn't thought of that...
  14. 5) Combine an existing control with the one you wish into a cluster. (if it makes sense) This way, you don't change the layout of your conpanes. The best way to achieve that is through Strict TypeDefs, if you happen to have one already. As previously said, so many ways to skin a cat... but if you don't need to: They're so cute after all!
  15. QUOTE (crelf @ Dec 2 2008, 09:00 AM) Nice... and especially the mood ring.
  16. QUOTE (Neville D @ Dec 1 2008, 04:16 PM) There were no difference (or sub microsecond) for unwired index or 0-wired. And I totally agree with your usage assessment. I, too, am lazy most the time... EDIT: I didn't try wiring the DeleteArray index with (length-1)... (If we did, then the output changes from Scalar to Array)
  17. QUOTE (OlivierL @ Dec 1 2008, 01:00 PM) It is easier, although my benchmarks show it's 3 times slower than the "Index array"("Array Length" -1) way. Averaged on a million operations with 100-element array, using "Delete from Array" resulted in a 7.2us execution time per loop, compared to 2.25us per loop for the "Index Array" method. Actually, other methods are faster too: 0.75 us/loop 0.234 us/loop 0.243 us/loop 0.425 us/loop 1.44us/loopBased solely on execution speed, you should use the IndexArray(Length-1) method... but reversing the array is not bad for a 100-element array.
  18. QUOTE (cromax @ Nov 27 2008, 06:42 PM) Last index = length - 1 And yes, if you don't wire any index, you'll get the first result (index=0).
  19. QUOTE (Justin Goeres @ Nov 25 2008, 10:49 PM) I thought the Windows equivalent "which" function was doing a recursive search too. I'm no expert on that, so I'll have to pass. <guilty>I never even worked on Mac or Linux...</guilty>
  20. QUOTE (Justin Goeres @ Nov 25 2008, 07:00 PM) There's a function in kernel32.dll to get the list of environment variables. (GetEnvironmentVariableA) Download File:post-10515-1227661495.zip (saved for LV 8.5)
  21. Here's a little help. Download File:post-10515-1227650429.zip
  22. Hi Dennis, it's totally doable. It's in fact much easier than you think it could be. Installing a card to multiplex your RS-232 ports will give you as many COM ports you need. Use Measurement Automation Explorer to configure them and use Instrument I/O Assistant to get started. (Instrument I/O palette) QUOTE (jgcode @ Nov 25 2008, 08:34 AM) Or daisy-chaining the equipments if some are compatible with this control method.
  23. QUOTE (miab2234 @ Nov 24 2008, 03:46 PM) It sure is Miab. And you'll find LabVIEW is a powerful tool to enable programming all sorts of things, from instrumentation, user interfaces, data analysis or management and much more. But the best way to learn, IMHO, is to tackle problems that are progressive and reflect best what is your current knowledge of the software. I suggest you try running the tutorials or have a look at NI examples that ship with LabVIEW. On these forums, you'll find great help with surprising rapidity and "volunteering" (is that a word?), however you should note a few things: a) your questions must be clear and to the point; b) you have to demonstrate a will to resolve yourself the problems before asking for help, such as showing us what youMve already tried; and c) it's an open-source community, meaning you'll find many pieces of code in the existing forums, code repository or wiki. Search those before you ask a question. You'll be surprised how we've probably asked the same type of questions you're asking right now. We all started as newbies in LabVIEW at some point. If you don't find it, then please go ahead and create a new topic. see you around,
  24. QUOTE (jcarmody @ Nov 24 2008, 12:28 PM) Like an homework assignment?
  25. QUOTE (miab2234 @ Nov 23 2008, 03:30 PM) First, you should make sure that the comparison (equal) is not always TRUE. In your code, the while loop will always stop after one iteration because you initialize the shift register to 1 and check if it's equal to 1. Of course, it will always output TRUE and stop your loop. To run continuously until you say so, use a stop button. (wired to http://lavag.org/old_files/monthly_11_2008/post-10515-1227479540.png' target="_blank"> )-- OUPS, too late
×
×
  • Create New...

Important Information

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