Jump to content

Adnan

Members
  • Posts

    24
  • Joined

  • Last visited

    Never

Posts posted by Adnan

  1. Hi, I am Adnan and I am a lurker. I think, I am a little bit shy and not very self-confident for replying. But I try to heal myself (are we in group therapy? :wacko: ).

    People are very unselfish, passionate, and love :beer: . I really like this place :) .

  2. Hello!

    I think i've found a solution by using "FP.State=Hidden" instead of "FP.Open".

    I only tested it with LV7.1! (afaik LV6.x does not have this Property)

    Indeed, it works well! It seems to be the best solution.

    Moreover with adding the lines below in application INI file (WriteTimeToFile_LV711.ini), it will hide window in Task Bar.

    [WriteTimeToFile_LV711]

    HideRootWindow = TRUE

    Walx a question : what is the "WriteTimeToFile_LV711.bat" file in your build directory?

  3. I found here an information about how LabVIEW handle the panel and the VI in memory but I'm not sure it was true for every version.

    To sum up, they suggest that the VI must open a self reference in such way LabVIEW keep it memory.

    So I made some tests in different versions of LV : 6.1, 7.1.1, 8.0.1 (see Attachment).

    The code of VI is simple and it is the same for all version (Open Self VI Reference - CloseFP - write date & time in a text file - Close VI Reference). I'm build exe for every version and use it for results.

    Test machine :

    PC WinXP sp2

    CPU : P4-2.6GHz

    RAM : 1.5Gb

    Results :

    • LV61 : always works
    • LV711 : randomly works
    • LV801 : doesn't work

    It's difficult to me to explain this difference. Someone has an idea ?

    Rolf, you seem to understand threading rules in LabVIEW, maybe it's obvious for you.

    Download File:post-1057-1153985925.zip

  4. Alright, after playing with a few more things I managed to find a property node that appears to work for hiding the Front Panel of the VI in an executable. First thing I do is Set the Run VI Transparently to True, then I set the Transparency Level to 100% which makes the VI invisible. Now when I launch the VI all I see is a Windows Task Bar for the VI come up, No Front Panel Flash or anything. Thanks to all for the help!

    Great idea !

  5. I was a bit surprised to see this reply because I have always thought LabVIEW executables would terminate immediately if they do not have any front panels open...and when I tried this just now that still seems to be the case, however I am using LV 7.1.1 here so perhaps this works in LV8 or there is some detail I have overlooked?

    I deactivated all options in the window appearance option window and the first thing I run is the VI close method, and voila - the application does no longer run.

    Regards,

    Mads

    I use to think so. But It seems it depends on which kind of code is on your BD. I will try to synthesize this and post some example when i have time.

    I suppose it is due to thread switching as Rolf said.

  6. SITUATION

    Labview 7.1.1 Run Time Engine

    OS : Linux Redhad WS4 or Mac OS X (we don't have time to really test it on WinXP, but it would be done soon)

    Machines : Dell Bi-Xeon 3Ghz 1GB and Apple G5 Dual 2.5Ghz 1GB.

    Application : ~2000 VIs, with lot of dynamic launches of parallel processes (VIT instanciation). Every 10 seconds, 4 processes are launched and destroy themselves after 7 secondes.

    PROBLEM

    Error 1124 appears randomly on Open VI Reference for instantiation of process VIs (it take between ~20 minutes and 24 hours~to happen). We try to handle this error by filtering and re-trying the launch but the application crash with a "memory.cpp in line 1038".

    From LabVIEW General Error Codes page we have Here :

    "VI is not loadable. In a built application, this error might occur because the VI being loaded was last compiled for a different OS, in which case you must save the VI on the current platform. This error also might occur if the VI is a polymorphic VI, which cannot be loaded in the LabVIEW Run-Time Engine. You must load an instance of the polymorphic VI instead of the polymorphic VI itself."

    We have done a mass compile of all VI hierarchy before building application, and our process VIs are not polymorphic.

    Some weird think seem to happen with intensive use of VI Server and multi-threading in LabVIEW. It remind me an another problem we have here (NI is aware of this bug but not resolved today), and I've seen something similar on this page.

    Someone know what is really mean or ever seen this kind of problem?

  7. Which kind of picture do you mean?

    If it is a image file, just copy/paste your image file to front panel and save your vi.

    If you mean using picture toolkit, you must load your image file via "Picture ToolKit/Read XXX File.vi" (where XXX is File Type) to a Picture Control. And then, Right-click on the Picture control, Data Operation>>Make Current Value Default and save the vi, to make it persistent.

×
×
  • Create New...

Important Information

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