Jump to content

Ton Plomp

Members
  • Posts

    1,991
  • Joined

  • Last visited

  • Days Won

    38

Posts posted by Ton Plomp

  1. Well a VI does not know if it belongs to a project (it might even belong to several projects, which is bad), so I guess the best you can do is the following:

    ZWhkmqa.png

    This will look in the folder of the VI for a project file, if one match is found that is returned, otherwise it will look to the folder above the VI project, untill the root of the filesystem is found.

    If more than one file is found you need an algorithm to find the best match. One option would be the Levenshtein distance

     

    Ton

  2. Here's the error description as stored in LabVIEW (help->Explain Error..):

     

     

    Error -1073807246 occurred at an unidentified location
     
    Possible reason(s):
     
    VISA:  (Hex 0xBFFF0072) The resource is valid, but VISA cannot currently access it.

    Where are the errors comming from? I suppose from the 'Open VISA resource'.

    Is this running on the same computer as the Development enivronment?

     

    You might need to wait a little bit before calling the VISA open function. Try to add a wait of 10 seconds before the open VISA session.

     

    Ton

  3. There are several options, the easiest is serving up a folder as a webpage (this can be done with Apache) and storing the images in that folder.

     

    Ton

     

    PS This does not belong on the Real Time but on the Internet/remote monitoring forum.

  4. Well you can get the source of the LabVIEW Icon editor, so you can get the text, and write the output to the icon.

    I have never opened the code from the editor, but I assume the text is saved as a tag in the VI's meta-data. However this is not a standard, if you for instance use the Endevo Goop toolkit ( by MikaelH), you are not compatible with the standard NI data.

     

    Ton

  5. If I have an application that has lengthy processes (>10 seconds), or when it's unlikely that I regurarly (agian at least every 10 seconds) hit the main event loop, then I have a dedicated 'Terminate'  event loop, that's monitoring both the Application:Close? and Panel:Close? events and will signal an abort to these lengthy processes to stop prematurely. 

     

    Ton

  6. The Application Instance Close? event doesn't work. If you can attach an example that works, that would be nice, but my tests show it not working.

    Michael,

     

    could you explain 'Does not work'. What do you expect from this event?

    It should get triggered when Windows wants to close an application (I get this event when I shut down my computer).

    Since you Discard the event your application is ignoring this event, and you should close your app yourself.

     

    Ton

×
×
  • Create New...

Important Information

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