Jump to content

dannyt

Members
  • Posts

    416
  • Joined

  • Last visited

  • Days Won

    12

Posts posted by dannyt

  1. Published in January 2013, this is the official directive on closing references: when you need to and when you don't.

    http://www.ni.com/white-paper/14393/en

     

    In your picture, the code shown is fine. Moving the Open and Close inside the loop would just create a performance burden. Moving only the Close inside would cause run time errors since the reference would be closed on the second iteration.

     

    If I wanted to go one stage further and put the Front Panels of these launched VI into a subpanel, I assume I do NOT want to close here at all but gather up the array of references coming out of the loop to pass into the "Insert VI " subpanel method as required. I would then need to close the full array of references when I no longer needed them for the subpanel.

  2. Hi, Thanks for the extra info. My system does work so I must be doing this correctly, by luck I suspect.So I have a top level typical event driven state machine system and it calls this subvi just before it enters the state machine while loop. If I understand what you are saying, I cannot make the calling of this subvi its self a dynamic call

  3. Hi,

     

    Quick question regarding my closing of my VI references, I suspect I am doing this wrong. Should I have the close reference inside my for loop and close it each time ? The code works fine I have been using it for a while now, but I was doing a review and noticed this.

     

    any comments please

     

    cheers

     

    Danny

     

     

    post-7256-0-93404800-1370612068_thumb.jp

  4. Hi,

     

    In the last couple of years I have taken over a large amount of LabVIEW code written in German, and I speak, read, write no German.

     

    To be honest the language of the IDE was NOT the problem, where the developer knew what he was doing and had written the code with style it was simple to understand and maintain (with a little help from Goggle Translate on the comments), where the 'other developer ' had no idea what he was doing and no concept of LabVIEW style the job was hell (and would have been even in English).

     

    The single issue that caught me out in terms of IDE language that I did not foresee or expect was  "localisation issues"  in particular  "use system decimal point (T)" input to certain LabVIEW VI's or default  use of "system decimal point" in others.

     

    use system decimal point defines the decimal separator. If TRUE (default), the decimal separator uses the localized decimal separator. If FALSE, the decimal separator is a period.

     

    In the past I have always written code on English PC's  and then run the built executable's on English PC's which use "." as the decimal point so I had never really given localisation any thought.

     

    I was stumped initially when I had an executable that worked OK in the UK but failed when deployed to Germany.  It turned out that scan from string function and some other VI's  were locale aware and in Germany the decimal separator is "," so my parsing of GPIB output was all wrong.

     

    The simple solution to this is place useLocaleDecimalPt=False into the executable's ini file at build time.

     

    hope this helps

     

    Dannyt

  5. Hi,

    I am working on Windows 7 using LabVIEW 2011.

    I have a PC with two NIC cards in it, plus the onboard LAN connection and I am trying to run Iperf from one NIC to the other, through a wireless system.

    To archive this I need to play around with the Windows route table to ensure to packets go out through the correct NIC. I found at one point in my experiments with this that, LabVIEW start reporting Not Responding messages, both when running my program and when in edit mode, LabVIEW was locking up for a few 10's seconds then continuing.

    It finally dawned on me that this was after I had completely clear out the route table apart for two entries I had put in. On replacing the localhost entries 127.0.0.1 back into the routing table this Not Responding issue went away.

    Does anyone have an idea what would be behind this behaviours ? I assume it is some sort of continuous poll to the Vi server by LavVIEW.

    Cheers

    DannyThomson

    (null)

  6. I was just adding a some links to YouTube clips demonstrating the usage of the WireFlow ProgressBar module and now I see it beeing referenced ;-)

    /J

    Thanks for drawing my attention to the WireFlow ProgrssBar I have not come across this before, it looks quite interesting and something I think I should find time to play with.

    Please can you post a link here when you have the demonstration clips on-line.

    cheers

    Dannyt

  7. I don't remember where exactly but it is similar to what bmoyer just said.

    As I said in a previous post I got dynamic loaded VI working OK in an executable with compile code seperated.

    BUT that was only after I moved away from the old LabVIEW 8.x.x layout format. While trying to get my system working I did at some points get an error message when running the executalbe that blamed the seperation of compiled and source code, but in truth I think the error message was incorrect /misleading and the real error was down to my paths finding and loading the VI correctly.

    Once I had figured that out everything has been working fine.

  8. I think the solution to this already exist as several people said in the form of the VIPM when it is used along side VIPC files.

    You could have on LAVA and NI community sites people's top VIPC files as voted for by you the public, this would give new users a number of examples of the types of configurations used by experienced user.

    The two problems with this solution are, one that not all good extras and add-ons come in the package format, however the use of packages is growing ever stronger. The second problem is that the VI configuration files are only supported in the Professional version of the VIPM and that in itself will stop then becoming a mass market way of sharing.

    I really like the VIPM but like ShaunR I still find it amazing that NI never came up with something like this as part of the professional version of LabVIEW

  9. Hi,

    I now always work with two monitors, I do not konw how I would live without two. I work in the same ways as hooovahh but use the free version of http://www.mediachance.com/free/multimon.htm.

    Our coding standard still insist that a VI block diagram fits on one standard screen, though we will allow a little left /right scrooling on some occasions. This is because we all have two monitors on our development setup but not on the shop floor nor at home. Also I feel it tends to breed bad habits in coding thinking you have all that realestate.

  10. Not totally sure I have understood your question correctly by string convert to number tools do you mean Scan From String ?

    Scans the input string and converts the string according to format string.

    Use this function when you know the exact format of the input. The input can be string, path, enumerated type, time stamp, or numeric data. Alternatively, you can use the Scan From File function to scan text from a file. The connector pane displays the default data types for this polymorphic function.

    Would help if you showed you block diagram

×
×
  • Create New...

Important Information

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