ViFindRsrc returned 0xBFFF0011

I am trying to setup a new computer to run the application I have already developed. I have run this application on a few other computers of similar kind and it was not hard setting them up. But this time I am when I open MAX, In the Devices and Interfaces list I see “NO Visa Resources found”.
I see all my instruments connected using GPIB and I can communicate with them effectively. Initially I could not see the device which I connect using RS232, I created a port and I could see that too and I can communicate with that instrument sending commands back and fourth through the visa panel.  When I open my application, I usually see a drop down list with the equipment addresses to select the appropriate one. But now I do not see the drop down list. When I manually type the equipment address, the application is not able to connect to the equipments and the program does not run.   I am unable to figure out what can cause this to happen. I am positive it will be something small that I am missing out on.
Thanks,
Nevil    

You should not have to create a port in MAX. There could be something wrong with the port itself or with your VISA installation. Since the 'find instruments' in MAX uses low level GPIB functions and not VISA, the fact that these instruments are detected does not mean that everything is fine with VISA. Your GPIB instruments should be listed in a VISA reference control unless you are doing some filtering to just show serial ports.
Are you installing NI-VISA runtime or the full NI-VISA? What version of NI-VISA are you using and what did you use to install it?

Similar Messages

  • ViFindRsrc returns nothing using VISA 14.0.1

    I have software that uses the following method to identify PXI card addresses in a PXI chassis.
    viOpenDefaultRM (&rm);
    viFindRsrc (rm, "?*", &vi, &retCnt, desc);
    viFindNext (vi, desc);
    viOpen(rm, descs[i], 0, 0, &vi);
    viGetAttribute(vi, VI_ATTR_MODEL_NAME, &model);
    viGetAttribute(vi, VI_ATTR_MANF_NAME, &mfg);
    viClose(vi);
    This works on all PXI systems so far using NI VISA 5.4 or earlier.
    So the problem is that now we have NI VISA 14.0.1 installed and this no longer works.
    I can't find anything about NI discontinuing this functionality, so I am asking if anyone know why this would stop working?

    I would like to change the issue regarding this functionality and NI VISA.
    It seems as though I will only be able to retrieve the top layer of the VISA structure. Basically, is you open NI MAX and view the Devices and Interfaces, whatever shows up there without going down any further, that is what I can see using the code I have.
    The problem is that VISA 5.4 placed everything on the top-level and VISA 14 places PXI cards UNDER the PXI Chassis.
    So the only thing I can see is the chassis and none of the instruments in the chassis.
    In order to not change my code just yet, is there a way to have all PXI instruments show up on the same level as the PXI Chassis in NI MAX 14?

  • 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"

  • NI VISA Version Differences

    I have a driver for a third party card that was developed by National Instruments. The driver works with LabVIEW 7.0 and NI VISA 3.0. The driver does not appear to work with LabVIEW 7.1 and NI-VISA 3.2. I am trying to ascertain the differences between the two versions of VISA. Can someone please identify these differences or point me in the right direction.

    You can find some information from the "VISA Run-time Engine Version 3.2 for Windows 2000/NT/XP" Readme.txt file:
    http://digital.ni.com/softlib.nsf/websearch/C0CDC738994FCBC886256EEB004E9BB3?opendocument
    To save you some time though:
    NI-VISA 3.2 IMPROVEMENTS AND BUG FIXES
    Enabling the NiVisaTulip Passport would cause applications to crash on exit.
    This is fixed.
    For a USB RAW resource, calling viEnableEvent on VI_EVENT_USB_INTR with the
    VI_HNDLR mechanism would cause a crash when the first interrupt arrived.
    This is fixed.
    Added support in MAX for the standard Export and Import wizard. For NI-VISA,
    this allows you to transfer the VISA aliases and driver settings.
    Calling viPrintf on a remote VISA session would return VI_ERROR_IO instead
    of VI_ERROR_RSRC_LOCKED when the remote resource was locked. This is fixed.
    The VISA Interactive Control utility (VISAIC) now displays an error message
    box when viFindRsrc returns an error.
    For a PXI INSTR resource, calling viDisableEvent and then viWaitOnEvent would
    cause a crash. On Windows, the application would exit; on LabVIEW RT (both
    Phar Lap ETS and RTX), the system would need to be rebooted. This is fixed.
    The NI-VISA COM API now supports PXI (INSTR, MEMACC) and USB (INSTR, RAW).
    Right-clicking on a PXI chassis in MAX now provides the option to open a
    VISA session to that PXI BACKPLANE resource.
    Fixed various issues in MAX related to changing the IP address of a remote
    VISA system.
    Calling viParseRsrcEx would in some cases output the resource class using
    the same case you used in the resource string in the input parameter. The
    output parameter should always be uppercase. This is fixed.
    For a Serial INSTR resource, calling viGetAttribute on VI_ATTR_ASRL_WIRE_MODE
    would always output -1 if you hadn't yet set the mode for the given resource.
    Now if you have NI-Serial 1.6 or higher installed with supported hardware,
    it will output the default configured state rather than -1. Otherwise it
    will still output -1. Note that NI-Serial 1.6 does not implement this
    feature on all currently supported NI RS-485 controllers.

  • PXI-5402 IVI in TestStand 4.2 returned "niFgen_InitWithOptions" Resource not found

    Hi, i'm very new in TestStand.
    I hope someone could help me.
    I have a complete Sequence in which an ivi should initiate a PXI-5402.
    (It's an old sequence i inherited. It's now my job to get it working again).
    We have another System with an PXI-5401 (appears in MAX as Traditional-DAQ) which works fine with this Sequence.
    I created a new Sequence to simplify troubleshooting with just the "IVI Fgen" step.
    When in click on "Validate" and uncheck "Simulate" and hit "Init" i get:
    niFgen_InitWithOptions returned an error: -1073807343 (0xbfff0011). Insufficient location information or the requested device or resource is not present in the system. If the resource descriptor is an IVI name, it must match the entry in the IVI Configuration Store in a case sensitive manner.
    Source: TSIviStepTypes [Error Code: -31619]
    In NI-Spy i get following Error
    > Status: 0xBFFF0011 (VI_ERROR_RSRC_NFOUND)
    I think i have configured everything correct. Please see attached Screenshot.
    I tried different IVI-Logical Names...
    To eliminate this as root cause, i reference direct the Driver-Session which is displayed correctly on the iviConfiguration.
    Thanks in advance
    Solved!
    Go to Solution.
    Attachments:
    ivifgen-teststand.jpg ‏482 KB

    Ok, i got it ...
    It's the well known problem with DAQmx-Configuration within MAX.
    Described under:
    http://digital.ni.com/public.nsf/allkb/22CF7E6B27B6995B86256DDB0058F39B
    I had to link Logical-Name with DAQmx-Device instead of PXI-Device.
    Thanks anyway.

  • Can I return my laptop

    I bought my laptop around the beginning of March 2011. I am very dissatisfied with it and was wondering if I could bring it in for a refund.The computer is a Dell Inspiron. 

    I'm sorry, but you only have 14 days to return a laptop. You could send it in for repair if there is an issue with the device.
    I am a Bestbuy employee who volunteers on these boards on my own time. I am not paid for posting here, and you should understand that my opinions are exactly that - opinions. I do not represent Bestbuy in any way.
    : Open Mailbox

  • Return of Free goods item - Problem in item category

    I am trying to create return order of Free sample billing
    (ZFDP). The return order type for the free sample is ZFDR.
    We have specified Item category for the ZFDR is RENN (Free good item) in IMG Activity -> Assign Item categories.
    When I create order and save it, it prompts me to enter G/L Account.
    This material is free. It should not prompt G/L Account for it. There is no revenue recognition specified for the item category. I tried changing item category to ZKLN i.e Free of charge item. This item category does not prompt for G/L Account while creating order. but I can not use this item category because it prompts me for Avialability. I can not remove the Avaialabilty check for it because the same item category is used in the Free sample order where availability check is required
    In ZFDP order type, we are issuing 100% discount by using R100
    discount condition.  Please let me know how can I solve this problem.
    I think there is some problem in my item category itself. .
    My setting for Item category in IMG - Define item category is
    same for both ZKLN and RENN. Only difference is RENN has returns
    tick and pricing field is blank. In ZKLN pricing is defined as B- 100%
    discount. I also tried changing the pricing option of RENN to B.
    But still it is asking for G/L Account.
    I can not use ZKLN instead of RENN because my ZKLN is used in the
    Free item Sales order.
    Please help.
    Regards
    Saurabh Gothivrekar

    Hi
    I got answer to my query. YOu need to specify the bill type while defining sales document type. This bill type should not have account assignment mentioned in it.
    I changed the bill type, which does not have Account assignment procedure attached to it.
    It has solved my problem

  • Query help: query to return column that represents multiple rows

    I have a table with a name and location column. The same name can occur multiple times with any arbitrary location, i.e. duplicates are allowed.
    I need a query to find all names that occur in both of two separate locations.
    For example,
    bob usa
    bob mexico
    dot mexico
    dot europe
    hal usa
    hal europe
    sal usa
    sal mexico
    The query in question, if given the locations usa and mexico, would return bob and sal.
    Thanks for any help or advice,
    -=beeky

    How about this?
    SELECT  NAME
    FROM    <LOCATIONS_TABLE>
    WHERE   LOCATION IN ('usa','mexico')
    GROUP BY NAME
    HAVING COUNT(DISTINCT LOCATION) >= 2Results:
    SQL> WITH person_locations AS
      2  (
      3          SELECT 'bob' AS NAME, 'USA' AS LOCATION FROM DUAL UNION ALL
      4          SELECT 'bob' AS NAME, 'Mexico' AS LOCATION FROM DUAL UNION ALL
      5          SELECT 'dot' AS NAME, 'Mexico' AS LOCATION FROM DUAL UNION ALL
      6          SELECT 'dot' AS NAME, 'Europe' AS LOCATION FROM DUAL UNION ALL
      7          SELECT 'hal' AS NAME, 'USA' AS LOCATION FROM DUAL UNION ALL
      8          SELECT 'hal' AS NAME, 'Europe' AS LOCATION FROM DUAL UNION ALL
      9          SELECT 'sal' AS NAME, 'USA' AS LOCATION FROM DUAL UNION ALL
    10          SELECT 'sal' AS NAME, 'Mexico' AS LOCATION FROM DUAL
    11  )
    12  SELECT  NAME
    13  FROM    person_locations
    14  WHERE   LOCATION IN ('USA','Mexico')
    15  GROUP BY NAME
    16  HAVING COUNT(DISTINCT LOCATION) >= 2
    17  /
    NAM
    bob
    salHTH!
    Edited by: Centinul on Oct 15, 2009 2:25 PM
    Added sample results.

  • Unable to capture return values in web services api

    At the time of login to web services if my server is down ,
    it returns following error :
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
            at java.lang.String.substring(String.java:1438)
            at java.lang.String.substring(String.java:1411)
    I want to capture this error so that i can try another server to login. how do i capture this error
    Another place where i want to capture the return Value is when i look for a report on the server
    rh = boBIPlatform.get("path://InfoObjects/Root Folder/"src_folder"/" + reportName +
                               "@SI_SCHEDULEINFO,SI_PROCESSINFO" ,oGetOptions);
    oInfoObjects = rh.getInfoObjects();
    CrystalReport = (CrystalReport)oInfoObjects.getInfoObject(0);
    Here if the report is not there on the server , it returns a null handler exception.
    but if i try catching it by checking my responsehandler is null  like rh == null  it does not catch it.
    Any help will be appreciated
    thanks
    Rakesh Gupta

    Ted : i have two cases
    1)   server = server_st.nextToken();
        providerURL = "http://"server"/dswsbobje/services";
        sessConnURL = new URL(providerURL + "/session");
       Connection boConnection = new Connection(sessConnURL);
       Session boSession = new Session(boConnection);
      EnterpriseCredential boEnterpriseCredential = new    EnterpriseCredential();
                  boEnterpriseCredential.setLogin(userid);
      boEnterpriseCredential.setPassword(pwd);
      boEnterpriseCredential.setAuthType(auth);
    SessionInfo boSI = boSession.login(boEnterpriseCredential);
    I have got a list of servers running web servcies stored in my tokens. when i pass the first server name say " test:8080" and that server is down , i want to catch somewhere in the code above that it did not get the connection so that i can loop back and try with the second server say test1:8080
    This is for failover purposes.
    at present when i was trying to capture return value of boSI it  breaks giving the error
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(String.java:1438)
    at java.lang.String.substring(String.java:1411)
    2nd case :
    I am geeting reports from the server and scheduling them:
    i run the following code which works fine if reports is there
    rh = boBIPlatform.get("path://InfoObjects/Root Folder/"src_folder"/" + reportName +
    "@SI_SCHEDULEINFO,SI_PROCESSINFO" ,oGetOptions);
    oInfoObjects = rh.getInfoObjects();
    CrystalReport = (CrystalReport)oInfoObjects.getInfoObject(0);
    Here if  the  report  is not there on the server  then i should be able to catch from the response handle rh that it has got a null value.
    but rh does not return a null value 
    the code ultimately throws a null handle at the following line
    CrystalReport = (CrystalReport)oInfoObjects.getInfoObject(0);
    i am not able to catch the null value there also.
    hope you got my issue.

  • Generate prov.xml for Creative Cloud. Return Code 27

    We're trying to follow this guide (Creative Cloud Help | Using Adobe Provisioning Toolkit Enterprise Edition) to serialize a package (or something). We're stuck on generating prov.xml. My best attempt at an entry is:
    C:\Program Files (x86)\Common Files\Adobe\OOBE\PDApp\CCP\utilities\APTEE>adobe_prtk.exe --tool=VolumeSerialize --generate --serial=xxxx-xxxx-xxxx-xxxx-xxxx-xxxx --regsuppress=ss --eulasuppress --locales=en_US --provfilepath=C:\Program Fil
    es (x86)\Common Files\Adobe\OOBE\PDApp\CCP
    It says half of this is optional, but I'm skeptical.
    Anyway, I'm getting return code 27. This indicates that it is unable to edit the prov.xml file specified. I didn't specify a prov.xml file, I'm trying to make one. The syntax I'm using differs from what I found on the page I linked, as that was giving me syntax errors. I lifted this off someone else's code. I've tried just about every variation I can think of. Any help would be appreciated.
    This is on Windows

    One of these links may help
    http://helpx.adobe.com/creative-cloud/packager.html
    http://forums.adobe.com/community/download_install_setup/creative_suite_enterprise_deploym ent

  • Help Needed: Returning Back to Windows 8 after downgrading to Windows 7

    Hi guys, im just new here.
    I have a MSI GE40 gaming laptop which I bought 2 months back.
    Within those 2 months of usage, I always encounter my laptop to be very slow in shutting down. It always take, maybe up to 10 minutes to fully shut down. The screen goes black but the power button stays on orange color, & as I said, it takes a long time  for the power button to be completely unlit. But for start up, its blazing fast.
    Thinking that windows 8 itself is the culprit of super slow shutting down, I searched the net on how to downgrade to windows 7.
    Of course I did make a back up first on a 16gb usb flash drive using the pre-installed recovery software from MSI which was completed successfully.
    Then I made some tweaks on the bios (ie select legacy & disable secure boot) & boot using windows 7 installation DVD, deleted all partitions (since the notebook comes with GPT partition) to be able to install windows 7. I installed all the drivers which I downloaded from MSI website specific to my notebook.
    But the problem is not solved, it is still very slow in shutting down, & now even boot up becomes very slow too.
    So I downloaded & execute the firmware & bios for windows 7 from msi website (again, specific to my model). But still the same, the notebook is still very slow both in shutting down & start up.
    So I decided to go back again to windows 8, I tried to boot from the flash drive (I adjusted from the bios & make the flash drive to be the first priority) but it did not boot from it. I tried F11 on start up & selected to boot from usb flash drive but again, to no avail.
    So the last one I did was downloaded windows 8, make a bootable flash drive out of it, boot from it and luckily, I succeed - I have now again a windows 8 msi ge40 laptop.
    But I wanted my laptop to be reinstated to factory setting, i.e, all preinstalled softwares are there, the bios is default for windows 8. So I tried to update the bios to the one for windows 8 again (since I downgraded the bios to the one for windows 7 when I downgraded the OS to windows 7). But I could not update the bios, the laptop is not booting from usb flash drive containing the bios.
    I tried also to recover using F3 on start up but the system does not recognize the flash drive (with system back up). I tried also on PC settings but to no avail.
    Now guys, I need your help.
    How can I return back my laptop to default factory settings?
    Thank you.
    (sorry for my not so good English)

    Hello:
    I think it's not only about the OS version, you need to return this back to your shop to repair with the slow shot down issue, because the OS should be shot down in 30 seconds, far from your GE40 times.

  • Can I return my Lenovo S 205 ?

    Hi guys, I have had a multitude a problems since owning my Lenovo S 205 some 8 months ago.
    I got the laptop via Laptops Direct, an online laptop store.
    The first problem I experienced was when the laptop kept on shutting down on its own quite a few times. This I later discovered was because the laptop battery had a tendency to become loose sometimes.
    The second problem was when it began to freeze after I installed another version of MS Office.
    The third problem was when  it lost its bluetooth capabilities, although the bluetooth device had been detected as present.
    I managed to get the second and third problems fixed by a friend. However, after two weeks, the two problems have returned...TA-RAAA !
    I can only recommen other people to stay away from Lenovo right now !
    Does anyone know if I can return my Lenovo laptop and get a refund for it, so I can get something else like a Toshiba or an Asus ? Thanks very much !

    hi teresanazir,
    sorry to say that but refund is not possible at this point. have you tried to contact lenovo support line to ship it back to service for your issues?

  • Wifi works poorly on my brandnew ipad2. can some one help me or shall I return it to the store?

    Wifi works poorly to none on my brandnew (three days old) ipad2.
    The same Wifi connection works perfectly with my PC laptop.
    Can some one help me or shall I return it to the store?

    Try here...
    Apple - Support - iPad - Wi-Fi

  • Returning.

    Hi guys.. is it possible for me to return my laptop that i ordered last may 07 2010... can i return it a get a refund???? thanks....

    adamski07 wrote:
    Hi guys.. is it possible for me to return my laptop that i ordered last may 07 2010... can i return it a get a refund???? thanks....
    It's yours. No returns allowed after the return date unless the store management allows it. Since you have had it for over a month, you could have easily decided it wasn't the right one for you and returned it within the acceptable amount of time.

  • Can I return my macbook air that I brought during the holidays (Thanksgiving)

    I was gifted a Macbook air during the thanksgiving season, and since I am a computer science developer ( a student to be precise), I want to return my Mac and opt in for a Windows machine ( so that I can get enough software support if needed, there are several people around me with a pc). I was wondering, how can I return my laptop ? What are the terms and conditions ?
    Thank you in advance.

    I would think you cannot return a product after the return date has passed.
    Call the Apple Store and ask them.

Maybe you are looking for

  • How can I highlight with a PDF file?

    How can I highlight text in a PDF file?

  • Update script error

    hi , i need to update one field : ind_sign to value : Y . based on the value from other table . i am getting ora-01427 error . please help in fixing this. update reg a set a.ind_sign = ( select 'Y' from reg b, attach c where b.key = c.key and c.cde =

  • SAP RAR - Best Practice ECC,CRM and BW systems

    Hi All i have the requirement to configure RAR for the systems ECC,CRM and BW systems . Each system has only one client . whats the best practice regarding using the rules against each system . i am assuming the rules will be the same irrespective of

  • Corrupted redulog file

    hi redulog my database is currepted ,when m tryin to recover my db m gettin followin errors SQL> recover database until cancel ORA-00283: recovery session canceled due to errors ORA-01610: recovery using the BACKUP CONTROLFILE option must be done SQL

  • Loaded Ver 4.0, Firefox still recognizing old 3.6.14, and two tabs...STILL open when I launch..starting to hate!

    For like two months, since the rd ver 4.0 has been offer when I startup firefox, I cannot stop it from launching "you have 3.6.1.4, you should upgrade..blah blah blah. I finally upgrade, see the 4.0 page for one session, ther is no link to get away f