Jump to content

Mellroth

Members
  • Posts

    602
  • Joined

  • Last visited

  • Days Won

    16

Posts posted by Mellroth

  1. Just wanted to chime in and put a vote in for non-icons. Again I've never known anyone to prefer them.

    I don't use express VIs often, but when I do I always change them to the icon view and remove the caption. Probably to save on block diagram space.

    +1

    The only time I see icon terminals are when someone new to LabVIEW starts programming, but then it is only because icons are the LabVIEW default.

    /J

  2. for your information,i understand i maybe forget the "Set File Position"。

    but i’m puzzled because i didn't Close file refnum, its running is ok. so whether i must add “close File”,if i don‘t use it,what will happen?

    You should always close references that you open (better safe than sorry), this is true for Files as well as Queues, Notifiers etc..

    If you don't close a refnum, and continuously open new references you have introduced a memory leak, that in the end can lead to a crash.

    /J

  3. when use this vi to write my data,why the data i had written don‘t exist。it just remain the data i just write。what did it happen? why this vi don't need close vi but the key need ?thanks very much

    I'm not sure I completely understands your question, but just calling the "Write To Text" method replaces any previous content (see help).

    If you want to append new data to the file you'll have to;

    1. Open the file with "Open/Create/Replace file"
    2. Move the pointer to the end of file using the "Set File Position"
    3. Write new data with "Write To text file"
    4. Close file refnum

    /J

  4. Is there anything other than a class being loaded in more than one application instance that will cause it to lock? Because I definitely do not have this situation... Will a broken class cause another to lock?

    Do you have more than one target in your project? A class that is loaded on more than one target is also locked due to the same reason, i.e. due to "multiple application instances".

    /J

  5. Just to be clear:

    You want Format into String to convert a Timestamp into an ISO 8601 formatted string.

    And you want to input this ISO 8601 formatted string (and only this type of formatted string) into Scan Variant From String and have it converted to a Timestamp?

    Maybe I'm missing something, but it is possible to scan any type of timestamp format with the ScanFromString.

    You just have to specify format in more detail, e.g. if I want to scan ISO format I just specify

    %<%Y-%m-%dT%H:%MZ>T

    /J

  6. The only thing that concerns with this is that the operation may take a while to complete in very large projects, plus information could be missing.

    I would rather have a tool where I can parse the information and format it the way I like in the IDE, then its simply a matter of displaying it to the user in the app.

    If the formatting was done in code, I could always just run the tool then re-run the formatting code when I needed to update the license.

    I think this would be better?

    You are probably right, but I still think there should be a OpenG tool that can create a listing of all OpenG modules and their licencing with a default layout. If you want to change the default layout, use an API to build your own.

    For most people that would be enough, but the point is that they will at least be able to correctly give credit to OpenG.

    Regarding performance, I don't think that is an issue, we have used a tool to scan pretty big projects for specific strings, and that completed in very short time.

    /J

  7. Hi Jonas

    Can you please clarify - are you saying you would like this tool to run in the Run Time Environment and it would popup a dialog showing the license information after having scanned the VIs for that information?

    Cheers

    -JG

    I would like to have this as an option, i.e. to have the licence information available in the RunTime.

    Since most of the licencing states that you have to give credits where it is due, this would be an easy way of including all this licencing text, and never forget a toolkit.

    /J

  8. I would really like to have a OpenG tool that can scan and create a Licence information file, perhaps also open a Licence dialog.

    A tool like this would depend on that the licence information is intact even after a we build an application (where BD's and perhaps FP's are removed)?

    /J

  9. I could easily implement this via the Key Down? event structure frame, but how do I distinguish what a valid decimal character is? In a North American locale I'd allow a "." character, but in France I wouldn't, for example.

    I'm aware of the %.; %,; and %; codes which help with scanning an entire string for a number, but in this case I'm trying to match only a single character and I don't think they are of much help.

    Why not check the local decimal point before the event handling, e.g. by converting a number to string and check for the decimal character in the string?

    Then use this information to determine if ',' or '.' should be allowed in the Key Down? event.

    /J

  10. Hmm.. not sure what version you are using but I have used 8.6.1, 2009 and 2010 with static and dynamically called Shared variables, with no problems. I have about 80 of them and 3 or so are read dynamically in the PC Host. The SVE is hosted on the RT PXI target.

    Neville.

    It was LabVIEW 2010.

    The problem was that I used a typedef enum to define the NSV type, and this was not accepted by LabVIEW. The typedef was deployed in the same lvlib as the shared variables and was accessible on the RT block diagrams.

    Anyway, I managed to get around it, and I believe NI was able to reproduce the issue with my shared variable setup.

    /J

  11. This is interesting, and is it due to FP can't update itself?

    (LabVIEW8.6, XP SP3)

    Thanks.

    post-9543-0-89774200-1294805055_thumb.jp

    rotating indicators.zip

    I can reproduce this in LabVIEW 8.6 but not in LabVIEW 2009.

    My guess is that LabVIEW 2009 handles mulitple UI events better than 8.6; if you make sure that the property node is written before updating the indicators, it seems to work in LV8.6 as well.

    /J

  12. I just loaded NIDAQmx 9.2.1 (needed to support a new DAQ board) and it messed up my existing LV2009 executables. I'm getting the following errors:

    "No supported languages intalled"

    "Unable to open resource files"

    I tried rebuilding the executable, but still get the same errors. What's going on? In the old days you could load new versions of NIDAQ without hosing up your system. I dread every time I try to update something now.

    George

    You can try to add support for East-Asian languages to Windows.

    This solved the issue we had in MAX (it was not possible to configure any RT target after changing to the new MAX built with Silverlight).

    /J

  13. ...but inline+subroutine should be the fastest...

    Can inlining and subroutine priority really be combined?

    This would mean that the inlined code should run at another priority that the hosting VI.

    I have never tried so I don't know for sure.

    It looks like I'm getting about 7us per call. Still not sure if that's to slow or not.

    1. How many elements are you feeding to your subVI when you get these times?

    2. Are you running this on Windows/RT?

    /J

  14. Hi everybody,

    I'm acquiring data and saving that on my disk as .dat.

    Now I want to later open and analyse the data.

    So I'm busy with writing a VI thats read the .dat file. The VI is going to be a .exe file.

    This results in that I can set all my .dat files to that executable.

    The problem is:

    When I run my .exe, it still want me to select the .dat file I want to open.

    But I want it to read the path of the .dat file i'm opening

    Hopes my problem is clear ;)

    ____________

    Michael ten Den

    Do you want the application that you have written to load when you double click the *.dat file, and directly start processing the clicked *.dat file?

    If this is what you want, please checkout the link

    http://labviewwiki.o...indows_Explorer

    /J

    • Like 1
×
×
  • Create New...

Important Information

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