How do I update CAN messages being transmitted as a periodic waveform?

I am using NI-CAN 1.5 to transmit CAN messages with a CAN Object using the "Transmit Periodic Waveform" communication type. The CAN card I am using is a dual port PXI-8461.
I wish to update the waveform message(s) but am running into problems. I configure the CAN Object with a write buffer size of 2 and then start transmitting 2 messages with one message going out every 500ms. These 2 messages are correctly getting placed on the bus. To update the messages, I successfully stop the CAN Object and attempt to write new data into the write buffer. This is where I am running into problems. The ncWrite VI is failing with an error of 0xBFF62008 (Write Queue Overflow).
Upon further
inspection, I noticed that when I stopped the Object and there was only 1 of 2 messages pending, I could successfully write one time; however, the second write would fail with the same error. If 2 messages were pending, neither write would be successful. I need to be able to update both messages. I thought maybe I could use the ncWait VI to wait for the write queue to empty and then write in 2 new messages; however, this will not work since the ncWait VI never returns before a timeout occurs in "Transmit Periodic Waveform" communication type. Either 2 or 1 messages are always pending so it never sees that the card is ready for new data.
I looked in the Programmer's Reference Manual, and this is the procedure recommended. (A bit different, but I tried it and came up with the same results.) The Reference Manual claims ncWrite replaces the oldest data in the queue on page 3-30, but on page 2-40 it says ncWrite returns an error when called on a full queue.
Does anyone see anyt
hing that I'm doing wrong or have an alternate way to accomplish what I want? Thanks for your help.

The "Transmit Periodic Waveform" section (pg 3-30) of the NI-CAN Programmer's Reference states, "Use this configuration to transmit a fixed sequence of CAN data frames over and over, one CAN data frame every period."
The words "fixed sequence" denote that it was not intended to change as the program runs. I appolgize if this was not clear. Any suggestions for improvement to the documentation can be emailed to [email protected]
If those two data sets do not change at run-time, they could be merged together. For example, make the buffer the size of both data sets added together. Start by Writing the first element of set one, then the first element of set two, then the second element of set one, then the second element of set two, etc.
Randy Solomonson
Application Engineer
National Instruments

Similar Messages

  • HT1495 How do I stop SMS messages being shared between multiple iphones on my itunes account? One is my wife's, one is mine and we do not want each others messages appearing on the other.

    How do I stop SMS messages appearing on two devices on my iTunes account?
    One phone is mine, one is my wife's and we dont want messages being shared.
    We do have contacts and music etc shared.

    If your are recieving mixed information on your phone on multiple devices this is going to be related to iMessage.
    On your phone navagate to settings > messages > send and receive.
    Check the information in that section make sure it relates to your AppleID and your phone.  If you share a AppleID with the individual create a new AppleID for their device and insert that information.
    If the numbers don't remove turn of iMessage restart your phone and turn it back it.
    If all else fails disable iMessage otherwise turning it off is the quickest fix.

  • How to capture/sniff Can-messages?

    Hello,
    i´m using a can-interface that is programmed by a windows-program.
    The usb can-interface goes to the DUT.
    Now i need to capture the messages that are send and read between the two.
    Does someone know a program that can do this? (Something like wireshark for ethernet.)
    Thanks for all help

    NI's CAN monitor works pretty well for this (you will need a NI CAN device of course), but it will not tell you who sent the message (usually done via the CAN protocol that is used, such as J1939 where the source and sometimes the destination address is encoded into the ArbID).  The monitor display shows ArbID, # data bytes, data bytes, and msg rate (which obviously does not work for non-periodic for multi-frame messages).

  • How to synchronize NI-CAN, NI-6601, and NI-6052E on CAN message?

    Hello,
    I am trying in LV6.1 to collect measurements triggered from a CAN message, being received at 1kHz for < 1 minute.
    The measurements I am looking to collect are:
    1. The measurement data contained in the CAN message.
    2. The analogue data from channel 1 on the 6052E
    3. Two X4 encoder measurements on the 6601.
    Is there any example that shows how to do this kind of problem with multiple boards for 1kHz logging in sync?
    Regards,
    Peter

    Hey Peter,
    There are a few CAN examples that ship with LabVIEW that should be able to get you started. They should be broken down to the channel and frame API. I would probably use the frame API for your application.
    The DAQ-AI CAN-Receive Example.vi example shows how to route the signal from the CAN device so that when a message is received it will scan the analog input. You could modify this example so that the RTSI line is also routed to the gate of your counter. If you perform a buffered position measurement with the gate being routed from the RTSI it will then sample the counter register at the same time the analog input is read.
    I hope this helps out.
    Joshua Prewitt
    Application Engineering
    National Instruments

  • HT204152 I am unable to update my App  store Updations. the reason being billing problem asking to update payment method.many times i updated my credit card details but refusing from the system .how can i update my app store updations like  Face book etc.

    I am unable to update my App  store Updations. the reason being billing problem asking to update payment method.Many a  times i updated my credit card details but refusing from the system .how can i update my app store updations like  Face book etc....Using ! phone 6plus  .IOS8.3

    What do you mean by 'refusing from the system', if you are getting an error message then what does it say ?
    For a credit card to have a chance of being accepted it needs to be registered to the same name and address (including format and spacing etc) that you have on your iTunes account, and have been issued by a bank in the country where you and your iTunes account are. If it is and if you are getting a 'declined' message then you could check with the card issuer to see if it's them that are declining it, and if not then try contacting iTunes Support (these are user-to-user forums) and see if they know why it's being declined : 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
    If when trying to download you are getting a message about a 'problem with a previous purchase' then that implies that iTunes wasn't able to collect the money for your last purchase. If that is the case then you won't be able to download anything else (including app updates) until you've paid off what you owe : Pay an unpaid balance in the iTunes Store - Apple Support
    If you aren't getting the 'problem with a previous purchase' message then try logging into your account (not when trying to download something) and see if you get the 'none' option so that you can remove the card's details and be able to download updates to your apps : Change or remove your payment information from your iTunes Store account (Apple ID) - Apple Support

  • I'm trying to update my iphone 3GS to the 4.3.4 version and I am getting the error message "This version of itunes (version 9.1.1) is the current version.  How do I update my PHONE and why is an itunes update being confused for my iphone?

    I'm trying to update my iphone 3GS to the 4.3.4 version and I am getting the error message "This version of itunes (version 9.1.1) is the current version.  How do I update my PHONE and why is an itunes update being confused for my iphone?

    You need iTunes 10.0 or greater to update your phone...iTunes isn't confused at all. If you're on a Mac, you'll need OS X 10.5.8 or greater to update iTunes to 10.0 or greater.

  • I have I-phone 5 with 15GB. I currently have used 12.8 GB. I get error message that storage is almost full, go to setting and mymail is 5.7 GB. Can that be how alot of my storage is being used? If so or not any advise?

    I have I-phone 5 with 15 GB. I currently have used 12.8 GB. I get error message that storage is almost full, I go to setting and my mail is using 5.7 GB. Can that be how alot of my storage is being used? If so or not any advise?

    caek1 wrote:
    Hi,
    I'm trying to change email address on my Apple ID since the email registered for the account has been hacked and I can't access it anymore. The email I want to change to is connected to another Apple ID I created about 4 years ago, though I successfully changed the email on that account as well. So the email I would like to use for my main Apple ID shouldn't be "locked" anymore.
    Though, when trying to change the email on my Apple ID I get an error message (in Swedish, so this is a direct translate from google): "This e-mail address is your email address for notification. It can not be used as the Apple ID or primary email. Choose a different address."
    I'm not really sure what this means or how I can fix this.
    It means exactly what it says... The email Address is in Use. You cannot re-use it.
    Apple ID Support  >  http://www.apple.com/support/appleid/

  • I updated I Photos and now I can not get into the I Photos,   I get a message that  says "the library needs to be updated to work with this version of I Photo'  I have no other updates to install.  How do I update to get into i Phones?   riderm622

    I updated my computer with the  I Photo June 2012 program and now I can not open I photo or shut off the computer because I get a message that says "The library needs to be updated to work with this version of I Photo'   I have no other updates to install.  How do I update the library to get into I phootos.  riderm622

    backup your iPhoto library and download the 9.1 update and install it
    LN

  • My Iphone5 is frozen as I was updating. Message from iTunes - Unknown Error. But now can't restart. How can I make it restart

    My Iphone5 is frozen as I was updating. Message from iTunes - Unknown Error. But now can't restart. How can I make it restart

    Hey sokkas,
    Thanks for the question. I understand you are experiencing issues updating your device. The following resource may assist you:
    If you can't update or restore your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT1808
    Additionally, if you are receiving an error message when attempting to update or restore, see the following:
    Resolve iOS update and restore errors
    http://support.apple.com/kb/TS3694
    Thanks,
    Matt M.

  • I need help updating LR4 so I can import Nikon Df images. When I try to update, a message says, no new updates. How do I get new updates for LR4?

    I need to update LR4 so I can import Nikon Df images. When I try to update a message says there are no new updates. Please help?

    Adobe - Lightroom : For Macintosh
    Adobe - Lightroom : For Windows
    The latest update for LR 4 is version 4.4.1, you can download the appropriate install package from the links above.
    Unfortunately support for the Nikon Df was only included with LR 5.3, so the options are.
    1. Upgrade to LR 5.
    2. Utilize the free Adobe DNG Converter (the latest version is 8.8) to convert the nef files to DNG format and import the dng files into Lightroon 4. Good idea to retain your original raw files and do appropriate investigation into the uses of the DNG format.

  • How do you schedule an email to be sent at a later time?  Also, canned messaging shortcuts in Apple Mail?

    I have heard rumors that this is doable using Automator and iCal.  I have also heard rumors that Apple Scripts are the way to go and I have found a few online (likely from 17 year olds in their basements) -- I must admit, I'm a little leary about copying and pasting a script into my computer.  I'd much rather have detailed instructions on how to set it up myself.
    I would be most grateful for some help with this!
    Thank you!!
    P.S. Also, if anyone knows if there is a way to use shortcuts in Apple Mail to trigger canned messaging I'd appreciate it.  You can do this with the iPhone (ex: you can set it up so that when you type CB in the text field, it says "I'll have to call you back" or whatever you want it to say).

    +1
    Scheduling an email is a deeply important productivity feature that I really hope Apple can incorporate into the next update of Mail.

  • XI: How to update the Message Status (shown by transaction SXMB_MONI  )

    Hi
       My question might be stupid, but I need you help.
    I would like to know how can I update the message status what we see while using trasaction SXMB_MONI  . The Scenrio is, I have a Custom Interface program build on the Abap Proxy interface method called EXECUTE_ASYNCHRONOUS.
    If I am not wrong, transaction SXMB_MONI is on the XI system and also on the SAP Application system. ( But I am not sure in what way the same transaction differ in two systems )
    My issue is,  when I receive the xml data into a structure in abap proxy, I am doing some validation on the received message data. If I found some error in the data , then I need to update the Message status of the SXMB_MONI to  ERROR flag. How to implement this ?   I have not done one before. And I am not sure, if any exception like error message is raised, will it stop the proxy from processing further and update the Message Status and this can be viewed using SXMP_MONI in the SAP application system to be ERROR flag?
    Or is there a BAPI or function module to handle this ?
    Appreciate your help
    David

    Hi
    I am not sure If I had understood you reply. But Would need your help to have a bit more insight to your answer. I am not completely into XI , but I am from ABAP side.
    At the R/3 side , Abap Proxy object geneted has the INTERFACE and its associated  METHOD, in which I am building my own abap code to do any validation on incomming data. But If I want to Raise a Exception, I understand that this Expection has to be first defined .
    But do I have to define a new Z Expection class  or can I just add a exception in the Proxy -Interface-method.
    I have not understood this process.
    All I need to do is, if I find any incomming data error , during my validation at the R/3 side, I need to stop the METHOD processing ( by any means ) and Update the Message Status flag show in SXMB_MONI to Error . 
    What is the trigger  that i can implement in myown code that will update the Message status to Error , from R/3 perspective of using SXMB_MONI.
    Thanks
    David

  • How do I update my InDesign CS3 plugins? I received a document from a colleague created in CS3 and I can't open it due to missing plugins.

    How do I update my InDesign CS3 plugins? I received a document from a colleague created in CS3 and I can't open it due to missing plugins.

    The error message is below. When I get info on the file it says it's a CS3 file.

  • One of my ipods is not syncing properly. System says sync is complete but the updates aren't being made. Can I correct this?

    One of my iPods is not syncing properly. The system says "sync complete". but it's obvious the updates are not being made.  Can I correct this?

    You may refer to this tutorial, it's about how to fix iTunes sync problem with iPod. Hope it helps. Feel free to email me if you need further help.

  • How do you updated CS5 Extended when you keep getting a message to close the program but it is close

    How do you updated CS5 extended when you keep getting a message to close the program but the program is already closed?  I have tried to do the update when I first turn the computer on, go directly to Photoshop, go to update and click on that, get new screen, close Photoshop, and I still get a message to close the already closed program.  I believe I have to open Photoshop to get to the update area, so I don't know how to get around this issue.  I hope someone can help me.
    (I use win8, 64 bit)
    Thank you in advance to all who answer my request for help.
    Ann

    Thank you for answering.  However, when I opened the Task Manager and looked at all the processes that were running, the only things running were the Task Manager and the browser.  None of the Photoshop programs were running.  So, do you have any other suggestions?

Maybe you are looking for

  • HT201272 How do I move music from iTunes to "Music" on my iPhone 5?

    How do I move music from iTunes to "Music" on my iPhone 5?

  • Acrobat XI Pro crashes after scanning

    I upgraded to the Abobe Cloud  and now I can't scan(HP 4200) documents without the Acrobat crashing.  I never had a problem when I was using Acrobat 9.  It does the scan and I can see it but then it crashes. I'm using Windows 7 and have seen a few fo

  • Image Gallery with scrolling: PROBLEM, HELP

    Hello, I want to make a video gallery like this. I wanted the images Appear inside the scrollbar, but one by one, for example, if the user tried to stop from one image to another, she 'Jumped' to the next, like page transition in the Tablet. When you

  • Most Common Interview questions... help needed

    Hello, I have an interview coming up for a BEA WebLogic developer position. Please let me know what are the most common questions could be for WebLogic (including Portal, Integration, Workshop, and WLServer)if any one knows/or has a list or somethin.

  • Quarter to date (QTD)

    Hi Alla, I have a report to display QTD Quantity. when ever i ran the report QTD data is calculating this year (2001) quarter and last ( 2010) year data ( we have only 2 years data ). I mean if i run the report today it should display from Apr 2011 d