Configuring dynamically loaded VI's search directory for both 64 and 32bit

Background:
I have an application that has been developed, built in LV2012 32bit.  It needs to run on a 32bit and 64bit machine (Win7, I understand the application itself will only ever be 32bit, but it needs to run in both environments).  The application dynamically loads a bunch of VI's which are raw vi's on disk (think just copy directory of files over from developer machine to the target machine that already has a exe running -- and just a copy, not a build of any sort).  All of these dyanamically loaded vi's at some point reference vi.lib, so I have a few things I need to do to the application to get it to work
a) within the .ini file for the running exe viSearchPath=......C:\Program Files (x86)\National Instruments\LabVIEW 2012\<<bunch of directories>>\*
b) within the VI object cache directory, I have a lvDistPath.txt file that includes C:\Program Files (x86)\National Instruments\LabVIEW 2012
This works just fine for when I deploy these files and run the application on a 64bit version of Win7.  However, when I try to run the application on a 32bit version of Win7, it breaks -- LabVIEW is installed in C:\Program Files\.... (no (x86)).
I am stuck with the dynamic loading architecture we have, and I can't start making changes to my code because it's not my code that is specifying where to find the files -- it's LabVIEW's internal searching algorithm.
What can I do (short of managing two separate .ini & .txt configuration files, one set each for x86 and 64bit and managing two separate installers) to get around this problem?

It sounds like you really don't have a problem with a 32 bit app vs. a 64 bit app.  It sounds like a problem with file paths being different on a 32 bit app on 32 bit windows vs. a 32 bit app on 64 bit windows.
Two things you could do.
1.  (Not sure this would work.)  Put 2 paths in the search directory, one for c:\program files path for 32 bit windows, and one for c:\program files (x86) for 64 bit windows.  One or the other will exist.  I don't know if something will hangup if it searches the other path that doesn't exist.
2.  Since you are dynamically loading the VI's, you should specify the path when you are dynamically loading them rather than having LV search for them.  There is a function called Get System Info in the File I/O >> File Constants palette that will return the path to the Program Files folder for you environment so that you can build on that to get to your dynamic VI path.

Similar Messages

  • Any shared directory for both SAP and XI

    Hi,
    I have a clarification of accessing files from xi to sap. We have a typical scenario where the data coming from SAP is being stored in AL11 directory which i believe is SAP own unix level directory.
    As we are not getting any IDOCs or RFC's, in order to process the files to legacy system, xi needs to pick up the files in SAP AL11 transaction directory.
    Is it possible to use a Fille Adapter to pick the unix level directory structure.
    Please let me know the same.
    Regards,
    Anandh

    Update: I've been able to make progress with the first route mentioned above: adding the mobilecomponents.swc and the mobile.swc theme to my web project
    Turns out that Flash Builder had led me wrong in this regard. Adding the mobile SWCs to your Library project with the "merged into code" setting results in the compiler warning:
    The swc '/Applications/Adobe Flash Builder 4.6/sdks/4.6.0/frameworks/themes/Mobile/mobile.swc' has style defaults and is in the library-path, which means dependencies will be linked in without the styles.  This can cause applications, which use the output swc, to have missing skins.  The swc should be put in the external-library-path.
    Seeing this the first time, I changed my linkage type to "External" and the warning went away. Then in my web project, I also added the mobile SWCs and set the linkage type to "merged into code" there. Flash Builder seemed happy with that approach, but upon running my application I got bizarre runtime errors (as mentioned above).
    Turns out that my first attempt was the correct way. Set the linkage type on the library project to "merged into code" and then don't re-link from your web project. Flash Builder will warn you about it but ignore the warning. Things seem to work pretty well for the most part now! I have an issue or two to look into (ex. List component doens't scroll) but things look pretty promising overall!

  • User login report in Active Directory for specific date and time

    I want to get User login report in Active Directory for specific date and time e.g user logged in at15-01-2015 from 8:00am to 4:00pm
    Is any query, script or any tool available?
    Waiting for reply please

    You can identify the last logon date and time using my script here: https://gallery.technet.microsoft.com/scriptcenter/Get-Active-Directory-User-bbcdd771
    If you would like to get back in time and see when the user did a logon / logoff then you need to have auditing enabled. Once done, you can records from Security log in the event viewer: https://social.technet.microsoft.com/Forums/windowsserver/en-US/98cbecb0-d23d-479d-aa65-07e3e214e2c7/manage-active-directory-users-logon-logoff-events
    I have started a Wiki about how to track logon / logoff and it can help too: http://social.technet.microsoft.com/wiki/contents/articles/20422.record-logon-logoff-activities-on-domain-servers-and-workstations-using-group-policy.aspx
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

  • Search Help for Account ID and Employee

    Hi,
    I have a requirement like this:
    I have a custom field: Escalation To. For this, I need to provide F4 help which shows Employees and Account ID (ex: Sold to Party/Bill to etc).
    So, I used the component - BP_HEAD_SEARCH. However the problem is : In this, I have chosen the filed role - as Employee and clicked on search. But it is not showing all the employees.
    And when I used the component - BP_EMPL_SEARCH, it is showing all the employees. I don't know, what is wrong with this.
    Could you please help me out for this? How can I provide F4 help which works for both Employees and all other BP's
    Thanks,
    Sandeep

    Hello Glenn,
    Thanks for the reply.
    Let me rephrase my question.
    Account ID is already there as a search field. But I want to add F4 search help for this field.
    So when the user hits F4 key, the system should display the 'BUPA' search help so that user can search for the BP number by name, zip code etc.
    So I want to attach the search help 'BUPA' to the 'Account ID' field in the screen.
    Can you please let me know how to do that?

  • When i load up Photoshop CS6 it loads up the Administrators Account for some reason and it is quiet irritating if someone can help.

    When i load up Photoshop CS6 it loads up the Administrators Account for some reason and it is quiet irritating if someone can help please respond as i would like to continue using Photoshop.

    If you are using someone else's computer, then you need to get the Admin to sign in so you can run PS.
    If it's your own computer, then you need to know the Admin's password so you can work. Better yet, YOU need to be the Admin.

  • Component material to be used for both MTO and MTS scenario

    Hello All,
    What is the setting required at IMG or at Master data level, in order to use the component for both MTO and MTS scenario.
    Detail description of problem:
    In the system already MTS process is exist. And now business wants MTO scenario, in order to have sales order specific stock.
    So i have made the necessary configuration in requirement class (special stock - E in account assignment field) and the basic requirement is working fine. Meaning when i create prodcution order manually using transaction CO08 with reference to sales order i am able to create it. And no problem in executing GR for the prodcution order. Also noticed that after GR the stock is under the salesorder created.
    But the problem is when i try to do the goods issue for the component to the prodcution order, system is expecting sales order specific stock for components too.
    But business wants to use components from unrestricted stock as of Make to stock scenario.
    Please guide me how to achieve this? This is critical to business so expecing quick recommendations from experts.
    Best Regards,
    Krish

    HI
    For  your component if you dont set indi/collective requirement indicator as 2 collective reqmt MRP 4 view then only system will not allow you to use r special stock E  for sales order
    if you want to make all stock avaliable and PR and PO not sales order wise then maintain above indicator as 2 in MRP4 view.
    Regards
    Anupam Sharma

  • Output determination and Printer determination for  both PO and GR

    Dear all,
    Can anyone please help me in congiguring the output determination and printer determination for  both PO and GR. please give me detailed configuration including the paths as i am stuck with the configuration.
    Thanks & Warm Regards
    Somashekar Anand

    hi Somashekar
    follow he steps
    Output of Purchase Order
    1. Condition Table
    SPRO > Material Management> Purchasing -> Message -> Output Control->Condition Tables->Define Condition Table for Purchase Order
    Select:
    Purchasing Doc. Type,
    Purch. Organization,
    Vendor
    2. Access Sequences
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Access Sequences->Define Condition Table for Purchase Order
    3. Message Type
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Types->Define Message Type for Purchase Order
    *4. Message Determination Schemas*
    4.1. Message Determination Schemas
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Schema->Define Message Schema for Purchase Order-> Maintain Message Determination Schema
    4.2. Assign Schema to Purchase Order
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Schema->Define Message Schema for Purchase Order-> Assign Schema to Purchase Order
    5. Partner Roles per Message Type
    SPRO -> Material Management-> Purchasing -> Message -> Output Control-> Partner Roles per Message Type ->Define Partner Role for Purchase Order
    6. Condition Record
    Navigation Path: SAP Menu-> Logistics -> Material Management -> Purchasing-> Master data->Messages-> Purchase Order-> MN04-> Create
    Now you create PO (ME21N) and save it. Go to ME22N and print the PO by giving output type.
    Output of GR
    After setting table, access sequence and output type for GR,run MB02 transaction, enter material document number. Double click one line item and select messages. Separate screen will be opened to configure outputs. Give the required fields and save the document. Now Run MB90, you can take printout. Output Type: WE03 or WE01 or WE02
    Reward points if helpful
    Thanks and regards
    Ravikant Dewangan

  • Using the same client for both regfree and out-of-proc COM

    Hi,
    Here is the context:
    1. We have the same set of COM objects that can be deployed as in-proc COM servers (dlls) or out-of-proc COM servers (exe).  In-proc servers are called through regfree COM.
    2. We have test projects that use the in-proc COM servers through regfree COM.
    I would like to use the same test client projects for both regfree and out-of-proc COM servers (but not at the same time). For example, I would like to first run the client using regfree COM, then delete the in-proc dll and register the out-of-proc com server,
    and then run the client again without having to recompile.  But I have not found a way to do this.
    Instead, what I have to do is modify the project settings of the test client project, removing the regfree stuff (the manifest dependencies) before I can use the test client project with the out-of-proc server.
    Is there a way to do this without recompiling?
    FYI, I have tried regfree COM by changing the client project's Project->Properties->Linker->Manifest file->Additional Manifest Dependencies, or by changing the client project's Project->Properties->Manifest Tool->Input and Output->Additional
    Manifest Files.  Either way works with regfree COM.  And either way I have to remove those settings before making it work with out-of-proc COM (and hence recompiling, which is what I am trying to avoid).
    Thanks,
    Nick

    Try Manifest Tool > Input and Output > Embed Manifest = No, and change Linker > Manifest File > Manifest File to drop ".intermediate" in the middle (or just rename the file after the build).
    A manifest doesn't have to be embedded into the executable, it could be a standalone file named like ApplicationName.exe.manifest and sitting in the same directory next to the .EXE. Then you can simply delete or rename it back and forth to switch between
    registered and reg-free COM.
    Igor Tandetnik

  • MDT/WDS PXE Deployment - DHCP Options for both x64 and x86

    Alright, I've found out the option 66 & 67 information, as what to set for each. The problem I'm trying to figure out is what to use for the boot file for option 67. So far all the info I've found says this:
    Configure DHCP option 67 with the right boot image file.
    For 32-bits systems \boot\x86\wdsnbp.com
    For 64-bits systems \boot\x64\wdsnbp.com
    I want to be able to use this for both 32 and 64 bit Windows clients, but cannot find anywhere that specifies how I would be able to do both.

    DHCP Options (specifically 067) can have a significant impact on which NBP your client can access.  If you specify \Boot\x86\Wdsnbp.com you are forcing the client to the 32bit NBP.
    If you specify \Boot\x64\Wdsnbp.com you are forcing the client to the 64bit NBP.
    Niether option is an ideal solution, especially if you have a varied environment.
    I would take a look at the following article and see if it sheds some light on your question:
    PXE booting with WDS – DHCP Scope vs IP Helpers

  • How to show one prompt that works for both Graph and Table views?

    Have an analysis with a graph and a table. The information in the table and graph are different so cannot use a pivot table w/graph.
    Each view has a view prompt for Year and Month (tried both separately and also as one combined column ‘201001’) so user can easily change months.
    Too much data to use the slider because it will not graph.
    Page prompt does not allow user to switch dates easily.
    Since this will be a link from a dashboard, do not think making this a dashboard from a dashboard would be good so not a dashboard prompt.
    Saw something about Master Detail linking, but does not appear to work with graph prompts.
    How would the analysis be configured to show one prompt that works for both the Table and the Graph?
    One prompt would change both the table and the graph.

    Master Detail Linking almost works.
    Table view can show all the results without error.
    Graph view needs to be limited or errs with "Exceeded configured maximum number of allowed input records."
    Is there a way to set the initial Master Detail Linking value to the top sorted value?

  • HT5622 My wife and I both have MacBooks and both are associated with my apple ID since I bought them. However, this means that Safari is linked for both her and I as well as our contacts etc. Can I still use mine for apps for her but associate hers with h

    My wife and I both have MacBooks (I have MacBook Pro and she has Air) and both are associated with my apple ID since I bought them. However, this means that Safari is linked for both her and I as well as our contacts etc. Can I still use mine ID for apps for her but associate hers with her own ID that I have yet to make?

    Well with the MS Hotmail/Outlook.com account that is hard. But she should be able to link all of it to the iCloud system using her Apple ID.
    I suggest you do a Google search for "link contacts, Calendars, iMessage with iCloud".
    For some stupid reason MS has limited the syncing/linking of only emails and Notes with the Hotmail/Live Mail/Outlook.com system.
    They have not included any Exchange features for syncing all that info. That is unless you are using Outlook 2013 and that is only for Windows.

  • Updated 2.3.3 for both x10i and x10a (ALL KITS)

    Updated 2.3.3 for both x10i and x10a (ALL KITS)
    http://www.topsony.com/forum/local_links.php?catid=4556
    download FlashTool
    http://forum.xda-developers.com/showthread.php?t=920746
    or
    http://androxyde.github.com/Flashtool/
    "I'd rather be hated for who I am, than loved for who I am not." Kurt Cobain (1967-1994)
    Solved!
    Go to Solution.

    this is how to add more Internal Memory it's a long process but its worth it
    1) backup everything (Check above)
    2) backup your SD card
    on your PC
    1) open any folder -> click on tools -> properties -> view -> show hidden files
    2) mount the SD card, go to your SD card, press Ctrl + A then Ctrl C, on your desktop create a new folder, open it, then press CTRL + V
    now this is where it gets AWEOME-ER
    Guide to using Link2SD on your Xperia smartphone
    This guide may seem lengthy, but trust us when we say it is straightforward. All steps have been documented which makes it look daunting. Read each section carefully and follow the steps outlined to install Link2SD.
    1. PREPARATION
    Please make sure you have completed all of the following before starting the tutorial.
    On your PC:
    – Install the necessary drivers for your Xperia smartphone onto your PC/laptop. The easiest way to do this is to ensure that Sony Ericsson PC Companion is installed on your PC. Once installed, connect your phone to complete the process.
    – Download and install MiniTool Partition Wizard onto your PC or laptop.
    On your Xperia:
    – Enable USB de-bugging mode: Setting –> Applications –> Development –> Tick ‘USB debugging’
    – Enable the ability to install unknown apps: Setting –> Applications –> Tick ‘Unknown sources’
    – Install Link2SD from Android Market onto your Xperia smartphone. It is a free download.
    2. ROOT
    3. BACKUP MEMORY CARD
    As we will be creating a partition on your microSD memory card, make sure you create a backup just in case anything goes wrong.
    a) Create a new folder on your PC and name it anything you want, such as ‘SD_Backup’
    b) Connect your phone to the PC, navigate to your memory card and copy the contents to the backup folder.
    4. CREATE SECONDARY PARTITION
    You now need to create a secondary partition on your microSD memory card that will enable you to use Link2SD.
    Note: We will use MiniTool Partition Wizard to create a secondary partition on your microSD card. This partition can be ext2, ext3, ext4 or FAT32. We will use FAT32 as it is supported on all phones and should lead to less troubleshooting later. You can use any partition manager of your choosing, but the steps below guide you through MiniTool Partition Wizard.
    There is no need to wipe your memory card when going through this process, just ensure you have at least 0.5GB to 1.0GB of free space to make it worthwhile. You also do not need to use a microSD card adaptor as the process below creates the partition whilst the phone is connected to your PC.
    a) Connect your handset to the PC via USB and then launch MiniTool. You should see the details pop up under ‘Disk 2′.
    b) Click on the memory card under Disk 2 in MiniTool and then in the left pane, press ‘Move/Resize Partition’. On the blue bar under ‘Size and Location’, move the right arrow towards the left to create the size of the secondary partition desired. In the example below we created a secondary partition with 1018.63MB of space. This value can also be typed in manually in ‘Unallocate Space After’.
    c) Once this is done you should see that your memory card is now split into two partitions under Disk 2 of MiniTool. Right click this new partition and then press ‘Create’.
    If you see this pop-up below, just press ‘Yes’ to continue.
    d) You should then see this ‘Create New Partition’ window. Under ‘Create As’ click Primary and then under ‘File System’ click FAT32. Leave the cluster size as default and you can assign whichever drive letter you want. Once finished press OK.
    e) This should bring you back to the main MiniTool screen. Now hit the ‘Apply’ button on the top-left of the screen, denoted by a tick symbol.
    This will bring up another pop-up window and will take several minutes to both resize and create the secondary partition.
    If successful, you should see message below. Congratulations your card is ready to use in conjunction with Link2SD.
    5. LINK2SD
    This application makes it easy for users with root privileges on their phone to move applications to the SD card.
    a) Open the Link2SD app on your phone. You should be greeted with the following menu, check the FAT32 option and click OK.
    You will then see the Superuser Request, click ‘Allow’.
    Once you see the following message, restart your phone. The app should now be ready to use.
    b) To make sure everything is installed correctly. Click the Menu button and go to ‘Storage Info’. This will show you the internal memory and your two partitions on the memory card. In our case, you can see that the second partition has 1GB free.
    c) Now you need to move the apps of your choice to the memory card. Click the Menu button and press ‘Multi-select’.
    Choose which apps you want to move by clicking the tick box next to the app. System apps are greyed out and cannot be selected. Link2SD can only move apps that are already on the internal memory. If you have apps already on your SD card, you will need to move them back to the internal memory before you can link them with Link2SD.
    If you want to move all of your apps, pressing the menu button will bring up another menu allowing you to do this.
    d) Once you have chosen which apps you want to move, you then need to hit the menu button and press ‘Actions’, which will bring up the following menu. Press ‘Create Link’.
    Leave all three check boxes ticked and press OK. Link2SD will now do its work and move/link the selected apps to your memory card.
    Once finished, you should see that the apps you have moved have ‘Linked -> SD Card’ in red font in the Link2SD app list. Reboot your phone.
    e) Congratulations your phone is now using Link2SD! You should now go to Settings by pressing the menu button and configure how you would like Link2SD to work. The main decision here is whether you want to Auto Link newly installed apps to the memory card. Given that you’ve gone through the hassle of installing Link2SD we suggest you enable Auto Link and make worrying about your internal memory a thing of the past.
    Special Thanx to the Xperiablog
    http://www.xperiablog.net/2011/12/12/link2sd-guide-never-worry-about-internal-memory-limits-again/

  • I have a BE6000 server, is it possible to me to make it do a DHCP for both voice and data? Kindly guide me through

    I have a BE6000 server, is it possible for me to make it do a DHCP for both voice and data? Kindly guide me through. Thanks

    CUCM can perform DHCP functions, but it's not meant to replace this functionality from a router or switch, which are the most common places to configure DHCP.
    I assume you'll have at least one of those, why not configure it there??

  • GRC value for both GR and IR

    Hi,
    During GR, GRC account is debited and during IR, GRC account is credited.
    Now, when GRC account debited 1000 during GR, during IR time, the amount for GRC also 1000. Correct?
    1 May I know where in the configuration to tell the system that GRC amount for both GR and IR must be the same?
    2 Any possible that GRC amount for both GR and IR time different?
    Thanks
    Rgds

    Hi,
    GRC amount is GRC account is quantity x unit price ( say for eg: quantity 10,of its unit price).  There are no config settings to make the GR and IR grc amount to be same. The thing is need to flow the same information in GR and IR . Ultimately no discrpencis will come. The disripencies in GRC amount during GR and IR may occue. Please refer below linik which will give you better clarity. Thanking you.
    GRC clearing account
    Edited by: Padmasri Garapati on Nov 4, 2011 11:50 AM

  • Advice on improving graphics for app for both iPad and iPhone

    I am creating an app for both iPad and iPhone 4 and it looks terrible on the iPhone 4.
    I have created the Flash File in Flash CS5.5 IDE with Movie Size 1024 x 768 and I am using the following AIR for IOS settings:
    Rendering: CPU
    Device: iPhone and iPad
    Resolution: High
    All my graphics are vector so I assumed that it would look crisp on both devices. It is not as perfect looking on the iPad as it appears on my PC monitor but I can live with it. I can't however live with the iPhone 4 appearance.
    I am therefore seeking advice on how to improve the iPhone 4 appearance.
    As far as I am aware, there is not a way to use 2 sets of graphics, one for each device. Please correct me if this is wrong and it would offer me a solution.
    Would doing all the graphics as PNG be a solution?
    Btw I am using AIR 3.2 SDK if that has any relevance and my graphics are static.
    Thanks in advance.

    Thank you for the swift reply Colin. I do not recall setting a stage.quality setting - is the default setting low?
    I did a quick google search and see this appears to be the code I need. I assume I put this in the first frame of my Flash movie?
    stage.quality = StageQuality.MEDIUM;
    Thanks
    Paul

Maybe you are looking for

  • Line Item not showing in MB02

    Hi, In ML81N, there are 7 line items showing against 1 Purchase Order. and when we saw in MB02, then only 1 line item shows. How it's possible that in ML81N showing 7 line items but not showing in MB02. please clear...

  • Can't close Scrollable Result Set

    Hello all, I am using a ResultSet created with the statement... Statement stmt5 = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY); I am using the oci8 driver to connect to a 8.1.6 database. The resultset returns pr

  • Change Administrator Short Name OSX

    I bought a used 12" PowerBook G4. I have configured everything but I cannot change the original owner's Administrator Short Name. I did change the Administrator Account Name. Is there a simple way to change the Short Name? Can I go through the setup

  • How to connect to Novell Ldap

    Hi, i tried to connect to our ldap server via novell's jdbc:ldap bridge. but this caused a classDefNotFoundError in the runtime version. May you explain how i have to build an anonymous connection to a novell ldap server via JNDI? there's no ssl avai

  • Is it possible to upgrade my apple products?

    By upgrade i am NOT talking about over clocking or hardware upgrades, but what I want to ask is if it is possible to trade in my (older  not old but still available on Apple's website) hand those in, and get a better version of that product. More spe