Automatically lauching vi.exe to view files.

Hi!
Here is my problem:
I would like to build a kind of MDI application using Labview. I want this application (let's call it 1DView)
to be abble to open Data files "doubled clicked" by the user in the Windows File manager.
So far, I've been abble to create an exe that opens a selected file (using file extension associations and command line arguments).
The problem is that I want this application to open other files if the user selects other ones after the first one.
Once the first file has been opened, the application is
not re-launched, nor the command line re-sent by the Labview runtime engine.
So my idea is to use a "file opener" (Open1DView.exe) which updates an environment variable with the name of the fil
e to be opened then starts the 1DView.exe (dynamically loaded) then ends.
The 1DView.exe only opens Files with path found in the environment variable.
If the user double-clicks a new file, the Open1Dview.exe is re-launched, it re-updates the environment variable,the 1DView.exe sees a new file to open...
THE PROBLEM: Even if the Open1DView.exe program has ended, it is not unloaded from memory, so if the user clicks a second file, nothing happens, the run time engine does not even restart the Open1DView.exe
Is there a way to control the run time engine behavior?
How can I unload/close/kill an ended VI.exe from memory?
How can I start several occurences of the same VI.exe?
Any idea?
Thanks!

When Open1DView is launched it:
1. Attemps to connect to 1DView VI Server using "Open Application Reference" set the machine name to "localhost" or "127.0.0.1"; do not leave empty. Set the port number to 1DView VI Server value. It defaults to 3363 but since LabVIEW already uses it on your machine, pick up another.
2. If connection fails, it launchs 1DView using "System Exec.vi" and reattemps a VI Server connection. Launching 1DView when it is running causes no harm and brings it panel on front so you can always do it anyway without checking the connection.
3. Opens a VI reference to FileManager.vi. With the call by reference method, FileManager.vi notify its main application that there is a file to open an exits immediately after, not
to hog Open1DView. With the Run method, set a control value on its panel and run it without waiting.
4. quits with "Quit LabVIEW". It terminates and unloaded from memory.
5. It is now ready for next double-click.
On the 1DView side:
If FileManager.vi is called, it must notify (by occurence, queue, notifier, etc.) the application that there is a file to open and exits as soon as possible. If it is run, it can run a little loger since Open1DView does not wait. But as long as it is running, it is not available to receive a new file. When the application is notified, act on the file as you wish (append to existing data, view in a new window running a .VIT, etc).
>Do you know an other way to pass "orders" between vi
>without using big stuff like datasocket.
There are:
Files: obsolete and inefficient
DDE: obsolete (Win16)
TCP/UDP: you will ha ve to write a server that waits on TCP/UPD connnections, receive file string from the client in Open1DView.
VI Server: uses TCP anyw
ay but you don't have to write server/client VIs.
ActiveX VI Server: similar functionality to Call and Run VIs to TCP VI Server, but using ActiveX
I assure you that it works. Post again if you still have problems.
Good Luck.
LabVIEW, C'est LabVIEW

Similar Messages

  • Is there a way to have the thumbnail pane automatically open when opening a pdf file?

    I'm using Adobe Reader X and I would like to have the thumbnail preview automatically open when opning a pdf file. I know there is a setting to remember view layouts but this is set for the currently open document and not in general. Thanks in advance,
    Regards
    Robert

    A particular file can have this setting, so each time you open it you see the thumbnails. The bad news is:
    - this would have to be changed per file
    - this requires the Acrobat product, not just the free Reader.

  • In Lion 10.7.5 is there a way to view files in alphabetical order in column view?

    In Lion 10.7.5 when viewing files/folders in column view, if I select arrange by name it does not sort the names alphabetically.  Is this a bug or is there a way to view files in alphabetical order in column view?

    I've been using Column View for years and have it set to None:
    It has always shown in alphabetical order automatically.

  • How do I keep my macbook pro from automatically rearranging my folders and PDF files on my desktop

    How do I keep my macbook pro from automatically rearranging my folders and PDF files on my desktop?  It seems to happen a lot after I've hooked my laptop to my Thunderbolt in my office and then I unhook my laptop to go present at a clients of taking my laptop home to work.  Every once in a while if even places all of my folders and PDF files in the far upper left corner of my screen.  Needless to say, having to constanly rearrange my desktop is extremly annoying and would love to know what the fix is for this problem.  Thank you in advance for any help offered!

    Thanks for the tip "baltwo", unfortunately my desktop settings were already set to NONE.  I've had one of my IT guys here this moring helping me look through all of this and we're at a wall trying to figure out why it's doing this.  This morning when I docked to the Thunderbolt all my folders and PDF files are in the upper lefthand corner stacked on top of each other almost out of view.  If I go to settings, displays, and swith to mirroring, all the folders and files go right back to where they're set up on my MacBook desktop, but I lose the ability to utilize the entire screen of the Thunderbolt.  Very frustrating to say the least and after searching through and reviewing several forums, Apple is very much aware of this issue and seems to be keeping silent on the issue.  Hoepfully they'll launch a fix soon!
    THANKS again for the tip, it's much appreciated!

  • CS6 In Design/automatic register when I open a file

    Hello, sorry my english is not so good. my question concern In Design CS6. When I open a document, it automatically registers under . Is itpossible to remove this function, source of errors ? thank's for your answers

    Hello Peter,
    Ok, thank’s a lot, I will post in french.
    Quand j’ouvre un fichier avec InDesign CS6, et que je sauvegarde, la 1ere fois il s’enregistre sous. (avec cmd S et non pas enregistrer sous) Ce qui demande de remplacer le fichier et peut causer des erreurs de version. Est-t-il  possible d’enlever cette fonction ?  J’ai regardé dans les préférences et dans l’aide en ligne, mais je n’ai rien trouvé à ce sujet.
    Nous n’avons jamais eu ce problème avec les versions précédentes d’In Design.
    Bien sûr, aucun autre logiciel ne présente le même problème. Cela ne vient donc pas du système d'exploitation.
    Merci pour votre aide
    Sophie Moulay
    Réalisation
    Pole Electro/Mesures et Electroniques
    0175602849
    [email protected]
    De : Peter Spier <[email protected]<mailto:[email protected]>>
    Répondre à : "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date : jeudi 30 octobre 2014 14:21
    À : Pole Electro Electro <[email protected]<mailto:[email protected]>>
    Objet :  CS6 In Design/automatic register when I open a file
    CS6 In Design/automatic register when I open a file
    created by Peter Spier<https://forums.adobe.com/people/P+Spier> in InDesign - View the full discussion<https://forums.adobe.com/message/6882862#6882862>

  • Help: The Download-File for Photoshop CS3 Extended "Deutsch" for Windows is not deposited as an exe- or zip-file

    The Download-File for Photoshop CS3 Extended "Deutsch" in the column for Windows inadvertent is not deposited as an exe- or zip-file but as a dmg-file for MacOS; this cannot be opened under Windows. (See download http://helpx.adobe.com/de/creative-suite/kb/cs3-product-downloads.html)

    Achims11206356 are you able to download from Download CS3 products?  You may need to adjust your region on Adobe.com to the United States to view the English version of the page.

  • When I create a new folder on the desktop of my macbook pro, it is automatically populated with all of the files on the desktop, which I don't want.

    when I create a new folder on the desktop of my macbook pro, it is automatically populated with all of the files on the desktop, which I don't want.

    I got the problem solved. It was pretty simple but new to me. I had evidently inadvertently switched the setting in the "View" tab on the dropdown menu so that all of my desktop folders were populated by all folders/documents residing on the desktop.
    The solution was to open one of the folders, then go to the "View" tab and change the setting to "List." Presto, now all the folders include only the contents I had intentionally loaded into them.

  • Is there a way to automatically shrink images in an epub file to fit the visible screen?

    Is there a way to automatically shrink images in an epub file to automatically shrink to fit the screen in Adobe Digital Editions?  This happens automatically with the Kindle and I assume with the iPad and Nook as well.  However, the large images in the epub do not automatically shrink to fit the Adobe Digital Editions viewer. Is this an issue with the software or the epub file?
    Thanks

    Hi Ken,
    In my code i have something like that:
    public static bool IsEmbeddedAttachment(Outlook.Attachment attachment)
    //Anexos que não são embedded são obrigatóriamente olByValue, porém os embedded podem ser de qualquer tipo
    if (attachment.Type != Outlook.OlAttachmentType.olByValue)
    return true;
    //Busca a propriedade contentID do anexo. Anexos embedded não precisam necessáriamente gerar um ContentID. Anexos fixos não geram ContentID
    string strATTACH_CONTENT_ID = attachment.PropertyAccessor.GetProperty(@"http://schemas.microsoft.com/mapi/proptag/0x3712001E").ToString();
    //Busca a propriedade contentLocation. Para que o anexo seja embedded é necessario que essa propriedade esteja vazia ou nulla
    string strATTACH_CONTENT_LOCATION = attachment.PropertyAccessor.GetProperty(@"http://schemas.microsoft.com/mapi/proptag/0x3713001E").ToString();
    if (!string.IsNullOrWhiteSpace(strATTACH_CONTENT_ID) || !string.IsNullOrWhiteSpace(strATTACH_CONTENT_LOCATION))
    //Busca a propriedade AttachFlag se for diferente de 4 é uma imagem embedded
    if ((int)attachment.PropertyAccessor.GetProperty(@"http://schemas.microsoft.com/mapi/proptag/0x37140003") == 4)
    return true;
    if ((int)attachment.PropertyAccessor.GetProperty(@"http://schemas.microsoft.com/mapi/proptag/0x37050003") == 6)
    return true;
    if ((int)attachment.PropertyAccessor.GetProperty(@"http://schemas.microsoft.com/mapi/proptag/0x37140003") == 4)
    return true;
    return false;
    And was working very well until last week. 
    I have a problem with a single email. This email attachments possess 2 PDF type files. These files are not embbed in the email, but they have the contentId property. Could you tell me why? or if its possible discovery why this happens?
    PS.: Sorry about my english.
    Att's,
    Anderson Rissardi.

  • Exe and .7z Files

    Downloaded Cs6 .exe and .7z files. What is the .7z file for? It does not appear to be an extract file, so I'm not sure what to do with it.
    Any help is greatly appreciated!!
    2Wheeler%

    The EXE file is the installer 'bootstrap' utility, and the 7Z file contains the software package itself (the resources and the full installation program). You don't need to do anything with the 7Z file, as the bootstrap will unpack it automatically. It's used instead of ZIP because the 7ZIP compression is more efficient for the type of files being downloaded.

  • Clicking on another app I get the video automatically returning to normal screen view

    I wonder why, if I put a youtube video in full screen and I click on another app WHILE THE VIDEO IS PLAYING all remain this way. On the contrary, if I first stop the video, clicking on another app I get the video automatically returning to normal screen view... This is very annoying. Is it possible to avoid this?
    Thanks

    Sorry, Mozilla doesn't support the patent-encumbered and royalty-encumbered H.264 standard, they support the OGG/Theodora and WebM free open source standards.
    Microsoft has a H.264 plugin for Firefox, but it is for Windows7 not WinXP or Win Vista. <br />
    http://www.interoperabilitybridges.com/html5-extension-for-wmp-plugin
    There may be other H.264 Firefox plugins out there for WinXP, so do a Google search. Or maybe contact support for that DVR security system and see if they know of or have a Firefox plugin.

  • Cant open PDF files..It says the adobe acrobat reader that is running can not be used to view files in a browser..plz suggest the solution.thanks

    Whenever i try to open a PDF file it says " The adobe/acrobar reader that is running can not be used to view files in a web browser. Plz exit adobe/acrobat readerand exit your web browser and try again." Wt do i need to do, plz suggest.
    Regards
    Aditya Bhargava

    Hi adityabhargava01-
    My first suggestion is to upgrade to the most recent version of Firefox by going to this link:
    http://www.mozilla.org/en-US/firefox/new/
    My second suggestion is to read this article on how to many your preferences on how Firefox deals with PDFs and all other file types:
    [[Options window - Applications panel]]
    I hope that helps!

  • Is there a way to automatically backup the Airport Extreme Configuration file (.baseconfig)?

    Is there a way to automatically backup the Airport Extreme Configuration file (.baseconfig).
    I know (in hindsight) that I can manually export it from the Airport Utility, but ideally I would like to include it in my Time Machine backup. I had a situation where my Airport Extreme (3rd generation) just stopped working (no lights, no power). I had not exported the config file. I bought a new Airport Extreme (5th generation) and had to manually configure the new router.
    Thanks

    One option would be to use Automator and record the actions to run the AirPort Utility; save the configuration file to the desktop (or any other location you want), and then, close the utility. You can then either make this a part of your login startup programs. Time Machine then should be able to make backups.

  • Automate a BI report to flat file on to a FTP server.

    Hello all,
    I have an same issue like the following thread. After extract CSV file successfully to the directory, but unable to find the file. Any thought?
    Automate a BI report to flat file on to a FTP server.
    Regards!

    Need to analyze the business purpose ,however heres my take on it..
    You can utilize 3 options to export query result on to the SAP directories as below and map that path to your FTP server.
    1. Transaction RSCRM_BAPI (still valid in nw2004s)
    2. Transaction RSANWB (analytical Process designer)
    3. Information Broadcasting - KM folder has to be mapped as a file system location.
    Hope it Helps
    Chetan
    @CP..

  • Viewing files on CRIO

    HI, 
    I have been using the RT Write Text File found in the following link. This demonstrates how to read and write to a text file on the cRIO and what I want to do is verify that the file is being created and that the appropriate data is being stored. How would I go about viewing files on the cRIO? I've been looking into using the NI Web-Based Configuration and Monitoring but I'm having issues with this. If someone can give me a bit of assistance that would be great. 
    So far I've been through Max, clicked on the NI-RIO and added the developer computer into the Remote Device Access. Also from the project window, I have added the same IP address under the VI Server in the project window and clicked the enable remote panel server under the Web Server. 
    I also have a question regarding to what happens to the data in a sudden shut down? 
    Solved!
    Go to Solution.
    Attachments:
    Read and Write Files to Crio.PNG ‏31 KB

    Hi,
    remember, you can browse to a file on your remote RT system by opening a Windows Explorer and typing in FTP://ipaddres
    Does this work?
    This is an example how to read and write to a text file:
    Read and Write to Text File on Compact RIO or Single Board RIO
    https://decibel.ni.com/content/docs/DOC-9605
    Regards,
    Michael

  • What software do I need to view files or watch movies on my imac/time capsule, from my macbook (away from home)?

    What software do I need to view files or watch movies on my imac/time capsule, from my macbook (away from home)?
    imac is running lion...macbook is couple years old.
    thnx

    It appears you have a iPad Mini and a MacBook. Assuming that, this
    About renting movies from the iTunes Store - Apple Support
    says
    If you rented the movie on your iOS device or Apple TV, you can’t move it to any other device.
    This is the Mac Mini desktop forum

Maybe you are looking for

  • [SOLVED] Problem with Audio and Samba

    Hi, this is my first post. I think I should put here. I have a hard drive connected via network, and accessed the protocol with samba (smb). Mapping shared everything perfectly even see pictures without problems, but when it comes to playing music al

  • Process Instance.Task Details.Update Date

    Hi experts, Process Instance.Task Details.Update Date Process Instance.Task Information.Update Date From these two dates which one captures the approval task assignment date. For e.g. If we reassign the approval task after some idle period to another

  • Firewire to connect iMac and MacBook Pro

    My MacBook Pro (Early 2011) is full, and I want to transfer pictures and videos to my fairly empty iMac (Mid 2007) with a firewire.  Which firewire do I need?

  • View with outer join results wrong number of rows

    Hi, When i run a query on a view it returns 2 rows(2 distinct rows), when i run the same query with the select statement which the view is created , it returns only 1 row. According to data the 1 row result is correct, how come twi results. A coding

  • Stop yesterday's Word docs from re-opening

    Since my upgrade to Lion, whenever I open a Word document, all the Word documents I had open yesterday also re-open. The same happens with Excel. How do I stop this? Thanks,