Illegal instruments found

Hi,
When I delete any object in the enviroment, I get the message
"illegal instrument found delete it?"
Can someone tell me what this means?
Greetings,
Michiel

The problem is an address conflict. To answer your question at the end, yes, if the GPIB board has a particular address, it is not available for any instrument connected to the controller. All controllers/devices must have a unique address.
I don't remember how the NT configuration utility worked. It is possible that the GPIB configuration utility automatically configures GPIB1 for PAD1 and GPIB2 for PAD2, etc. In general, you should always configure your GPIB controller to be at primary address 0 and have your instrument(s) be configured for an address in the range 1-30.
The GPIB configuration utility lets you choose the GPIB number AND the GPIB primary address separately. Therefore, if you GPIB controller is GPIB1, go into the configuration utili
ty and configure it be at PAD0. Then everything should work.

Similar Messages

  • NI-488.2 no instruments found

    Using PCI-GPIB card with NI-488.2 version 1.6 (or 1.7) and Windows NT 4.0:
    - If a GPIB instrument is at GPIB address 1 on PCI-GPIB configured as GPIB1, this instrument is not found using N.I. "Scan for instruments" utility. If I change this GPIB instrument address to 0 or anyone from 2 to 31, the utility can find the instrument.
    - Same observation if I connect a GPIB instrument at address 0 on GPIB0, or at address 2 on GPIB2, etc.
    Is the PCI-GPIB card number used to configure it is then no more available for the address number of any instrument connected to this bus?
    Thanks.

    The problem is an address conflict. To answer your question at the end, yes, if the GPIB board has a particular address, it is not available for any instrument connected to the controller. All controllers/devices must have a unique address.
    I don't remember how the NT configuration utility worked. It is possible that the GPIB configuration utility automatically configures GPIB1 for PAD1 and GPIB2 for PAD2, etc. In general, you should always configure your GPIB controller to be at primary address 0 and have your instrument(s) be configured for an address in the range 1-30.
    The GPIB configuration utility lets you choose the GPIB number AND the GPIB primary address separately. Therefore, if you GPIB controller is GPIB1, go into the configuration utili
    ty and configure it be at PAD0. Then everything should work.

  • PXI-4070 with PXIe-1062Q+NIe-8360+Labtop Why? Max not found instrument.

    Dear all
    my condition
    PXI-4070 with PXIe-1062Q+NIe-8360+Labtop
    Window XP SP3
    NI-DMM 3.1
    Why? Max not found instrument.
    found PCI Device "PXI10:15::INSTR
    see picture
    How to fix this problem?
    Best Regard,
    Sermsak.
    Attachments:
    PXI-4070.jpg ‏42 KB

    Hello, 
    Is it possible to take another picture of MAX? That one is very pixilated and I can't quite make out the configuration/error. Does the chassis show up? Every now and then MXI compatibility software is needed for certain BIOS versions so this may be the cause. Did the system work ever before?
    Thanks,
    Eric E.

  • Code problem

    Hey i've this button on my applet that when clicked passes text entered in a textArea to a seperate class,then shows the result (after the class is finished with it), at least thats what its supposed to do. What happens is that a flock of errors occur. Can anyone spot the problem
    Here's the button code
    public boolean action (Event e, Object o)
         if (e.target == b1)
         first = text1.getText();
         ParseMe parser = new ParseMe(first);
            if( parser.answer()==1){
           showStatus("Answer was" + parser.answer());
           return true;
         }else{
           showStatus("Answer was" + parser.answer());
           return false;
       }and this is the class that the info's bein passed to
    package test.pkg;
    public final class ParseMe {
            //----------------- public interface ---------------------------------------
            public ParseMe(String definition) {
                    // Construct an expression, given its definition as a string.
                    // This will throw an IllegalArgumentException if the string
                    // does not contain a legal expression.
                    parse(definition);
            public double answer(){
              return this.value(1.0,1.0,1.0)+ this.computeStackUsage();
            public double value(double x) {
                    // Return the value of this expression, when the variable x
                    // has the specified value.  If the expression is undefined
                    // for the specified value of x, then Double.NaN is returned.
                    return eval(x, 0, 0);
            public double value(double x, double y) {
                    // Return the value of this expression, when the variable x
                    // has the specified value.  If the expression is undefined
                    // for the specified value of x, then Double.NaN is returned.
                    return eval(x, y, 0);
            public double value(double x, double y, double z) {
                    // Return the value of this expression, when the variable x
                    // has the specified value.  If the expression is undefined
                    // for the specified value of x, then Double.NaN is returned.
                    return eval(x, y, z);
            public String getDefinition() {
                    // Return the original definition string of this expression.  This
                    // is the same string that was provided in the constructor.
                    return definition;
            //------------------- private implementation details ----------------------------------
            private String definition;  // The original definition of the expression,
            // as passed to the constructor.
            private byte[] code;        // A translated version of the expression, containing
            //   stack operations that compute the value of the expression.
            private double[] stack;     // A stack to be used during the evaluation of the expression.
            private double[] constants; // An array containing all the constants found in the expression.
            private static final byte  // values for code array; values >= 0 are indices into constants array
                    PLUS = -1,   MINUS = -2,   TIMES = -3,   DIVIDE = -4,  POWER = -5,
                    UNARYMINUS = -6, VARIABLE_X = -7, VARIABLE_Y = -8, VARIABLE_Z = -9;
            private double eval(double variableX, double variableY, double variableZ) {
          // evaluate this expression for this value of the variable
                    try {
                            int top = 0;
                            for (int i = 0; i < codeSize; i++) {
                                    if (code[i] >= 0)
                                            stack[top++] = constants[code];
    else if (code[i] >= POWER) {
    double y = stack[--top];
    double x = stack[--top];
    double ans = Double.NaN;
    switch (code[i]) {
    case PLUS: ans = x + y; break;
    case MINUS: ans = x - y; break;
    case TIMES: ans = x * y; break;
    case DIVIDE: ans = x / y; break;
    case POWER: ans = Math.pow(x,y); break;
    if (Double.isNaN(ans))
    return ans;
    stack[top++] = ans;
    else if (code[i] == VARIABLE_X) {
    stack[top++] = variableX;
    else if (code[i] == VARIABLE_Y) {
    stack[top++] = variableY;
    else if (code[i] == VARIABLE_Z) {
    stack[top++] = variableZ;
    else {
    double x = stack[--top];
    double ans = Double.NaN;
    switch (code[i]) {
    case UNARYMINUS: ans = -x; break;
    if (Double.isNaN(ans))
    return ans;
    stack[top++] = ans;
    catch (Exception e) {
    return Double.NaN;
    if (Double.isInfinite(stack[0]))
    return Double.NaN;
    else
    return stack[0];
    private int pos = 0, constantCt = 0, codeSize = 0; // data for use during parsing
    private void error(String message) {  // called when an error occurs during parsing
    throw new IllegalArgumentException("Parse error: " + message + " (Position in data = " + pos + ".)");
    private int computeStackUsage() {  // call after code[] is computed
    int s = 0; // stack size after each operation
    int max = 0; // maximum stack size seen
    for (int i = 0; i < codeSize; i++) {
    if (code[i] >= 0 || code[i] == VARIABLE_X
    || code[i] == VARIABLE_Y || code[i] == VARIABLE_Z
    s++;
    if (s > max)
    max = s;
    else if (code[i] >= POWER)
    s--;
    return max;
    private void parse(String definition) {  // Parse the definition and produce all
    // the data that represents the expression
    // internally; can throw IllegalArgumentException
    if (definition == null || definition.trim().equals(""))
    error("No data provided to Expr constructor");
    this.definition = definition;
    code = new byte[definition.length()];
    constants = new double[definition.length()];
    parseExpression();
    skip();
    if (next() != 0)
    error("Extra data found after the end of the expression.");
    int stackSize = computeStackUsage();
    stack = new double[stackSize];
    byte[] c = new byte[codeSize];
    System.arraycopy(code,0,c,0,codeSize);
    code = c;
    double[] A = new double[constantCt];
    System.arraycopy(constants,0,A,0,constantCt);
    constants = A;
    private char next() {  // return next char in data or 0 if data is all used up
    if (pos >= definition.length())
    return 0;
    else
    return definition.charAt(pos);
    private void skip() {  // skip over white space in data
    while(Character.isWhitespace(next()))
    pos++;
    // remaining routines do a standard recursive parse of the expression
    private void parseExpression() {
    boolean neg = false;
    skip();
    if (next() == '+' || next() == '-') {
    neg = (next() == '-');
    pos++;
    skip();
    parseTerm();
    if (neg)
    code[codeSize++] = UNARYMINUS;
    skip();
    while (next() == '+' || next() == '-') {
    char op = next();
    pos++;
    parseTerm();
    if (op == '+')
    code[codeSize++] = PLUS;
    else
    code[codeSize++] = MINUS;
    skip();
    private void parseTerm() {
    parseFactor();
    skip();
    while (next() == '*' || next() == '/') {
    char op = next();
    pos++;
    parseFactor();
    if (op == '*')
    code[codeSize++] = TIMES;
    else
    code[codeSize++] = DIVIDE;
    skip();
    private void parseFactor() {
    parsePrimary();
    skip();
    while (next() == '^') {
    pos++;
    parsePrimary();
    code[codeSize++] = POWER;
    skip();
    private void parsePrimary() {
    skip();
    char ch = next();
    if (ch == 'x' || ch == 'X') {
    pos++;
    code[codeSize++] = VARIABLE_X;
    else if (ch == 'y' || ch == 'Y') {
    pos++;
    code[codeSize++] = VARIABLE_Y;
    else if (ch == 'z' || ch == 'Z') {
    pos++;
    code[codeSize++] = VARIABLE_Z;
    else if (Character.isDigit(ch) || ch == '.')
    parseNumber();
    else if (ch == '(') {
    pos++;
    parseExpression();
    skip();
    if (next() != ')')
    error("Exprected a right parenthesis.");
    pos++;
    else if (ch == ')')
    error("Unmatched right parenthesis.");
    else if (ch == '+' || ch == '-' || ch == '*' || ch == '/' || ch == '^')
    error("Operator '" + ch + "' found in an unexpected position.");
    else if (ch == 0)
    error("Unexpected end of data in the middle of an expression.");
    else
    error("Illegal character '" + ch + "' found in data.");
    private void parseNumber() {
    String w = "";
    while (Character.isDigit(next())) {
    w += next();
    pos++;
    if (next() == '.') {
    w += next();
    pos++;
    while (Character.isDigit(next())) {
    w += next();
    pos++;
    if (w.equals("."))
    error("Illegal number found, consisting of decimal point only.");
    if (next() == 'E' || next() == 'e') {
    w += next();
    pos++;
    if (next() == '+' || next() == '-') {
    w += next();
    pos++;
    if (! Character.isDigit(next()))
    error("Illegal number found, with no digits in its exponent.");
    while (Character.isDigit(next())) {
    w += next();
    pos++;
    double d = Double.NaN;
    try {
    d = Double.valueOf(w).doubleValue();
    catch (Exception e) {
    if (Double.isNaN(d))
    error("Illegal number '" + w + "' found in data.");
    code[codeSize++] = (byte)constantCt;
    constants[constantCt++] = d;
    /*public static void main(String args[])
    ParseMe me = new ParseMe("1");
    System.out.println(me.value(1,1,1) + ", " + me.computeStackUsage());
    any help would be well appreciated.
    cheers
    podger

    It looks like it parses a mathematical expression represented as a String with up to three variables (x, y, z), and will substitute x, y, and z with whatever values you give it. What is your "text" (value of "first") that you are trying to parse?
    Eventually, you probably want to have text fields for the user to enter x, y, and z, parse those text values as doubles, and pass those to your ParseMe instance by calling: parser.value(x, y, z);
    What happens if you type the following in the text field named "text1"?
    x + y + z

  • Error when installing Form Manager.

    Hi all,
    I'm trying to install Form Manager v. 7.0.1. When I run the configuration manager, the progress gets to 12% then displays the error code "LCMerror101" with the message "Livecycle module pdfagent-client could not be copied to working directory".
    Does anyone know what this error means? How can I work around it?
    I know the issue isn't related to disk space (20+ gigs free) and I'm using the administrator account to install. Any suggestions or tidbits of info would be much appreciated.
    Thanks,
    Stone.

    Here's a copy of the log file. lcm.log
    [2006-02-21 14:11:34,437], Runnable bean context: My Action (bean23), com.adobe.idp.install.lcm.LCMProcessManager, INFO , Copying component to working dir: com.adobe.idp.install.lcm.config.Component@857327[monitorui,../components/monitorui,./wor king/monitorui]
    [2006-02-21 14:11:36,750], Runnable bean context: My Action (bean23), com.adobe.idp.install.lcm.LCMProcessManager, INFO , Copying component to working dir: com.adobe.idp.install.lcm.config.Component@14b2db7[xmlform,../components/xmlform,./workin g/xmlform]
    [2006-02-21 14:11:38,718], Runnable bean context: My Action (bean23), com.adobe.idp.install.lcm.LCMProcessManager, INFO , Copying component to working dir: com.adobe.idp.install.lcm.config.Component@a65760[fontmanager,../components/fontmanager,. /working/fontmanager]
    [2006-02-21 14:11:48,312], Runnable bean context: My Action (bean23), com.adobe.idp.install.lcm.LCMProcessManager, INFO , Copying component to working dir: com.adobe.idp.install.lcm.config.Component@1e140bf[registry,../components/registry,./work ing/registry]
    [2006-02-21 14:12:30,593], Runnable bean context: My Action (bean23), com.adobe.idp.install.lcm.LCMProcessManager, INFO , Copying component to working dir: com.adobe.idp.install.lcm.config.Component@161bfa3[pof,../components/pof,./working/pof]
    [2006-02-21 14:12:32,390], Runnable bean context: My Action (bean23), com.adobe.idp.install.lcm.LCMProcessManager, INFO , Copying component to working dir: com.adobe.idp.install.lcm.config.Component@6c9220[workflow,../components/workflow,./worki ng/workflow]
    [2006-02-21 14:12:35,515], Runnable bean context: My Action (bean23), com.adobe.idp.install.lcm.LCMProcessManager, INFO , Copying component to working dir: com.adobe.idp.install.lcm.config.Component@1ed7524[fm,../components/formmanager,./working /fm]
    [2006-02-21 14:12:39,921], Runnable bean context: My Action (bean23), com.adobe.idp.install.lcm.LCMProcessManager, INFO , Copying component to working dir: com.adobe.idp.install.lcm.config.Component@a5c9f1[pdfagent-client,../components/pdfagent- client,./working/pdfagent-client]
    [2006-02-21 14:12:39,921], Runnable bean context: My Action (bean23), com.adobe.idp.install.lcm.LCMProcessManager, ERROR, Could not copy components
    com.adobe.idp.install.lcm.LCMException: Could not copy components
    at com.adobe.idp.install.lcm.LCMProcessManager.copyComponentsToWorkingDirectory(LCMProcessMa nager.java:463)
    at MyAction.execute(MyAction.java:165)
    at com.installshield.wizard.RunnableWizardBeanContext.run(Unknown Source)
    Caused by: com.adobe.idp.install.lcm.LCMException: Illegal state found: File does not exist
    at com.adobe.idp.install.lcm.LCMProcessManager.copyDirOrFile(LCMProcessManager.java:554)
    at com.adobe.idp.install.lcm.LCMProcessManager.copyDirOrFile(LCMProcessManager.java:508)
    at com.adobe.idp.install.lcm.LCMProcessManager.copyComponentsToWorkingDirectory(LCMProcessMa nager.java:459)
    ... 2 more
    [2006-02-21 14:12:40,015], Runnable bean context: My Action (bean23), MyAction, ERROR, LCMerror101{pdfagent-client}
    com.adobe.idp.install.lcm.LCMException: Could not copy components
    at com.adobe.idp.install.lcm.LCMProcessManager.copyComponentsToWorkingDirectory(LCMProcessMa nager.java:463)
    at MyAction.execute(MyAction.java:165)
    at com.installshield.wizard.RunnableWizardBeanContext.run(Unknown Source)
    Caused by: com.adobe.idp.install.lcm.LCMException: Illegal state found: File does not exist
    at com.adobe.idp.install.lcm.LCMProcessManager.copyDirOrFile(LCMProcessManager.java:554)
    at com.adobe.idp.install.lcm.LCMProcessManager.copyDirOrFile(LCMProcessManager.java:508)
    at com.adobe.idp.install.lcm.LCMProcessManager.copyComponentsToWorkingDirectory(LCMProcessMa nager.java:459)
    ... 2 more
    [2006-02-21 14:12:40,031], Runnable bean context: My Action (bean23), MyAction, ERROR, ErrorCode: LCMerror101, ErrorStr: Livecycle module pdfagent-client could not be copied to working directory.

  • Ultrabeat in Logic Pro X is missing drum kits

    Hi,
    So recently, I got Logic Pro X because I've been meaning to try producing house music with it. I was introduced to Ultrabeat in some tutorials saying to click the dropdown menu (at the top) and select 01 drum kits and choose Trance Kit 02. However, when I click the dropdown menu, I seem to only have 8 samples in the drum kit and none of them sound good at all. Why do I have only 8? I've seen other discussions where people have up to 25+, is this something that I can download from the additonal content? And if so, what is it called?
    Many Thanks!
    MChen.

    Try Drum Machine
    ....and also the Logic Studio 2 Compatibility Sounds and Instruments found under the Legacy entry.... along with the GB 11 Sounds and instruments.. and finally the Instruments found under Jam pack 1, Jam Pack Remix and Jam Pack Rhythm,
    Also make sure the Essential Sounds and Instruments set has downloaded completely too...
    Personally, if you have the space, I'd download all the content...  as there is so much on offer for free... that you may find useful in the future.

  • The struggle of creating a Custom ClassLoader for Native libraries

    Hello Everyone,
    I'm having a really hard time writing and using my own ClassLoader in a Java Applet.
    Context :
    As the this link shows - http://codethesis.com/tutorial.php?id=1 - loading and especially unloading native libraries through Java requires defining our own ClassLoader, and use it to instantiate a class loading a library. When the class using native libraries has finished execution, setting all references to the classloader and calling the garbage collector will cause the native library to be unloaded. The class to load within the custom classloader is thus read byte after byte from the jar and defined using the Classloader.defineClass(..) function. So that's what I did. But I've got two problems.
    Problem 1 :
    On one single machine over 15 tested, the magic number of a given class read from the Jar using Applet.class.getResourceAsStream(classname) takes a value different from CAFEBABE and the defineClass function then throws an "Incompatible magic value" exception (see below). The workaround I found is to force the first 4 bytes of the byte array read from the class with CAFEBABE. But I still would like to understand why it takes a different value on this machine.
    Exception in thread "thread applet-MyApplet.class-1" java.lang.ClassFormatError: Incompatible magic value 409165630 in class file Reader
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at NativeClassLoader.findClass(Unknown Source)
    Problem 2 :
    On windows, the NativeClassLoader works perfectly, but on Linux, I'm getting a java.lang.VerifyError (see below).
    Code is compiled with java 1.6.0_06 on windows XP. I tried to remove everything related to native code (remove .so load), the same error is raised.
    java.lang.VerifyError: (class: Reader, method: <clinit> signature: ()V) Illegal instruction found at offset 1
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
    at java.lang.Class.getConstructor0(Class.java:2699)
    at java.lang.Class.newInstance0(Class.java:326)
    at java.lang.Class.newInstance(Class.java:308)
    Code :
    NativeClassReader (custom) :
    public class NativeClassLoader extends ClassLoader {
        //the unique instance of the NativeClassLoader
        private static NativeClassLoader instance;
        private NativeClassLoader () {
            super(NativeClassLoader.class.getClassLoader());
         * Get the Singleton instance of the class
        public static NativeClassLoader getInstance () {
            if (instance == null)
                instance = new NativeClassLoader();
            return instance;
        public static void dispose () {
            instance = null;
         * Load a class using its full java name (prefixed with package)
        public Class findClass (String theName) {
            byte[] b = null;
            try {
                b = loadClassDataFromJar(theName);
                Class clazz = defineClass(theName, b, 0, b.length);
                resolveClass(clazz);
                return clazz;
            } catch (Exception e) {
                return null;
         * Gets the bytes of a class file stored in the current jar using
         * its full class name
        public byte[] loadClassDataFromJar (String theName)
                                     throws Exception {
            String filename = "/" + theName.replace('.', '/') + ".class";
            InputStream is = SawsApplet.class.getResourceAsStream(filename);
            BufferedReader br = new BufferedReader(new InputStreamReader(is));
            //compute file size
            Vector vChars = new Vector();
            int c;
            while ((c = br.read()) != -1)
                vChars.add(new Byte((byte) c));
            //fill in byte array with chars read from the buffer
            byte[] buff = new byte[vChars.size()];
            //workaround for a bug on one (some) Vista machine(s)
            //force magic number to CAFEBABE instead of 18635F3E
            if (vChars.size() > 3) {
                buff[0] = (byte) 0xCA;
                buff[1] = (byte) 0xFE;
                buff[2] = (byte) 0xBA;
                buff[3] = (byte) 0xBE;
            for (int i = 4; i < vChars.size(); ++i)
                buff[i] = ((Byte) vChars.get(i)).byteValue();
            return buff;
    }Reader (loading native libary) :
    public class Reader {
       static {
         System.loadLibrary("myLib");
        public static native String getData();
    }Main :
        NativeClassLoader cLoader = NativeClassLoader.getInstance();
        Class clazz = cLoader.findClass("Reader"); // ClassFormatError thrown here
        Object reader = clazz.newInstance(); // VerifyError thrown here
        Method m = clazz.getMethod("getData");
        String s = m.invoke(reader);
        print(s);
        s = null;
        m = null;
        reader = null;
        clazz = null;
        cLoader = null;
        NativeClassLoader.dispose();
        System.gcAny ideas would be really appreciated :-)
    Guillaume

    Are you using the executable exe file and the filename as a parameter in the custom task?
    Andreas Baumgarten | H&D International Group

  • External Table for Variable Length EBCDIC file with RDWs

    I am loading an ebcdic file where the record length is stored in the first 4 bytes. I am able to read the 4 bytes using the db's native character set, ie;
    records variable 4
    characterset WE8MSWIN1252
    data is little endianBut I have to then convert each string column individually on the select, ie;
    convert(my_col, 'WE8MSWIN1252', 'WE8EBCDIC37')If I change the character set to ebcdic;
    records variable 4
    characterset WE8EBCDIC37
    data is little endianI get the following error reading the first 4 bytes;
    ORA-29913: error in executing ODCIEXTTABLEFETCH callout
    ORA-29400: data cartridge error
    KUP-04019: illegal length found for VAR record in file ...We can not use the ftp conversion as the file contains packed decimals.
    There are other options for converting the file but I am wondering if was able to get an external table to read a native ebcdic file without a pre-process step.

    I am loading an ebcdic file where the record length is stored in the first 4 bytes. I am able to read the 4 bytes using the db's native character set, ie;
    records variable 4
    characterset WE8MSWIN1252
    data is little endianBut I have to then convert each string column individually on the select, ie;
    convert(my_col, 'WE8MSWIN1252', 'WE8EBCDIC37')If I change the character set to ebcdic;
    records variable 4
    characterset WE8EBCDIC37
    data is little endianI get the following error reading the first 4 bytes;
    ORA-29913: error in executing ODCIEXTTABLEFETCH callout
    ORA-29400: data cartridge error
    KUP-04019: illegal length found for VAR record in file ...We can not use the ftp conversion as the file contains packed decimals.
    There are other options for converting the file but I am wondering if was able to get an external table to read a native ebcdic file without a pre-process step.

  • Where do i find the classic hip hop remix ultrabeat setting in logic pro x, i have downloaded all drum kit additional content and have yet to see it. please help!

    i have been looking all over for this setting, really wanna make hip hop beats with this ultrabeat setting but i cant find it, it says i have intalled all the drum kits but i didnt install a few other packages i thnk have nothing to do with ultrabeat, just wondering how you get this and more drum kits for ultrabeat, i have about 15 but have seen people with close to 30 so please help me out on where to get additional kits! i have downloaded all additional and still cant find it!

    Try Drum Machine
    ....and also the Logic Studio 2 Compatibility Sounds and Instruments found under the Legacy entry.... along with the GB 11 Sounds and instruments.. and finally the Instruments found under Jam pack 1, Jam Pack Remix and Jam Pack Rhythm,
    Also make sure the Essential Sounds and Instruments set has downloaded completely too...
    Personally, if you have the space, I'd download all the content...  as there is so much on offer for free... that you may find useful in the future.

  • Resource name programatically

    I am trying to obtain the PXI resource name "PXI1Slot2" programatically.
    How to obtain object handle whch viGetAttribute() requires?
    viOpenDefaultRM (&rsrcHandle); returns ViSession.
    Is there a attribute to obtain the Slot number?
    int CVICALLBACK FindResources (int panel, int control, int event,
    void *callbackData, int eventData1, int eventData2)
    ViSession rsrcHandle;
    ViUInt32 numFound;
    char InstrDescriptor[256];
    ViFindList MyFindList;
    int i;
    int chassisNumber;
    switch (event)
    case EVENT_COMMIT:
    // First, open a VISA session.
    viOpenDefaultRM (&rsrcHandle);
    // Now, do an initial search. viFindRsrc returns the instrument descriptor
    // of the first instrument found and the number of total resources found.
    viFindRsrc (rsrcHandle, "?*PXI?*INSTR", &MyFindList, &numFound, InstrDescriptor);
    viGetAttribute (rsrcHandle, VI_ATTR_PXI_CHASSIS, chassisNumber);
    // When finished, close the VISA session.
    viClose (rsrcHandle);
    break;
    return 0;
    Solved!
    Go to Solution.

    I am working to get something that would identify the existence of the PXI or PXIe, or lack of existence on the system where my app is running.
    This looks promising, but throws all sorts of error when I run it.
    First, let me say I have an app that runs on a PC, PXI or PXIe system. The PXI has an embedded controller, the PXIe has an MXI Express controller.
    I would like to have something that would verify the chassis that I have.
    So, I'm using the code from above:
    // First, open a VISA session.
    viOpenDefaultRM (&rsrcHandle);
    // Now, do an initial search. viFindRsrc returns the instrument descriptor
    // of the first instrument found and the number of total resources found.
    viFindRsrc (rsrcHandle, "?*PXI?*INSTR", &MyFindList, &numFound, InstrDescriptor);
    viGetAttribute (rsrcHandle, VI_ATTR_PXI_CHASSIS, &chassisNumber);
    // When finished, close the VISA session.
    viClose (rsrcHandle);
    viFindRsrc give an error "insufficient location information or the device ir resoure is not present in the system"
    viGetAttribute gives an error "the specific attribute is not defined or supported by the reference resource"

  • LV6.1/GPIB-PCII/Keithley 617

    hi,
    just found some old stuff i wanted to try out while getting to know
    lv. gpib device works ok, although WinMe(card not happy with NT/2K)
    did not assign DAK/IRQ, I changed this and it appears to be working
    with them as well.
    when i tried to connect the 617 i did find a device that did respond,
    but when i dl'd the 617 drivers all i get is a unknown VISA device?
    anyone got any experience with this? i could not find anything on the
    subject in the lv manuals.
    Thor Anders

    On Fri, 11 Jan 2002 07:12:41 -0800 (PST), Dennis Knutson
    wrote:
    >I'm a liitle confused. Do you get the error in LabVIEW or in MAX? The
    >driver is for LabVIEW to communicate to the instrument. LabVIEW uses
    >the GPIB card configured in MAX to talk to the instrument via the VISA
    >api or direct GPIB calls. If the card is correctly configued in MAX,
    >you should be able to open Devices and Interfaces, right click on the
    >GPIB card and select Scan for Instruments. Any instrument found, you
    >should be able to use MAX to read and write to. Also, what version of
    >MAX and NI.488.2 are you using? MAX 2.1 and NI.488.2 doesn't list the
    >GPIB-PCII card as supported. If you're using an older version, you
    >might be having a compata
    bility problem with either VISA or GPIB
    >driver and Win/ME. What did you use to successfully communicate with
    >the one instrument?
    ok, from the top:
    I have LabView 6.0 installed, running MAX 2.0.3.6 and NI-488.2 driver
    1.60 on Windows ME.
    I installed the GPIB-PCII and windows installed it at a certain IO
    adress. I set the jumpers for this IO and when I then scanned for the
    instrument I found 'something that I could communicate with.'
    I figured the GPIB should use IRQ and DMA so I reinstalled the card
    until MAX were satisfied with it using DMA and IRQ.
    I then created a ke617 folder under instr.lib and put the ke617.lib
    and dir.mnu files there.
    now, in MAX, i cannot find an instrument when I scan for it, and the
    'unknown VISA resource' pops up.
    I'll try to upgrade max and the NI-488-2 driver and se what happens.
    Thor A

  • Alias field not "sticking"

    I've defined a BIP data set using an OBIEE data model. I can change the column Aliases in the Query Builder - Conditions screen. They show up in the SQL Query box on the Data Set page. But if I go back into the Query Builder, the aliases are all gone.
    Can someone please confirm this bug, or tell me what I'm doing wrong? Before you ask, YES, I'm saving immediately after every step.
    I'm also periodically (but not predictably) getting an error popup that says "Illegal character found in the alias". This happens from time to time when I click on an Alias column which I haven't even touched previously - it's the default Alias from the column name. Any suggestions on that little irritant would also be welcome.

    Hi
    I think that BIP issues the logical sql to the BIServer. BIServer then retrieves and formats the data into XML and sends it back ie the aliases are at best ignored by the BIServer and might be what is causing your intermittent error.
    Ill try and confirm with the dev team
    Regards
    Tim

  • Practice Exam for 1z0-050

    Hi,
    I am preparing for 1z0-050 exam to get 11g OCP. I am thinking of buying 'Transcender' - 1z0-050 Practice Exam.
    Has anyone used these practice exams and Flash Cards from Transcender for 1z0-050? If yes, do you recommend the material from Transcender?
    I have used the Transcender practice exams for 042, 043 and 047 in the past and I found them very useful.
    However for all those exams I used a very good Study Guide to supplement the Practice exams.
    For 050 exam, based on the Web Search there are only 2 books, Sam Alapati and Freeman. Reviews for both the books are not that great.
    Looks like Sam Alapati book has lot of errors.
    Can someone please post there experience regarding the Transcender practice exam for 1z0-050?
    Thanks in advance.

    I used a practice test from SelfTest Software, which is produced by the same company, Kaplan. I thought their practice test for that exam was very good. I only have one complaint: Some of their referenced materials (websites, etc) were illegal materials found on sites like docstoc. I hope they've removed those. Anyway, I also had heard that Alapati's book was not so good, but it was the only book I used. When I heard that, I decided to glean through the book quickly & try to learn elsewhere. This site is helpful:
    http://www.oracle-base.com/articles/11g/Articles11g.php#ocp
    and also this:
    http://www.oracle.com/technetwork/articles/sql/index-099021.html

  • JOptionPane and Threads

    I have a Class called Execute which runs as a thread. If this fails, then I want to show a JOptionPane from the main thread saying it failed (this works), but also I want to create a JOptionPane within the run() method of Execute stating the reason for the failure.
    I can not put a JOptionPane directly inside the run method 'cos it doesn't get rendered correctly, so I run this in it own thread. Only trouble is that now I have two modal dialog boxes appearing simultaneously; what I want is to have them appear consecutively. I have tried to join the thread that creates the pop-up but then it does not get rendered. Any ideas? I have posted an extract of the code below for testing
    public class Execute implements Runnable {
         File success = new File ("/ukirtdata/orac_data/deferred/.success");
         File failure = new File ("/ukirtdata/orac_data/deferred/.failure");
         success.delete();
         failure.delete();
         try {
             success.createNewFile();
             failure.createNewFile();
         catch (IOException ioe) {
             logger.error("Unable to create success/fail file", ioe);
             return;
         SpItem itemToExecute;
         if (!isDeferred) {
             itemToExecute = ProgramTree.selectedItem;
             logger.info("Executing observation from Program List");
         else {
             itemToExecute = DeferredProgramList.currentItem;
             logger.info("Executing observation from deferred list");
         SpItem inst = (SpItem) SpTreeMan.findInstrument(itemToExecute);
         if (inst == null) {
             logger.error("No instrument found");
             success.delete();
             return;
         String tname = QtTools.translate(itemToExecute, inst.type().getReadable());
         // Catch null sequence names - probably means translation
         // failed:
         if (tname == null) {
             //new ErrorBox ("Translation failed. Please report this!");
             logger.error("Translation failed. Please report this!");
             new PopUp ("Translation Error",
                     "An error occurred during translation",
                     JOptionPane.ERROR_MESSAGE).start();
             success.delete();
             return;
         else{
             logger.info("Trans OK");
             logger.debug("Translated file is "+tname);
                failure.delete()
                return;
        public class PopUp extends Thread implements Serializable{
         String _message;
         String _title;
            int    _errLevel;
         public PopUp (String title, String message, int errorLevel) {
             _message=message;
             _title = title;
             _errLevel=errorLevel;
         public void run() {
             JOptionPane.showMessageDialog(null,
                               _message,
                               _title,
                               _errLevel);

    Comeon,
    Someone must have some idea. I have tried making popup extend JOptionPane and implement Runnable, added a window listener which sets a boolean popDisplayed on windowOpen and windowClose, but this gets me nowhere (I have a Thread.sleep in the code as well)

  • CheckDB error

    Hello!
    I have an error in T-code DB13 checkDB in my BI system
    Illegal value ' ' found in DBCHECKORA field 'CHKVAL' for key 'PROF LOG_ARCHIVE_START' - ignoring the record
    What should i do about this

    Hi Robert,
    Check you oracle parameters in your spfile or init<SID>.ora, value of LOG_ARCHIVE_START should be either TRUE or FALSE. Also check the value of the Database check condition on DB17 match the value on the profile.
    Regards
    Juan

Maybe you are looking for