CAN program using Channel API doesn't receive data

Hello everyone,
I'm get in stuck. I'm currently programming CAN interface for a transmission using PXI, Channel API and a .dbc file.
CAN configuration based on .dbc file is downloaded to PXI by MAX. 
The problem is that it receives 0 for all the values by Channel API based program (Attached file), though it seems receiving meaningful data when I check raw data by Frame API based program. 
Baudrate, CAN port, and .dbc file are correct.
thanks! 
Attachments:
All signals and values.vi ‏22 KB

Hi Yuta
What I am expecting is that the sample rate is being set to high. When using the multiple channel - single sample instance of the CAN read vi, it will return a single sample for every period. The number of samples to read input is actually ignored and it will return a single sample for every channel specified. Therefore, if no data has been received within the sample period specified with the sample rate, it will return the default value as specified in the database file.
Due to the high sample rate, it might be that data is being received, but aren't visible on screen since they are quickly being overwritten by new (default) data. I suggest trying to use the Multiple Channels - Multiple Samples instance of the CAN Read vi to see if you receive values in this case. Or you could try lowering the sample speed (note that sample rate is not the same as CAN baud rate).
Also, make sure you are properly reading the data already in MAX's test panel as this would indicate if the database file is loaded properly.
Best Regards
Michiel
Applications Engineer
NI Belgium
http://www.ni.com/ask

Similar Messages

  • CAN program using Channel API receives only 0

    Hello everyone,
    I'm get in stuck. I'm currently programming CAN interface for a transmission using PXI, Channel API and a .dbc file.
    CAN configuration based on .dbc file is downloaded to PXI by MAX. 
    The problem is that it receives 0 for all the values by Channel API based program (Attached file), though it seems receiving meaningful data when I check raw data by Frame API based program. 
    Baudrate, CAN port, and .dbc file are correct.
    thanks! 
    Attachments:
    All signals and values.vi ‏22 KB

    Hi Yuta
    What I am expecting is that the sample rate is being set to high. When using the multiple channel - single sample instance of the CAN read vi, it will return a single sample for every period. The number of samples to read input is actually ignored and it will return a single sample for every channel specified. Therefore, if no data has been received within the sample period specified with the sample rate, it will return the default value as specified in the database file.
    Due to the high sample rate, it might be that data is being received, but aren't visible on screen since they are quickly being overwritten by new (default) data. I suggest trying to use the Multiple Channels - Multiple Samples instance of the CAN Read vi to see if you receive values in this case. Or you could try lowering the sample speed (note that sample rate is not the same as CAN baud rate).
    Also, make sure you are properly reading the data already in MAX's test panel as this would indicate if the database file is loaded properly.
    Best Regards
    Michiel
    Applications Engineer
    NI Belgium
    http://www.ni.com/ask

  • CAN Periodics using Channel APIs

    Hi All,
    I need your suggestions on the application i have attached here with in the post.
    The sample Application attached is used to send periodic messages on the CAN interface, by acquiring the message from a dbc. I need to send periodic message for every one second. The application requires to do few initializations and then enable the periodics to be sent. After performing few tests it has to disable the periodic messages.
    I would like to know if the attached application does serve my purpose. Any suggestions would help me in learning and improve myself.
    Thanks and Regards,
    Pradeep
    Attachments:
    main_app.vi ‏26 KB
    Send_Periodics.vi ‏32 KB
    stop_periodics.vi ‏5 KB

    Hi Rima,
    Thank you for your suggestions, however I would like to clarify some of the points you have suggested.
    1. In the case structure, cases 2..5, would be having a different functionality implemented.
    2. The critical part of the application is the placement of the loops. I tried experimenting with the code in all possible combinations. If I combine the two loops into one the CAN periodic VI would be called only once before the enable periodic message is enabled. This would not allow the CAN periodic function to run.
    3. I have also noticed that if the enable periodic message set to true before the loop gets executed the application loops in the CAN periodic VI and the control does not go to the next state in the case structure.
    Due to above reasons I had to use two loops, so that he CAN periodics VI will be executed when the enable periodic message variable is enabled and using a global variable to stop sending of the CAN periodics.
    Regards,
    Pradeep

  • How can i send a set of can messages through channel api

    Can anyone post an example code for sending a set(more than 3) of CAN signals using channel api.

    you checked for examples? 
    Please remember to accept any solutions and give kudos, Thanks
    LV 8.6.1, LV2010,LV2011SP1, FPGA, Win7

  • Max number of Messages using Channel API?

    We have a 2-port CAN card (series 2) runing at 500kB. When we use channel API to setup 9 messages (about 20 signal-channels) at 100Hz update rate in a write task - the data is constant, set to repeat output last sample (therefore butffer size is not the problem).
    Task Init-start gives error of too many channels too high speed. when we set only 8 messages at 100Hz or 9 messages at 90Hz, it works fine.
    If we calculate based on 500kB and 8-byte messages (give enough overhead), CAN bus shall be able to transact at least 40 full-length (8-byte) messages at 100Hz.
    there are two Rx messages at 50Hz on the bus. (totally only these 10 or 11 messages are on the bus).
    so what is the problem, simple because the CAN channel API is not good enough? 

    The NI-CAN driver I used was 2.3.1f1(?), then updated to 2.4.0f0. the results are the same. the erroe code is: -1074388831.
    Dirk is right. I did some tests and find the max speed it can spit to the bus is 666Hz (frames/s). this is true for both channel API - sampled ouput and for frame API - CAN objects.
    this will not meet the requirement of my (and many) application. I want use the NI CAN card to simulate several controllers in a vihicle to talk to one controller to be test. there are usally more than ten messages, many of them at 10ms update rate.
    when using frame API network object, timestamped, the max throughput seen is 830Hz.  when use "immedaite", the max throughput is ~3.15kHz (76% bus load). this rate probably meets most application,
    what's Interesting is, when use channel API, signle write (sample rate 0) in a loop, use the loop to control the rate, it is able to reach same ~3.2kHz rate, although the timing is not very accuate (but the channle API is not well timed either at higher rate: 6 messages sample rate at 100Hz, ouput recent: varying from 96 to 104Hz).
    the driver needs some improvement.

  • CAN error with Channel API

    Hello All,
    Right now i am facing a CAN error when run my script which was developed using channel APIs. I am not able to trace out the the reason of the error. Pls find attached code and Error description. I have uploaded the sample code here and I am writing several messages in the same VI as same like in the code. Pls guide me in this
    Thanks in advance
    Anoop
    Attachments:
    CAN Channel API error.JPG ‏22 KB
    Channel API test.vi ‏29 KB

    Hi Anoop,
    Is the code you posted the exact code you are using when you get the error?  The reason I ask is, usually this error is associated with using the Set Property VI after the interface has already been started, such as in a loop.
    Are you able to use any examples from the Example Finder successfully? (Help > Find Examples)  You can Browse to CAN examples by clicking Hardware Input and Output > CAN > Channel API.
    Hope this helps!
    Adam W
    Applications Engineering
    National Instruments

  • Can i use 2D API with out using JRE.

    hi,
    can i use 2d API with out using JRE 1.3 .
    please reply
    ravi

    Yes, it was (still is?) supported in Java 1.2 - but no
    earlier.How is it done.can u please give some sample code.
    Thanks and regards,
    Ravikumar

  • Can we use Time Machine to back up data on Time Capsule from the outside of network?

    I have Time Capsule at home.  Can I use Time Machine to back up data of portable nootebook when I am working at office?

    If you mean over the internet, you can but it will be so slow and more than likely so unreliable it is a poor method to use. Remember all internet is limited to upload speed.
    Lion does a temporary backup onto local hard disk.. which is useless of course if the hard drive is damaged.. but helps if you delete an important file. Then when you go back home and it discovers the TC is available it will then backup again from where it left off.
    I think it is only a major issue if you are away from home for major lengths of time, weeks or months.

  • Can I use ICloud to store all my data and use it seamlessly with my devices and Mac?

    Can I use ICloud to store all my data and use it seamlessly with my devices and Mac.  I.E. I want to use it as I use my time capsule and get rid of all this stuff I have in my office.

    Yes.
    Apple - iCloud - Learn how to set up iCloud on all your devices

  • I have a Time Capsule with 2tb of storage, and an I-Mac with 500Gb. (which is at capacity) Can I use the Time Capsule to store data in addition to backing up the hard drive?

    I have a Time Capsule with 2tb of storage, and an I-Mac with 500Gb. (which is at capacity) Can I use the Time Capsule to store data from my hard drive that I want to access later in addition to backing up the hard drive?

    Can I use the Time Capsule to store data from my hard drive that I want to access later in addition to backing up the hard drive?
    Yes, but if you move the "original" data on your iMac to the Time Capsule....then the "original" data is now on the Time Capsule disk. 
    When...not if...the Time Capsule disk has a problem, you have no backups for this data.
    Perhaps a much safer plan might be to add an external hard drive attached directly to your iMac. Then, move the data to that drive from the iMac.
    Now, Time Machine will back up both your iMac and the external hard drive so you have "originals" on one drive and backups on another. Would that plan work for you?

  • How can I use FK description in a BC4J data query component?

    Hi all,
    I am facing the following problem.
    Although I use renderers in the DataEdit component for displaying the descriptions of the FKs this is not useful for the BC4J data query components.
    How can I get the same functionality as in the dataEdit components?
    Thanks in advance,
    Aggelos

    Anfortunately,
    This is not the same when I have a DataQuery component.
    The question now becomes as following:
    How can I use FK description in a BC4J data query component?
    Thanks in advance
    Aggelos

  • If your database in Full Recovery mode, can you use Bulk Insert Task to load data

    If your database in Full Recovery mode, can you use Bulk Insert Task to load data

    If your database in Full Recovery mode, can you use Bulk Insert Task to load data
    Yes you can ofourse but dont be in idea that logging will be mininal. Loggign will be as per recovery model full. Every thing will be logged. If you are going to use bulk insert task you can consider switching recovery model to Bulk logged but you will not
    have option to do point in time recovery.
    PS: please dont create duplicate threads
    If you read first Note section in below link it clearly states that yes logging will be full and you can use
    http://technet.microsoft.com/en-us/library/ms191244(v=sql.105).aspx
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

  • Can I use SAP 4.7 extractors in Data Services 4.0?

    Hi everybody!!
    I would like is is possible or no?
    Can I use SAP 4.7 extractors in Data Services 4.0?
    Thank you,
    Fernando

    Hi,
    I think you've landed in the wrong forum. This forum was meant for liveCache or SAPDB / MaxDB related questions.
    I will forward your post to another, hopefully more suited, forum.
    Regards,
    Roland

  • I have a powerbook G4 with macosx10.5.8 (as far as I know the latest possible OS with powerPC). Can I use Time Machine to restore my data on an Intel Macbook?

    I have a powerbook G4 with macosx10.5.8 (as far as I know the latest possible OS with powerPC). Can I use Time Machine to restore my data on an Intel Macbook?

    Well the newer TimeMachine model as stated in current Support pages isn't directly compatible on OS X 10.5 now, as noted in above link provided.
    What OS X does your newer MacBook have running in it? (Not linux?)
    With the current setup you have there may be a way -among other details in the support page- to do the migration of data from Mac, including a subnote on Time Machine, in a section below the main article with triangle by it,  from links here:
    •OS X: How to migrate data from another Mac using Mavericks 10.9:
    http://support.apple.com/kb/HT5872
    •OS X: How to migrate data from another Mac using Mountain Lion 10.8 and Earlier:
    http://support.apple.com/kb/ht4889
    In the support articles there are various troubleshooting and help items about the technology, some data back some time and whatever still stands would be there. Some archives are no longer current and say so.
    Perhaps someoone still using older PPC Macs and Leopard 10.5, will say how to backup into a G4 PowerBook, from a Time Machine.
    Unless the TimeMachine backup from the older PPC G4 PowerBook is used in the migration process of transferring personal account files from there to a new MacBook running (?) OS X. This probably could be done. You may be able to access older libraries, such as iPhoto, iTunes, etc and import them from the archive, to a newer Intel-based MacBook.
    Sorry for any confusion.
    I'll more carefully reply in the future.
    Good luck & happy computing!
    PS: a different direction on archives, time machine, clones, and other devices:
    •About Time Machine - Time Machine vs. Clones and Archives:
    http://pondini.org/TM/Clones.html
    •Apple OS X and Time Machine Tips:
    http://pondini.org/TM/Home.html
    {edited to add link details}

  • No exact match was found. Click the item(s) that did not resolve for more options. You can also use Select button to choose External Data.

    HI,
    I have SharePoint Online 2013 environment, i have created a external content type from wcf service. I want to use this as External Data column in document library. When i look for values in content type it populates and when i click any values and adds and
    then click saves it shows the below error
    No exact match was found. Click the item(s) that
    did not resolve for more options. You can also use Select button to choose External Data
    __fkc000950056003700kc000950056003700kc000e400f2001400kc000950056003700k830035004700160027004700d20057000700020064009600870056004600:
    No Matching Items
    Please help on this.
    varinder

    I don't understand the question exactly, could you restate it.  Sorry mate, I might just be braindead.
    But, as far as the issue, it is by design.  the column is a lookup columns which essentially ties to the external data.  if that data is removed, the column on your simple list becomes invalid and any edits of the simple list item will require
    it to be changed.
    are you wanting to make the ECT read only?  that's simple enough.  you can pop open SPD and edit the ECT, then remove the C/E/D operations (create/update/delete).  That will not, however make it read-only in any other systems that access that
    external data, as I assume its not just SP or else it wouldn't be external
    Christopher Webb | MCM: SharePoint 2010 | MCSM: SharePoint Charter | MCT | http://christophermichaelwebb.com

Maybe you are looking for

  • Dvi to hdmi works doesn't work with new tv

    I have been searching constantly for several days, and I have not been able to find a solution. I have been using a 32" Vizio HDTV as a monitor for my 2008 macbook pro via DVI to HDMI for over a year now. Recently, we purchased a new 39" Sanyo HDTV f

  • Business Partner relationship assignment

    Hi experts, we have a slight problem in CRM. We are working with 4.0 and connected R/3 4.7c. We enter BPs in CRM and transfer them to R/3. Two Problems: 1. in the BP Role "Customer" we want to set one Partner Function (relationship) "Has Employee Res

  • Issue in comparing 2 instances of VO with LOV/VL

    Experts, I have 2 instances of a VO in my AppModule. I am doing a column by column comparison of the 2 instances as per the below code. Everything is good if i don't have a LOV or VL defined for any attribute in the VO. For eg if i have 1 lov defined

  • EDI 870  sales order status

    Hi All, We are implementing the sales order status using EDI 870. Does anybody implemented the same and if so please share IDOC/Message type name or process. Thanks & Regards, Harish

  • Desire a default window size when opening 2nd Firefox window, when 1st window is a narrow news streamer

    Hi, When I have a Nasdaq ticker running using firefox, then any time I open a new firefox window, it defaults in size to the small ticker window size. I then have to resize the window. Is there any way to have firefox always open to a default size, r