Refnum to path problem

Hi,
I have many subVI. I am working with binary files and I want to open them only one time. If I make subVi(1) which opens:
and then subVI(2) which reads the first 4 elements and store them in array:
Then subVI(3) which uses previous one and reads only 4.element from array
Then I can't connect the first subVI with last one because they have different types.
What should I change/do not right?
Andy
Solved!
Go to Solution.

You need to change the filepath control in the later subVI's to a refnum control.
Copy and paste the refnum indicator that is the output of the first subVI and drop it into the later subVI's.  Right click, change to control.  Then wire that up to the file functions instead of the filepath control you have now.

Similar Messages

  • Path problem for "Load VRML File.vi" in EXE

    Hello,
    The new integrated 3d Picture Control functionality in LabVIEW 8.20 is amazing.  It is a really easy to use implementation of OpenGL.  I've discovered one bug/issue when building VI's to an exe that includes the 3d Picture Control:
    If "Load VRML File.vi" is used, in the executable, you will encounter a LabVIEW Error 7 due to a path problem in the following vi:
    NI_3D Picture Control.lvlib:Load VRML File.vi->NI_3D Picture Control.lvlib:NI_Old 3D Toolkit.lvlib:Read WRL file.vi->NI_3D Picture Control.lvlib:NI_Old 3D Toolkit.lvlib:Initialize.vi
    The File Not Found problem will prevent the vrml file from loading.  Navigating down into the subVI's of the "Load VRML File.vi" shown above easily reveals the problem.  I've included a screenshot of the diagram of that VI.  The relative
    path resulting from the double "Strip Path" operation is not valid
    in the executable.  I'm not sure where that "definitions" file resides
    in the runtime deployment or if it's even included, so fixing the path to account for the differences in the exe vs. development environment path is not an option.   I'm also usually very hesitant to make any mods to anything in vi.lib.
    For the development environment, the "definitions" file can be found at: [LabVIEW 8.2 dir]\vi.lib\picture\3D Picture Control
    The easy fix is to include the "definitions" file in the same directory as your exe when you build.  Fortuitously, this does the trick because the first strip path gives the path to the exe and then the second strip path results in the path to the directory where the exe resides.
    Hopefully NI will fix this path reference properly in future revisions.
    Enjoy!
    Attachments:
    WRL Debug.jpg ‏77 KB

    Hi Chris,
    Thanks a lot for the feedback!  This was reported to R&D (# 47F9DJIQ) for further investigation.
    Regards,
    Justin D

  • Path problem while refering the file in tomcat

    In the jsp file i am going to update one property file which resides in the same folder using file output stream.
    it gives path problem.how can refer the path of that file

    try using getServletContext().getRealPath(java.lang.String path)..You can check out the API for more detail regarding this method.

  • Path problem when moving from Mac to PC

    Adobenoob wrote:
    Hi,
    I'm trying to move our Adobe InDesign installation from Mac to PC, but I ran into a path problem. A lot of our publications/documents in Adobe InDesign have linked to pictures in the filesystem (Windows 2008 R2 server). It goes like this:
    DTP:Produktbilleder:0893ny:0893_467+468_05_Agrp frit_.tif
    And is linked like this directly from InDesign.
    The actual path is:
    /Volumes/DTP/Produktbilleder/0893ny/0893_467+468_05_Agrp frit_.tif
    On the PC I cannot use that path notation and have to go like this:
    F:\DTP\Produktbilleder\0893ny\0893_467+468_05_Agrp frit_.tif
    When the publication/document in InDesign have the Mac link "hardcoded" the PC path will not work.
    Is there a relatively easy way to get the InDesign on PC to use the Mac link or does one have to change all the "hardcoded" links in the publications/documents?
    I hope you understand my question - don't hesitate to ask for more info.
    Best Regards
    Brian

    Hi,
    I have just tested the function - and it seems that the files have to be in the same folder. It is not recursive as I see it. And since we have tens of thousand of pictures in thousands of different folders it does not seem to work.
    Any other suggestions?
    Regards

  • Path problem in windows os

    Dear friends,
    some time I meet a strange class path problem under windows enviroment. that is, the class path uses "/" to splite directory while not "\". so java will report error message like "NoClassFoundError: com/boland/...". I think there should be a way to adjust this environment problem. but I don't know how to set this. I will greatly appreciate if you happen to know this and let me know.
    Best wishes,
    Sam

    You reported an error in a package statement or reference. This is nothing to do with the OS folder structure per se, altho that is how it is implemented on a given platform like windows. Classpath statements are NOT platform independent, due to path separator issues. You should not use a system-wide classpath variable anyway, as this is really quite bad practice. Instead, create a run script for you program, and put the -cp switch in there. In any case, you should be referencing packages (separated by dots) in there anyway, not actual paths.

  • Path problem during  Change of Original

    Hello,
    I am facing path problem while changing the Original file in a DIR.
    let say i created a DIR x and attached file a.txt from c:\ and  saved the DIR.
    Now if i use cv02 and select a original for change the popup window comes with data carrier and original file path  the path is shown as c:\a.txt which is actual original path.
    if i click on continue it is opening the c:\a.txt files and  changes are done on the original file on my pc.
    This way my original file is changed on pc and in DIR also.
    I want to know how to avoid this?.
    Regards
    Shiv

    That is why they call it document "Management".  The Original File is in the "Vault" where it can be managed, not on the desktop.  If you want to protect/save the file on your desktop, set the flag in the config of the workstation application to not allow "rename" of the temporary file.  You are just attempting to circumvent the intended design of the system. What you should really do is set the flag to "delete" the file after check-in.

  • File path problem

    I have looked an read through almost all the file path problem post possible and I am still having issues maybe one of you guys can help me, here are my files
    I am doing this as an example so that I can apply it to all of my file problems....
    Harold Timmis
    [email protected]
    Orlando,Fl
    *Kudos always welcome
    Attachments:
    pathexample.zip ‏122 KB

    First of all, to troubleshoot the problem it would help to put some filepath indicators at each point so that you can see what is going on. Also, in your exe having an error dialog "Simple Error Handler.vi" to let you know what LabVIEW didn't like in the exe.
    Now, when you run a top level ("Main.vi") and use the "Current VI's Path " in the development mode it returns <Filepath>\"Current path"\Main.vi. So stripping once will get you to  <Filepath>\"Current path" .    Now if you make it into an exe the "Current VI's Path" returns <Filepath>\"Current path"\"Name.exe"\Main.vi so you are "nested" one deeper.
    I use the following construct to determine whether the vi is being used as in the development environment or as an exe, the parse the path accordingly, although in this instance it is used to supply different directory names to a little more complex file system.
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • Help File Path Problem

    Hi,
    I recently upgraded to a new computer and I have Develope toolbox and some other extensions from Web Assist and curiously when I click on HELP button in any of them I receive in error message like the one below.....virtually all of the error messages are the same. I known that it is a path problem, but when I follow the path indicated in the error message I find the file exactly where it should be on the computer.....hmmmm...any ideas out there?
    Firefox can't find the file at /MacHD/Users/jimelander/Library/Application Support/Adobe/Dreamweaver 9/Configuration/Shared/DeveloperToolbox/classes/temp.htm

    I think un install ADDT then reinstall it..
    Hope this helps
    Mohnkhan
    http://www.mohitech.com

  • Shortest path problem in ABAP

    Hi experts,
    Is it possible to write the code for the "Shortest path problem" in ABAP?If yes, what is the code?
    Moderator Message: Don't expect members to spoon-feed you
    Edited by: Suhas Saha on Jul 25, 2011 11:13 AM

    Hi munish,
    I dont think there is any thing wrong with the ABAP code.
    Try testing your ABAP mapping using transaction code SXI_MAPPING_TEST in XI.
    Enter the Details asked and then enter TEst data in XML format.. 
    Also, you can make use of the Trace element to find out if there is any thing wrong with the code.
    Include the following Statements after every step in the ABAP code to ensure that the particular step is completed successfully.
    data : l_trace type string.
    concatenate l_trace '<Message you want to display>' into l_trace.
    trace->trace(level = '<level>'
    message =l_trace).  
    The trace is visible in SXMB_MONI (click on "Trace" in the left pane to view).
    using this you will get to know i the code is functioning as desired.
    Regards,
    Yashaswee.

  • Custom mySQL  - updating path / problem with pre-installed mySQL

    I've got a custom mySQL installation setup and humming along on a 10.6.4 server. The problem is although I've updated the paths to search on usr/local/mysql/bin, when I try to access by using the shortcut mysql i get this error: Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' . To be clear, mySQL is working fine - it's just the shortcut that's not.
    This makes me think that the shell is looking first at the default [not enabled] apple mysql install. So something in my paths must be wiggy.
    I had this working perfectly on my 10.4 Xserve but the no one, I'm at a loss.
    Has anyone else run into this - any tips? I'm not going to be running the Apple install of mySQL.

    Actually, my problem is not with the socket location but with the data directory location. But I think is caused by the same path problem to data as yours was with socket. I have posted this question to the Mac OS X Technologies > Unix forum. If you could take a look, I would appreciate it.
    Thanks.

  • Refnum to path

    Hi
    I need to reload a VI through a front panel control. I want to obtain VI's path using the refnum to path function in order to  reload the VI using Load and Run. There is an error although according to the context window both source and sink are of same type.
    P.S already checked detailed explanation
    Attachments:
    1.jpg ‏28 KB

    To explain a bit possible reasons for this constraint:
    References are first of all only pointers to some space in memory; that means, they are only numbers where the actual number is the address in memory of the data space the reference is pointing to.
    That being said, most references are completly incompatibel to a "path" or a "string". So casting a reference to a path or string makes only sense for references pointing to file-based data spaces, aka "file streams".
    VI RefNum is not necessarily a "file stream" as you can acquire a reference to any VI you haven't saved yet, but is in memory. So it must not be compatible to a file-based reference (like a file handle you get from "Open File").
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Help Files Path Problem

    Hi,
    I recently upgraded to a new computer and I have Develope
    toolbox and some other extensions from Web Assist and curiously
    when I click on HELP button in any of them I receive in error
    message like the one below.....virtually all of the error messages
    are the same. I known that it is a path problem, but when I follow
    the path indicated in the error message I find the file exactly
    where it should be on the computer.....hmmmm...any ideas out there?
    Firefox can't find the file at
    /MacHD/Users/jimelander/Library/Application
    Support/Adobe/Dreamweaver
    9/Configuration/Shared/DeveloperToolbox/classes/temp.htm

    OleLena wrote:
    > Firefox can't find the file at
    /MacHD/Users/jimelander/Library/Application
    > Support/Adobe/Dreamweaver
    > 9/Configuration/Shared/DeveloperToolbox/classes/temp.htm
    I'd check to ensure that you have the latest versions of the
    WebAssist extensions as this may have been fixed. I seem to recall
    seeing this issue when the primary browser (from Dreamweaver's
    perspective, the one that F12 or preview in browser opens up) is
    not open when the help is accessed. Try having your browser open
    and then access the help.
    Danilo Celic
    |
    http://blog.extensioneering.com/
    | WebAssist Extensioneer
    | Adobe Community Expert

  • Mirrored volumes pathing problems

    mirrored volumes pathing problems        
    I am running Windows 2008 Server Datacenter.
    I created some mirrored volumes with disk administrator.
    These disk are in a fibre channel fabric.
    All paths go down so disk administrator losses the disks.
    All paths come up and disk administrator recovers the disks.
    The mirrors all show as failed.
    There are disks that show as failed, and disks that show as foreign.
    When I import the foreign disks. 
    One of the mirrored volume starts resyncing, and the other mirrored volume comes up as 2 simple volumes.
    Both mirrored volumes were in sync when the paths went down.
    So I expected them to come back up as mirrored volumes when the paths come back up.
    There is no I/O running at the time of the path failures.

    So let me see if I understand correctly.
    2 volumes presented to 2008 Datacenter via fibre channel
    Volumes are then mirrored via windows
    Disks drop off line and then the second mirror is 2 simple volumes but the first is rebuilding.
    So question 1 - Is it for read performance that the disks are mirrored?
    Question 2 - what disk errors appear in the event log when this happens
    Question 3 - whats the HBA used in the server
    Question 4 - Whats the backend staorage
    Question 5 - Is MPIO being used?
    Do we know the reason that the paths became unavailable? That would be probably my biggest concern.
    Also when the simple volumes came back up was the data available?
    Brad Held http://windorks.wordpress.com

  • Open VI reference and paths problem

    Hi,
    in my project I need to have a VI running independently from the calling VI so I use VI Server and "Open VI reference" to run the VI. However this is not without problems. The VI that I run is not in the same folder, as the caller VI and also not on a fixed location on disk, so I use relative paths (something like "..\subfolder\myVi.vi"). This works in the project and .exe but not e.g. in a .llb file where there seems to be no folder structure anymore.
    Actually I'd prefer if this would not use paths on disk at all but if I could somehow create a reference to another VI in my project and it would even work if the VI's location on disk changed (and is updated in the project). I think it is quite confusing that I have to care about physical location of the VI here when I use the project browser for everything else. Is there a way to accomplish this? Or is there even a better way to start a VI that keeps running even after the caller stopped?
    Thanks,
    Tobias

    As far as I've seen, every VI has the path ../Application.exe/currentvi.vi when you are running in a build.  Therefore, to open another VI you have to strip the current vi's path once, and add the other vi. 
    I have written a VI that determines whether or not I'm running from a build, it is attached.  It returns true if you're in a build, and also the current vi's path stripped once giving you ../Application.exe.
    The way I use the VI is pictured below.  I send the stripped path Is Executable returns and the relative path (minus the vi name) into a Select icon which is wired to the boolean Is Executable returns.  Then I add the other VI name to the path.
    Message Edited by elset191 on 04-21-2009 10:43 AM
    Tim Elsey
    LabVIEW 2010, 2012
    Certified LabVIEW Architect
    Attachments:
    Is executable.vi ‏8 KB
    untitled.JPG ‏7 KB

  • File Saving Path Problem

    Hi,
    i have one problem on file saving. i need to save file (say XML file) in my given path location thru BLS transaction. The server is in some other place and if i give path to BLS transaction, it need to stor ein given location. i tried it but it is working for folder which is alreay in share. is it possible to store in given any path location?
    regards
    senthil

    Senthil,
    is FTP an option for you?
    We experienced the same problem, and to avoid problems with file shares ot mount points (we are running NetWeaver on Unix), we chose to use FTP so transfer files, using the FTP action.
    Michael

Maybe you are looking for

  • Windows 8 printing problem with 2575 printer

    My Photosmart 2575 printer worked ok with windows XP on my old Dell computer. On my new Lenovo Windows 8 computer using the usb printer connector there is a problem. When I try to print a word document it prints the first 6 to 8 lines of the document

  • Duplicate Purchase Order with all fields.

    Hi, I need a method to Duplicate a Purchase Order with ALL the fields. I tryed with a SendKey("^D") method but the new instance not copy the IC data. Looking for a better method, I read about the option to Save as XML the selected purchase, but I don

  • Java-Hierarchylevel - Error

    Hallo, i try to describe my problem in the english language: I wrote the following code: public IDoc.Document createOrderIdoc(SalesOrder order,IDoc.Document doc) IDoc.Segment root, segment; root = doc.getRootSegment(); System.out.println(0. LEVEL "+

  • Mac Mini running a second monitor

    Does anyone know the possibilites of running a second monitor off the Mac Mini (I am currently running a Mac Mini Dual Core)? I was just reading about this USB to SVGA adapter that was in works by this company called Tritton (http://www.trittontechno

  • Ichat AV 3.1 and OS X 10.4.3 and lower

    After reading quite a lot of the posts here. There seems to be a good number of people who exprerienced problems with ichat 3.1 under OS X 10.4.3. In general, I have seen "username not responding" issue and "insufficient bandwidth" issue all over the