Jump to content

nicolasB

Members
  • Posts

    16
  • Joined

  • Last visited

Posts posted by nicolasB

  1. QUOTE (jdunham @ Mar 19 2009, 10:49 AM)

    Well what causes the memory leak is that you keep obtaining new references to the queue and you never release them. It's perfectly acceptable to look up a queue by name. It's not as fast, of course, but if the wire is unavailable, then by all means use the name, and it's still pretty darn fast.

    But when you are done, you need to release the reference. The queue itself will not be destroyed until all its references have been released (or until your top-level VI stops executing). Your code should generally have a Release Queue call for every Obtain Queue.

    Hi jdunham,

    thanks for the explanation. With this knowledge it makes sense and could be a useful functionality!

    regards,

    Nicolas

  2. I created a queue somewhere in my code and in a subvi somewhere else in my code I want to access this queue by its name (obtain queue.vi with Create if not found = False).

    This proceeding causes a memory leak.

    I know, that it's better programming style to wire the queue reference but the parameter Create if not found indicates that it should work.

    Attached is a small example which demonstrates the problem:

    Run both the AppWired.exe and the AppCreateIfNotFoundEqFalse.exe and control the memory usage in the task manager.

    Nicolas

  3. QUOTE (tilli @ Feb 25 2009, 01:36 PM)

    Hi,

    I have a String "11.6282" and i want to convert it into a decimal number 11.6282

    I have tried using "Decimal String to Number" but that returns a integer of 11

    Does any one have any idea?

    actually i have figured out how to do it

    Hello,

    use the Fract/Exp String To Number Function.

    Nicolas

  4. QUOTE (star @ Feb 23 2009, 12:30 AM)

    when i did it, it work however it takes a while to execute and i have to keep the write button on before i run it and leave it on until it the code finishes. Is it possible for the code to run faster and also when i run the code, i want to wait until the user press write button and then end when the information is saved to the file.

    The code will be faster if you open the file once and work with the reference.

    Look at the event structure to realize the user interaction.

    regards,

    nicolas

  5. QUOTE (jim85 @ Feb 19 2009, 11:25 AM)

    Hi,

    Thanks for your reply. I have designed a different VI now, but I can get the array elements inside the for loop only. I couldn't get the array elements value outside the for loop, one by one when the for loop execute. Because I have received this array from the S-parameters network analyser, I want to use those values to plot an x-y graph. So I have to break the array elements separately to draw this graph. Do you have any idea to move the value outside the for loop or any other method to break this array?

    I have attached the new VI with this post.

    Regards

    Jim

    Hey Jim,

    sorry, I think it could be very easy to help you if you'd explain what you're trying to do.

    Please discribe your problem more precisely.

    regards,

    nicolas

  6. Hello,

    I've created a variable manager in a functional global which generates a user event for each changed rsp set variable.

    The attached code is an example reduced to the minimum.

    It works fine but my question is if any of you see a possibility to get different names for the user events.

    Like you can see in the "MyVar1 and 2 Indicator.vi" both user events in the event structure have the same name and this is very inconvinient when the number variables/events increases.

    regards,

    nicolas

×
×
  • Create New...

Important Information

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