Changes in VISA interrupt handling?

Hello all,
I'm grasping at straws here, so I'm looking for a shoulder to cry on.
I wrote a USB acquisition prog with CVI a decade ago for a custom board. It worked fine for a few years and then was turned off. We are trying to use it again but it's not working properly.
We don't have the original PC, so we are using it with the lastest CVI on Win7 or XP, with latest VISA driver (regenerated .inf file).
Communication with USB works fine... except for the interrupt routine. Instead of receiving one interrupt with 3 bytes of data (say 'ABC'), I receive TWO interrupts, the first with 0x1, the 2nd one with 'BC'. There are different types of interrupt frames of different lengths, all have the same split in two, with the 1st as 0x1, the 2nd with valid data.
Anybody has any idea why there could be such a change in the way my interrupt routine works ?Has VISA changed its handling of interrupts in this time period ?
Short of a PC-side solution we are ready to reflash the card, hoping that we have the most recent version of the firmware !!!
If it can be useful, here's a dump of USB VISA parameters (I'm not familiar with most of them):
VI_ATTR_RSRC_IMPL_VERSION: 0x500400
VI_ATTR_RSRC_SPEC_VERSION: 0x500100
VI_ATTR_RSRC_MANF_ID: 4086
VI_ATTR_RSRC_MANF_NAME: National Instruments
VI_ATTR_INTF_TYPE: 7
VI_ATTR_INTF_NUM: 0
VI_ATTR_INTF_PARENT_NUM error: L'attribut spécifié n'est pas défini ou supporté par la ressource référencée.
VI_ATTR_INTF_INST_NAME: USB0
VI_ATTR_MAX_QUEUE_LENGTH: 50
VI_ATTR_RSRC_LOCK_STATE: 0
VI_ATTR_RSRC_CLASS: RAW
VI_ATTR_DMA_ALLOW_EN error: L'attribut spécifié n'est pas défini ou supporté par la ressource référencée.
VI_ATTR_TMO_VALUE: 2000
VI_ATTR_TRIG_ID error: L'attribut spécifié n'est pas défini ou supporté par la ressource référencée.
VI_ATTR_IO_PROT: 1
VI_ATTR_TERMCHAR: 10
VI_ATTR_TERMCHAR_EN: 0
VI_ATTR_SEND_END_EN error: L'attribut spécifié n'est pas défini ou supporté par la ressource référencée.
VI_ATTR_SUPPRESS_END_EN: 0
VI_ATTR_RD_BUF_OPER_MODE: 3
VI_ATTR_WR_BUF_OPER_MODE: 2
VI_ATTR_RD_BUF_SIZE: 4096
VI_ATTR_WR_BUF_SIZE: 4096
VI_ATTR_USB_SERIAL_NUM: 1240332
VI_ATTR_USB_INTFC_NUM: 0
VI_ATTR_USB_PROTOCOL: 0
VI_ATTR_USB_MAX_INTR_SIZE: 64
VI_ATTR_USB_CLASS: 0
VI_ATTR_USB_SUBCLASS: 0
VI_ATTR_USB_ALT_SETTING: 0
VI_ATTR_USB_NUM_INTFCS: 1
VI_ATTR_USB_NUM_PIPES: 2
VI_ATTR_USB_CTRL_PIPE: 0
VI_ATTR_USB_BULK_OUT_PIPE: 1
VI_ATTR_USB_BULK_IN_PIPE: -1
VI_ATTR_USB_INTR_IN_PIPE: 129
VI_ATTR_USB_BULK_OUT_STATUS: 0
VI_ATTR_USB_BULK_IN_STATUS error: La référence d'objet spécifiée n'est pas initialisée.
VI_ATTR_USB_INTR_IN_STATUS: 1
VI_ATTR_USB_END_IN: 5
Solved!
Go to Solution.

Hi,
I have a few questions that may help clarify the problem:
1. What Operating System were you originally using?
2. What version of CVI and VISA was originally used when this was working?
3. If you revert back to the old machine/system, do you recieve the same error?
It sounds like it could be a firmware issue. Another thought, since this is a custom device, it is possible that it was using a USB RAW Driver, which supports Bulk, Interrupt, and Control communication protocols. I have included some general information about USB instrument Control below, including the required changes for setting the communication protocols for USB RAW.
http://www.ni.com/white-paper/4478/en/
I would recommend reading through this. Best of luck!
R. Brill
Applications Engineer
National Instruments

Similar Messages

  • Kernel BUG at skbuff.c.... In interrupt handler - not syncing

    Hello,
    VERSION: ZENWorks Imaging Server v6.50
    I am trying to create an image of a workstation. After I boot up with the
    Boot CD and input the proper settings (prompts by SETTINGS.TXT) the
    workstation gets an IP and everything works fine. At the moment when I try
    to create the image:
    img mp <IP address of imaging server> <//path/imagefilename>
    I get the following error:
    ~~~~~~~~~~~~
    Kernel BUG at skbuff.c :92!
    invalid operand: 0000
    <0> Kernel panic: Aiee, killing interrupt handler!
    In interrupt handler - not syncing
    ~~~~~~~~~~~~~
    The error is much bigger, but I only included the first two and last two
    lines of it.
    I am not sure how to resolve this. If I made a mistake with the commands
    please let me know, although I think they are correct. I also tried
    creating an image through the user interface but I got the same error.
    Any solution, recommendation, or advice is greatly appreciated.
    Sincerely,
    Steve O.

    Marcus,
    Thank you for the response.
    Sorry to ask again, I am new to Novell. I simply want to make sure. Do you
    mean downloading and installing the following patch for ZENWorks 6.5
    desktop management?
    zen65sp2.exe
    I found this file from the "Download - patches" website.
    Thanks for the help.
    Steve O.
    > [email protected] wrote:
    >
    > > I am not sure how to resolve this. If I made a mistake with the commands
    > > please let me know, although I think they are correct. I also tried
    > > creating an image through the user interface but I got the same error.
    > >
    > try the iso from sp2..
    > --
    > If you have already compiled drivers or have linux.2 please put them on
    > http://forge.novell.com/modules/xfmo...ect/?zfdimgdrv
    > Live BootCd and USB Disk from Mike Charles
    > http://forge.novell.com/modules/xfmod/project/?imagingx
    > eZie http://forge.novell.com/modules/xfmod/project/?ezie
    >
    > Marcus Breiden
    >
    > If you are asked to email me information please change -- to - in my e-mail
    > address.
    > The content of this mail is my private and personal opinion.
    > http://www.edu-magic.net

  • How can I change my visa on the apple account

    How can I change my visa on the apple account

    A number of ways to do this, but on the iPad:
    Open the iTunes app ans select any of the product categories at the bottom (music, for example).
    Scroll down and then tap on the button with your AppleID
    Tap View ID
    Login
    Select Payment information and edit the info, then save

  • How can i change my visa info at Apple ID?

    how can i change my visa info at Apple ID?

    The following has instructions: Change or remove your payment information from your iTunes Store account (Apple ID)

  • HT1918 I would like to change my Visa card from the account but its not changing and the billing information is not changing and I can't purchase any thing from my account its now not usable please help me to solve the problem

    I would like to change my Visa card from the account but its not changing and the billing information is not changing and I can't purchase any thing from my account its now not usable please help me to solve the problem

    You made a purchase and exhausted the credit on your card before it processed. All purchases are final. Contact iTunes Store support. You need to settle up before you can purchase or download anything else.

  • TS1424 At the time of activation I had given a master card.  Now I want to change the visa card particulars to enable my purchases.  How do I do it.

    At the time of activation I had given a master card number.  Now I want to change the visa card particulars to enable my purchases.  How do I do it.

    On your computer's iTunes you should be able to edit your payment info by going into the Store > View Account menu option and logging into your account, and on your account's details page there should be a payment link.  If you are doing it on your iPad then you could try tapping on your id in Settings > iTunes & App Store on and selecting 'View Apple ID' on the popup - that should also give you a payments link on your account's page.
    Changing payment info : http://support.apple.com/kb/HT1918

  • Solaris 8 (INTEL) - Interrupt handler

    We are developing a device driver for a PCI card. The interrupt level assigned is 10 and the priority level is 6.
    In the interrupt handler, we first check whether our device has generated the interrupt and if not return with DDI_INTR_UNCLAIMED otherwise we proceed to clear the interrupt status and do the appropriate action and return DDI_INTR_CLAIMED.
    we have observed that while returning from the Interrupt handler, the control is going into a function "LOOP2", and our interrupt handler is invoked again from "LOOP2" and this goes into a loop. ( We use kadb to debug ).
    Kindly clarify.

    Hi!
    I also had the same exact problem during the install. The only way that I could procede was to tell it that I didn't want to install networking. Now when I boot, it tries to load the elx0 driver (for my 3Com 3c509b) and brings the following message, "SIOCSLIFFFLAGS cannot assigm requested address." I have checked the Irq/IO setting in the hardware configuration agent and everything seems to be correct. To top it all off, once I logon if I enter "ifconfig elx0 192.168.1.2 up" then everything works fine. I tried to forceload the elx0 module in /etc/system to see if the module just wasn't loaded early enough but this did not help. Any ideas of what else I should check?
    TIA

  • HT1918 Hello, please I need to change my visa debit card information, as I need to change my card to MasterCard , what do I do. Thanks

    Please I need to change my visa debit card from my account information, as I need to change it to MasterCard , please what do I do

    If you can't remember your security questions go to  Express Lane , select iTunes from the list, then iTunes store.    On the next screen select account Management.    There, select iTunes store account security and write that you would like to reset your security questions and / or answers.
    You should get an eMail reply over the next 24 hours.

  • High-level interrupt handler

    Why can I decide to support a high-level interrupt or not? Under what condition does the Solaris kernel will map my hw interrupt (INTA from PCI bus) to a high-level interrupt? When should I refuse to support a high-level interrupt? Why? Can I force my hw interrupt to be a high- level interrupt?
    Also think about that, most hw interrupts indicate something important such as the case buffers are full. If they are assigned below the scheduler's, it really does not make sense.
    Is it possible to block any hw interrupts? Or I'd put it this way can I prioritize hw interrupts in Solaris?
    Thanks
    tyh

    Hi,
    On x86 each IRQ has a software priority assigned to it implicitly by the bus driver, although I think you could override it in the driver.conf. Unlike SPARC, the processor doesn't support a PIL so software priorities are implemented by masking all lower-priority IRQs and re-enabling interrupts.
    High priority interrupts, above dispatcher level, run in the context of the current thread on the cpu, normal level interrupts are handled by interrupt threads.
    The interrupt threads are the highest priority threads on the system, so will preempt any other running threads. In addition mutexes in Solaris use priority inheritance, so the interrupt threads will get to run.
    In general, high level interrupts are allocated to devices with small buffers such as serial or floppy, so that their buffers get serviced in the fastest possible time. Others can afford to wait for just a bit.
    Your driver should check to see if its device has been allocated a high level interrupt. If this is the case, the high level handler should clear the interrupt and save the data/status (in the driver state structure perhaps) and trigger your soft level interrupt handler (which will run as a thread).
    Blocking of interrupts is done for you when you acquire a spin mutex (ie initialised with an iblock cookie). Such a mutex is required to synchronise access to data shared with a high level handler in your driver.
    Please take a look at the Intel Driver writers orientation at:
    http://soldc.sun.com/developer/support/driver/docs/Solaris_driver_models/index.html
    Hope that helps,
    Ralph
    SUN DTS

  • HT1918 I can not  change my payment method. My payment mothod said 'None' but I would like to change to visa type

    I can not  change my payment method. My payment mothod said 'None' but I would like to change to visa type. I did change actually but it said my credit card doesn't match with bank's information even I live in US and use Wells Fargo Bank.

    Have you contacted iTunes Support (these are user-to-user forums) ? If not then you can do so via this link and ask them why the message is appearing (we won't know why) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Interrupt Handling

    My problem is that I am using a third party API provided by a Vendor in order to access their DAM (Digital Asset Management) system. This API is used by a Swing application. I provide the user with a way to interrupt long running operations, but sometimes, if the interrupt is fired when the API code is executing, the interrupts get swallowed up and then I am unable to stop the thread.
    Any suggestions for working around this problem?
    If I were to paraphrase the question: What is the best way to catch interrupts if making calls to third party code that does not implement interrupt handling properly?

    Don't know nothing great comes to mind. Only other thing I think you could try is thread.kill

  • Interrupt handler

    hi all,
    i want to model an interrupt handler
    i have a class that is working it's job and when it receive the interruption it should cancel it's job and execute the interrupt handler

    You could add a wrapper to you job e.g.
    final Callable job = ...
    Callable called = new Callable () {
       public Object call() {
           try {
               return job.call();
           } catch (InterruptedException ie) {
               // handle interrupt.
    };

  • HT5631 i want to change my visa card number please help me

    i want to change my visa card number please help me
    please please
    Thank you
    Nawaz
    00971555917014

    The following link gives instructions for changing your iTunes payment method: http://support.apple.com/kb/ht1918

  • [svn] 4607: Change the way we handle setItemAt in DataGroup.. we now do it synchronously again.

    Revision: 4607
    Author: [email protected]
    Date: 2009-01-21 10:45:20 -0800 (Wed, 21 Jan 2009)
    Log Message:
    Change the way we handle setItemAt in DataGroup..we now do it synchronously again. However, this has the consequence that, even temporarily, you are not allowed to have the save visual element listed twice in the data collection.
    Get parity with Halo behavior and Flash behavior by allowing addElement()/addElementAt() to be called on an element already in the list. When this happens just shift the indices around.
    Small ASDoc fix in GroupBase. Also, change the way we handle data being set int he default complex item renderer...this way we're not using binding, and the code is also easier to understand.
    QE Notes: Write tests for addElement/addElementAt on items already in the group.
    Doc Notes: None
    Bugs: SDK-17909, SDK-18189
    Reviewer: Hans
    tests: checkintests, mustella DataGroup, List, Group, FxContainer, FxDataContainer
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17909
    http://bugs.adobe.com/jira/browse/SDK-18189
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/DataGroup.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/Group.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxDefaultComplexItemRenderer. mxml
    flex/sdk/trunk/frameworks/projects/wireframe/src/wireframe/FxDefaultComplexItemRenderer.m xml

    Hi blabla12345,
    (untested and without warranty)
    replace this line:
    const sSaveCUBE = "CUBE";
    with this:
    const sSaveCUBE = "cube";
    Have fun

  • I want to change from vise to none can you assist me please

    HOw i can Change from visa  to none.

    On your computer's iTunes you should be able to edit your payment info by going into the Store > View Account menu option and logging into your account, and on your account's details page there should be a payment link.  If you are doing it on your iPad then tap on your id in Settings > iTunes & App Store and tap on 'View Apple ID' on the popup and log into your account  - that should also give you a payments link on your account's page.
    Changing payment info : http://support.apple.com/kb/HT1918
    If you don't get the 'none' option on the payment details screen : http://support.apple.com/kb/TS5366

Maybe you are looking for