Loading config files

Is there a "standard" way to load config files?
I remember reading something about ResourceBundler or something to that effect, but can't find that thread now.
Essentially i don't want to have to put "../../conf/myconf.xml" in my code. I also believe that some folks have suggested to simply throw the path to the conf file in my CLASSPATH and that should do the trick, but i'm not convinced that the CLASSPATH is the right place to put such paths.
Help?
Anybody?
Thanks.

Relative paths are a good solution, especially if you allow for the specification of the "root" or "home" directory of your application via a System property. Then you can look up the System property, and traverse your relative paths based on that.
- Phil

Similar Messages

  • Issues using multiple load-config files with ant

    Hello,
    Not sure if this is the correct place...
    I am creating an ant build script to compile our flex application. I am trying to use the default flex-config by doing <load-config filename="${flex.sdkPath}/frameworks/flex-config.xml"/> and project specific config file add the datavisualization module and any other libraries we might need in the future. I am trying to do this as I don't want to modify the flex-config.xml
    The issue I keep running into is I get a compiler error saying "unable to locate specified base class 'spark.comonents.application..". if I place the custome load-config file above the adobe default flex-config it gives errors stating it the "SeriesSlide" type
    <mxmlc file="${project.sourcePath}/FBApp.mxml"
             output="${project.output.binaryPath}/${project.output.fileName}.swf"
             locale="en_US"
             static-link-runtime-shared-libraries="false"
             static-rsls="false"
             use-network="true"
             accessible="false"
             debug="true">
             <load-config filename="${flex.sdkPath}/frameworks/flex-config.xml"/>
             <load-config filename="C:/Hudson/.hudson/jobs/FB 2.0 Flex/workspace/FBApp/FB-config.xml"/>
             <source-path path-element="${flex.sdkPath}/frameworks/libs"/>
             <source-path path-element="${project.sourcePath}"/>
             <library-path dir="${flex.path}/sdks/${flex.sdkVersion}/frameworks/locale/en_US"
                includes="*"/>
             <library-path dir="${project.libraryPath}"
                includes="*"/>
             <keep-as3-metadata name="Protected"/>
          </mxmlc>
    the following is my FB-config.xml
    <?xml version="1.0"?>
    <flex-config>
       <runtime-shared-library-path>
    <path-element>C:\Program Files\Adobe\Adobe Flash Builder 4 Plug-in\sdks\4.1.0\frameworks\libs/datavisualization.swc</path-element>
    <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.1.0.16076/datavisualization_4.1.0.16076.swz</rsl-url>
    <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
    <rsl-url>datavisualization_4.1.0.16076.swz</rsl-url>
    <policy-file-url>.</policy-file-url>
       </runtime-shared-library-path>
    </flex-config>
    It seems to be that the first "load-config" ant runs into is the only one that gets used. When looking around the internet I have multiple cases of where people say they have successfully used multiple load-config files.
    This one in particular.
    http://flashdevelop.org/community/viewtopic.php?f=13&t=5629&view=previous
    If I had to guess on what was wrong I believe my FB-config.xml file is incorrect but I can't find an example of anyones custom configuration file.
    Any guidance would be apprecaited.

    I am embarrassed to say that your solution answered my question.
    I was about 10 min away from rewriting my Ant script to just use the mxmlc.exe directly instead of the mxmlc ant tag. I kept running into the -flex-config+=YourConfig.xml for the command line option but never saw the xml variant.
    http://blog.flexexamples.com/2008/12/21/using-a-custom-flex-configxml-file-in-flex-builder -3/
    http://livedocs.adobe.com/flex/3/html/help.html?content=configuring_environment_3.html
    Does Flex have any documenation that shows all the different tags that are available like the Ant documenation?
    http://ant.apache.org/manual/Tasks/delete.html
    Thanks at ton.

  • ClassLoader in JAR file not loading config file properly

    Hi all,
    I have an application that I am going to deploy using JavaWS, and everything works fine except for one little hitch. I have a configuration file, nvacconfig, located at NVAC.jar/config/nvacconfig. I'm trying to load this file into my application using a ClassLoader, but it does not seem to be working.
    I have a method from a certain class that loads the configuration file. The class is not important, as it is part of an API that I cannot alter. This class has a load(String file) method, that loads the specified configuration file with a String argument. This works fine when I run my application from the command line and when the configuration file is not located in the JAR, but I need to include this configuration file in my JAR, so I can run my app in the JWS sandbox.
    To load the file when it is NOT inside a JAR, and is simply located at config/nvacconfig, I just use:
    id.properties.load("config/nvacconfig");and it loads the configuration file, nvacconfig.
    When I include the file in my JAR and try to load it using a ClassLoader, it does not seem to work, and the load method cannot find the file. This is how I am trying to accomplish this:
    ClassLoader cl = this.getClass().getClassLoader();
    URL url = cl.getResource("config/nvacconfig");
    String file = url.toString(); //I have also tried String file = url.getFile();
    id.properties.load(file);This does not work, and I'm not sure why.
    Is there something I am doing wrong? Is this the wrong way to go about this?
    Any advice would be greatly appreciated.
    Thanks,
    Dan
    Message was edited by:
    Djaunl

    try this:
    import java.io.*;
    import java.util.jar.*;
    import java.util.zip.*;
    public class ExtractFromJAR {
         public void extractFileFromJAR(String dest, String fileName) {
              try {
                   String home = getClass().getProtectionDomain().getCodeSource().getLocation().getPath().replaceAll("%20",
                   JarFile jar = new JarFile(home);
                   ZipEntry entry = jar.getEntry(fileName);
                   File efile = new File(dest, entry.getName());
                   InputStream in = new BufferedInputStream(jar.getInputStream(entry));
                   OutputStream out = new BufferedOutputStream(new FileOutputStream(efile));
                   byte[] buffer = new byte[2048];
                   for (;;) {
                        int nBytes = in.read(buffer);
                        if (nBytes <= 0)
                             break;
                        out.write(buffer, 0, nBytes);
                   out.flush();
                   out.close();
                   in.close();
              } catch (Exception e) {
                   e.printStackTrace();
         public static void main(String args[]) {
              new ExtractFromJAR().extractFileFromJAR(".", "file.txt");
    }

  • Loading config file does not remove prior configuration?

    After factory defaulting the Cisco 2504 WLC, I go to through the wizard for initial config then log into the web interface and download my 'full' config file to the controller. After the reboot I upload the config file to my PC and compare it to the original file, but it does not  match.
    Any ideas what could be causing this?

    Follow these guidelines when working with configuration files:
     Any CLI with an invalid value is filtered out and set to default by the XML validation engine. Validation occurs during bootup. A configuration may be rejected if the validation fails. A configuration may fail if you have an invalid CLI. For example, if you have a CLI where you try to configure a WLAN without adding appropriate commands to add the WLAN.
     A configuration may be rejected if the dependencies are not addressed. For example, if you try to configure dependent parameters without using the add command. The XML validation may succeed but the configuration download infrastructure will immediately reject the configuration with no validation errors.
     An invalid configuration can be verified by using the show invalid-config command. The show invalid-config command reports the configuration that is rejected by the controller either as part of download process or by XML validation infrastructure.

  • How to load a config file at appliaction startup

    Hi
    Is there a way to load a config file at application startup?
    I have the DB conection info in a config file.
    Right now m accessing that info by loading it using a classloader n then parsing it.
    When ever i access the DB this file is loaded n parsed.
    I want it to be loaded only once at startup n get cached.
    Then later on whenever i refer it, i shud get the cached copy.
    Is there a way to do this?

    Or you could just include a relevant static block.
    For instance you could have a utility class for accessing your DB in which you wrap jdbc code for querying, updating etc. This class would have code like the following:
    public class DBBean {
       private static DataSource ds = null;
       static {
          loadDataSource();
       public static loadDataSource() {
          // load your property file with the configuration info and setup your datasource
       public static void doSomething() {
          Connection con = ds.getConnection();
    }By placing initialization code in a public (?) method you can call this method to re-initialize your DataSource if e.g. you updated your datasource settings.
    Hope this helps

  • VSH may not load properly - Error message in config file

    Hi again,
    I use the following eem script to copy the running config to a tftp-server:
    event manager applet SAVE_CONFIG_TFTP  event cli match "copy running-config startup-config"  action 1.0 cli copy running-config tftp://1.2.3.4/SWITCHNAME-eem.cfg vrf management  action 2.0 event-default
    When I open the config file on the tftp-server with an editior I see the following error message on top of the configuration:
    SH may not load properly. (Not enough memory resource)Please check rlimit of your process.Errno: 1; Error string: Operation not permittedTYPE : 3new softlimit bf8c45e8 hardlimit bf8c45ecold softlimit f4240 hardlimit f4240!Command: show running-config!Time: Fri Apr 26 11:21:12 2013version 6.1(3)feature-set fexfeature-set mpls[...]
    Besides this message I have not yet seen any negative impact. I googled for the error message and found a Cisco bug CSCsr06310 which should have been fixed in NX-OS 4.0(4)
    Anyone an idea what this is about? Is there anything I can do about it?
    Regards
    Pille

    Hi Joseph,
    to be honest the negative impact of this error is not big enough to justifiy the effort of opening a TAC case. Thanks for your answer anyway.
    Regards Pille

  • Loading UI components from config file

    Hi,
    I wanted to know your opinion about a project that i'm working on.
    The inicial idea of the project is to have a config file (file.ini) with a syntax similar to this one:
    [Component1]
    type = sevenseg
    width = 200
    height = 50
    numberOfDigits = 5
    foregroundColor = green
    backgroundColor = grey
    [Component2]
    type = button
    width = 50
    height = 20
    command = GETLED 3
    [Window]
    width = 500
    height = 300The application needs to read the file when it starts and after that, it needs to build the interface based in the config file. I think this is the easy part.
    The most difficult part is that i also want the application polling a webserver for data in order to refresh the values displayed in the components and also, when there is some input action (clicking a button, changing a slider, etc) i want to send it to the server.
    The problem is that I'm not imagining a way of linking the various components that will be in the UI while using this config file.
    Do you have any ideas or do you think this can be done?
    The purpose of reading the "UI" from the config file was to reduce the writing of code, since this application will be used by people with little skills in programming.
    And in the future, it could be possible of creating an application to create all the UIs needed in a way similar to netbeans and swing based UI.
    Thanks for your attention.
    João Gonçalves
    PS: If this isn't possible, I'm also considering the possibility of creating a netbeans plugin to design the UI. Here I don't avoid the coding problem, but i can reduce it a bit.

    Well, I'm going to try to explain it a bit better.
    The application that i'm going to do is the interface and it's going to be done in javafx, (obviously).
    The application will be the user interface of a remote device that will be located somewhere in a LAN. The webserver is located in the middle, between the client (UI) and the device, and is the webserver that it's going to make the bridge between the client and the device.
    The architecture will be something like this:
    Client <------> WebServer <------> device
    The idea of the project is to make it possible to use a large number of devices, all different. So the UI that is going to control each device will need to be customized in order to look similar to the control panel of the device and to permit the user to interact with this one like if he was in front of it.
    The reason of my question is because it was asked to me if it was possible to create a config file and load the UI components and layout from the file, to avoid dealing with the code, since the persons who are going to configure the devices are not software developers and don't know too much about java and programming.
    This is why i made this post, to know the opinion of people more experienced than I in programming, and above all, in javafx.

  • Problem loading jaas.config file

    Hi,
    i've built an rmi server that works as an authentication server.
    It uses jaas and an nt login module to manage authentication on windows.
    But when i try to load the jass.config file, i get errors : it tells that there is a security exception and that the file jaas.config was not found!!
    I set all necessary properties in my application :
    System.setProperty("java.security.auth.login.config", "jaas.config")
    Do you know where do i have to put my jaas.config file for it to be found by the application?
    In the classpath?
    Thanks,
    Philippe

    HI, I am not sure this will help you, but you can try putting your .conf where your java_home is pointing.
    Example : D:\j2sdk1.4\jre\lib\ext\test.conf

  • Load SWF file in main SWF with parameters

    Hello everybody,
    I recently got a new flash Application which is a Photo Gallery.
    This App is made of multiple folders (source files), a FLA file, a SWF with its javascript SWFObject and an Html page which instantiate this App with some parameters (size, config file path, ...).
    It needs an XML file to find all the Photos it displays, to do it I need to configure my application in the HTML Page and give it the "xml_path" :
    var so = new SWFObject("index.swf", "gallery", "249", "249", "10", "#111111");
    so.addVariable("xml_path","load/config.xml"); // this line is adding the path to the xml file make sure that it's name is xml_path
    so.addParam("allowfullscreen","true"); 
    so.write("flashcontent");
    By the way, I have a second application, the WebSite, which have to display the Gallery SWF in its "Gallery" page.
    Here is how I do it at the moment (in ActionScript3) :
    var swfRequest:URLRequest = new URLRequest("C:/......../Galerie/index.swf");
    var swfLoader:Loader = new Loader();
    //Charge le SWF Galerie dans le SWF Site
    swfLoader.load(swfRequest, context);
    container1.addChild(swfLoader);
    //Positionne le SWF
    swfLoader.x=10;
    swfLoader.y=120;
    It successfully loads the Gallery application but It shows an error telling me it doesn't find the XML configuration file... In the HTML file I simply had to write the "so.addVariable("xml_path","load/config.xml");" to tell where the XML file is...
    So, my question is : How can I integrate my SWF application giving it some parameters like above, in Action Script 3?
    Thank you ,
    Patrick

    No, nothing with HTML.
    I have 2 SWF applications. One is the Gallery, and the second is my Main Page.
    My Main Page must integrate the Gallery module in one of its page.
    The problem is when I try to integrate it, I think I must give de future loaded SWF some parameters like this :
    (My Main SWF loading in HTML)
    var so = new SWFObject("WebSite.swf", "flashcontent", "520", "700", "10", "#111111");
    so.addParam("allowfullscreen","true");
    so.addParam("allowScriptAccess","always");
    so.addParam("menu","false");
    so.addParam("wmode","opaque");
    so.addParam("bgcolor","#000000");
    so.setAttribute("id","flash");
    so.write("flashcontent");
    It was for the Main App. For my Gallery SWF I had to load it like this (in HTML) :
    var so = new SWFObject("Gallerie.swf", "gallery", "249", "249", "10", "#111111");
    so.addVariable("xml_path","Galerie/config.xml"); // this line is adding the path to the xml file make sure that it's name is xml_path
    so.addParam("allowfullscreen","true"); 
    so.write("flashcontent");
    So at the beginning I had 2 different projects with an HTML page for each.
    Now I wan't to directly integrate the Gallery SWF into the Main SWF. And as you have seen I must give it some parameters such as the "xml_path" and "allowfullscreen". This must be done in ActionScript 3 and I don't know how...
    I think I have to use FlashVars but I don't know how. As I said before, I have tried using the loaderinfo.parameters, but it is in read-only...
    Do you have an idea of how I can make it work ?

  • Changing the Crystal Report dependency from 10.2 to 11.5 using config file

    Hi,
    We have an windows application in .net 2.0, which refers to Crystal Report 10.2 version. Now the dependency was being upgraded to 11.5. But we do not have the exact source code for the executable to change the dependency from 10.2 to 11.5.
    I have installed the CR 11.5 to the testing machine and tried to open the appilcation. it failed saying CR 10.2 dlls were missing
    Then  I changed the .net config files to change the dependency assembly as follows
    <runtime>
         <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
           <dependentAssembly>
             <assemblyIdentity name="CrystalDecisions.CrystalReports.Engine" publicKeyToken="692fbea5521e1304" culture="neutral" />
             <bindingRedirect oldVersion="10.2.3600.0" newVersion="11.5.3700.0"/>
           </dependentAssembly>
           <dependentAssembly>
             <assemblyIdentity name="CrystalDecisions.ReportSource" publicKeyToken="692fbea5521e1304" culture="neutral" />
          <bindingRedirect oldVersion="10.2.3600.0" newVersion="11.5.3700.0"/>
           </dependentAssembly>
           <dependentAssembly>
             <assemblyIdentity name="CrystalDecisions.Shared" publicKeyToken="692fbea5521e1304" culture="neutral" />
          <bindingRedirect oldVersion="10.2.3600.0" newVersion="11.5.3700.0"/>
           </dependentAssembly>
           <dependentAssembly>
             <assemblyIdentity name="CrystalDecisions.Windows.Forms" publicKeyToken="692fbea5521e1304" culture="neutral" />
          <bindingRedirect oldVersion="10.2.3600.0" newVersion="11.5.3700.0"/>
           </dependentAssembly>
          </assemblyBinding>
      </runtime>
    Now the application launched with out any issues. I thought the problem was sorted out.
    But when I tried to generate the report, there comes the problem
    During the report generation, I am getting the following error
    Crystal Reports
    An error has occurred while attempting to load the Crystal Reports runtime.
    Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly.
    Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required.  Please go to http://www.businessobjects.com/support for more information.
    OK  
    I do not want to install the 10.2 redistributable in teh machine also do not want to re-compile the sources changing the dependency
    Is there any way to achieve this ?
    Any help is much appreciated.
    Thanks
    Edited by: Balaji Narasimhan on Aug 3, 2009 5:28 PM

    No way that I know of. I believe once you change the dependency, you will have to recompile the project. Installing CR 10.2, may get this to work, but the app will most likely use the 10.2 references. Let's see if anyone else has any ideas.
    Ludek

  • How to load a file with out specifying its absolute location

    Hi,
    I'm having some config files in a specific location. I'm setting that folder path to the CLASSPATH and trying access those file just by giving its name.
    For eg: contents are in e:\config folder
    I set e:\config to CLASSPATH
    and trying to load the file which is in the above said folder.
    using getResourceAsStream(filename).
    The above approach is working in certain cases, but not working when i try to do in a class which under a big package structure.
    Can someone help me out, the reason for this unexpected behaviour.
    Please do suggest me, if u know some work-around for this problem.
    Thnaks in advance,
    Chandrasekhar

    Hi,
    Thank you. I tried by adding a forward slash, it started working.
    But I still have one doubt, when the program is within the package structure, then we have to give forward slash, where as if the program doesn't have any pkg structure we have to give only the file name without prefixing the slash.
    Any idea, why is it so ??
    Is it bcz, that getOutputAsStream() will prepend the package names, if forward slash is not given. Even if this is true, why providing a forward slash in a program with no packages doesn't work ?

  • Firefox cannot be closed; the following message appears: "Can't load resource file, can not run". How to solve this problem; I am using Windows XP SP3

    Whwn I want to close Firefox 9.x , a pop-up appears with the message: "Can't load resource file ......" . First I have to close this pop-up, then Firefox is closed. Also with other versions of Firefox I had this problem.

    i deleted the rdf and now the first window only (and any tabs in it) are maximised. i found this in the rdf
    <RDF:Description RDF:about="chrome://browser/content/browser.xul#main-window"
    screenX="4"
    screenY="4"
    width="1008"
    height="461"
    sizemode="Normal" />
    i tried changing normal to maximised; no effect. either i need also to change the numbers (to match a maximised window) or ff ignores this. i want to be able to open different sites in different windows, and not have to maximise them manually. ff never used to be broken, why break this? what possible security flaw was fixed by screwing up ff to never open maximised unless u hack it or delete certain config files?

  • Should I use .INI or .XML config files on cRIO?

    I'm looking to make a configuration file for an application running on a cRIO-9022. It will contain a small amount of configuration data (like numeric offsets, file paths, and IP addresses). I have 2 questions:
    1) Which file format should I use (.ini or .xml)? I have used .INI in the past because it is human readable/configurable with notepad, but it seems like .xml is becoming the new standard
    2) I would like to be able to modify config parameters on the PC that connects to the cRIO. What is the best way to modify the config file if it is stored on the cRIO hard disk (FTP the file to PC, make changes, FTP back? Network Streams?)
    --CLD--
    LV 6.1, 8.6.1, 2011 SP1, 2012 SP1

    JimMacD wrote:
    Thanks for the info.
    Any clever ways of accessing and changing the Config File data from a LV application running on a PC that doesn't require manually editing the file? I want the operator to just be able to click a button that says "cRIO Config", open a dialog, and change the values from there.
    uhm.... Yes!
    In This Post I show a bit of my hand on just exactly what I keep in a ini.config file (wel,l 1 section of a config file)  It would be nearly idiotic of me to not provide a Config editer since there are numerous Enum type defs in the delimited value for each key.  so since I, as the developer, know what sections (and possibly keys) are there I can read the file and load them to indicators on a config editor GUI.
    I've actually done this two ways-
    1) a seperate app that only "admin Engineers" know the location of "Launch Config editor.exe.
    2) In the application referanced above I have a button that opens a MODAL panel to edit the file (remember- I know what is in the file).   Users need permissions (Users- Passwords and permissions are kept in a config file, of course!) to even display the "Edit Sequence" button. but the "super user" can edit the step parameters. 
    HINT: one of these "Steps" loads a xml file to expose telnet commands and config for the uP on the DUT.   I expect the firmware on the Linux DUT will change in the future and did not want to rebuild my app whenever a typo was fixed in a command line tool.  BUT, since there are "special characters" that do not fit nicely into a .ini I exposed the telnet commands and line ends IP address and the login script  in a xml file.
    I know this did not directly answer your question!  but It should provide some food for thought.
    If you can share your data structure- I can be more specific. 
    Jeff

  • Using Bash script to edit config file

    This is a really simple question, but given that I'm just learning Bash scripting and having this solved now would be really illustrative for me, I would really thank some help here.
    I'm using uzbl, and running Tor+Polipo. So, as you will see below in the tail of the config file, there is a line to redirect the requests of uzbl through Polipo.
    # === Post-load misc commands ================================================
    sync_spawn_exec @scripts_dir/load_cookies.sh
    sync_spawn_exec @scripts_dir/load_cookies.sh @data_home/uzbl/session-cookies.txt
    # Set the "home" page.
    #set uri = https://duckduckgo.com
    # Local polipo proxy
    set proxy_url = http://127.0.0.1:8123
    # vim: set fdm=syntax:
    What I want to accomplish is to comment in/out that line with a key shortcut on Awesome. I've thought of doing 2 scripts to do so and using 2 differente key shortcuts, but I want to "toggle" the proxy redirection with only 1 shortcut. To do so, I suppose that the script should go something like:
    if
    tool 'set proxy_url = http://127.0.0.1:8123' config_file
    then
    tool '#set proxy_url = http://127.0.0.1:8123' config_file
    else
    if
    tool '#set proxy_url = http://127.0.0.1:8123' config_file
    then
    tool 'set proxy_url = http://127.0.0.1:8123' config_file
    fi
    fi
    I know little about sed, but I think is the tool for this job. The most intriging part to me is to ask sed to print the regular expression when it finds it in the config file, and use that as an input in the conditional statement.
    Well, this is a mess I have done here. Hope there is a simple answer to this.
    Thanks in advance.-

    You can do this with a single sed command:
    sed -i 's/^#set proxy_url/set proxy_url/;
    t end;
    s/^set proxy_url/#set proxy_url/;
    : end' config_file
    This edits the file in-place (-i) and first tries to replace the commented with the uncommented line. If that suceeds, sed jumps to the "end" label. If not, it tries to replace the uncommented with the commented line. Thus you don't have to include any logic about the current state: if the first substitution succeeds, the line was obviously commented, if not, it was uncommented, and the second substitution should succeed.
    Note that my knowledge of sed is very limited. There might be a simpler way to do this.
    EDIT: For the sake of example, here's how to do the same in bash using regular expressions. Note how this script needs to use a temporary file to simulate in-place editing, how it needs to process the file line by line manually, etc. All things that sed does out of the box...
    #!/bin/bash
    tmp=test.conf.tmp
    echo -n "" > "$tmp"
    while read line; do
    if [[ "$line" =~ ^#set\ proxy ]]; then
    echo "${line/\#/}" >> "$tmp"
    elif [[ "$line" =~ ^set\ proxy ]]; then
    echo "#$line" >> "$tmp"
    else
    echo "$line" >> "$tmp"
    fi
    done < test.conf
    mv test.conf.tmp test.conf
    To answer your original question, the line
    if [[ "$line" =~ ^#set\ proxy ]]; then
    reads: if the line begins with a "#", followed by "set proxy", then...
    Last edited by hbekel (2011-03-20 10:40:16)

  • How to I import MAX 4.6 config files into MAX 5.5? Missing Data Neighborhood. Strain gage set up is different.

    I have been trying to import my config file from MAX 4.6 into a new system running MAX 5.5 and daq 9.8.
    The data neighborhood does not appear, however my application sees the information. How can this be remedied? Start over?  I have a lot of inputs and would rather not have to recreate all of them.
    What is the difference between the strain gage settings in MAX 4.6 and MAX 5.5? The selection box for the bridge in 4.6 has a selection for "let niDAQ choose". Seems that is necessary to use the 4.6 config data. Try though I might, the readings in 5.5 do not match those in 4.6.     Is there a work around fo this? I don't want to have to perform an entire system calibration.
    Thanks
    Chris
    Solved!
    Go to Solution.

    Attached JPG's.
    Here is more information regarding the MAX Strain Set Up.
    Attached are screen shots from MAX 4.6 and MAX 5.5. 
    Hardware:  PXI chassis with bridge to a PC.  SCXI-1520 input card.
    Software: Old system:  Windows XP SP2 running MAX 4.6 with niDAQmx 9.0.2,   programming in LabView 2011
                       New system: Windows 7 running MAX 5.5 with niDAQmx 9.8.  Programming in LabView 2013
    5.5:  What is the gage factor?  Is that the mv/v sensitivity of the load cell?
    5.5:  Asks for Gage resistance, easy to look up and I entered the data, 350.
    5.5:  How do I determine the Initial Voltage?
    5.5:  No choice of using V Excitation for scaling
    5.5:  Is Full Bridge I the same as 4.6 Full Bridge?
    5.5:  Requires use of Strain in scale factor
    4.6:  Requires use of Volts in scale factor (flags an error if I try Strain and requests Volts)
    4.6:  Choosing to use Vex for scaling makes readings look similar to 5.5 readings, but still not correct. ie around -79 in 5.5 and around -50 in 4.6 vs. 5.2 without.
    Is there a way to set MAX 5.5 so that it provides the same starin set  up function as 4.6? If so, what is it?
    Thanks,
    Attachments:
    Max 4.6 Strain Set Up.jpg ‏32 KB
    Max 5.5 Strain Setup.jpg ‏23 KB
    MAX 4.6 Strain Scale 2.JPG ‏165 KB

Maybe you are looking for

  • PE7 Won't Open PE3 Files

    I've just moved from PE3 to PE7 and for the most part I'm having mixed results. One problem has occurred. Of the 27 prel files created with PE3 that I have, five of them fail to open with PE7. I get the following error message: "Sorry, a serious erro

  • Cisco Aironet 1300 Series Power

    Can the 1310ap receive it's power from a POE switch?

  • Need a Matrix Package or How to do in java?

    Hello, I have a project to do that consists of Translating, Scaling and Rotating shapes such as, circles, squares, triangles, pentagons, etc.... I have to translate.... in two dimention using 3 * 3 matrix. How do I accomplish this in java? is there s

  • Running Multiple Workflows from One Main Workflow

    So I am new to using the Automator, so I might be going about this the hard way. Any help would be great! I have created individual workflows that copy folder content from my desktop to a folder on a server. There are multiple ones, because they are

  • Need Build Advice/Critique Please

    This is my first post here so I'll start with a little info about myself and my video editing needs.  I'm an amateur when it comes to Adobe Premiere.  I used Vegas for a few videos.  I now have a subscription to the Creative Cloud, and have made a fe