Basic CAN BUS question

I'm using a CAN BUS for the very first time and would like to have some explanations on something that seems to be a normal behavior. I used the CAN Transmit - event based.vi with NI-Spy to monitor the outputted CAN frame.
I've set the baudrate to 1MB, the Arbitration Id to 0x8, the data length to 4 (see attached Front Panel Settings.jpg). When I look at the captured input and buffer I can see that the input data size is 14 and that the buffer contains the arbitration Id 08 followed by four 00 bytes, the data lenght value 04, the four data bytes 01 02 03 04 and then four 00 bytes.
These results doesn't seems to be compliant with the CAN frame specification (see attachment CAN FRAME Bosch.png). Can somebody explain this to me?
Thanks,
Ben
Attachments:
CAN Transmit - event based.png ‏48 KB
Front Panel Settings.jpg ‏44 KB
CAN Spec Bosch.png ‏162 KB

Hi Ben,
What's the exact hardware you are using with this? Have you checked with the Bus Monitor instead of NI Spy to see if the frames are read correctly. It's generally a lot more difficult to make sense of the frames in NI Spy. You can launch Bus Monitor from MAX by right clicking the specific CAN interface. If you have a 2 port CAN device or have 2 CAN ports that you can access, then you can write out of one and read from the other using the Bus Monitor to make sense of what's being written on the bus.
Raj
National Instruments
Applications Engineer

Similar Messages

  • Kvaser CAN bus

    Hello,
    I'm trying to use a kvaser CAN bus card with Dasylab. However I'm not able to use it... Is it possible to use a kvaser card at all in Dasylab? Which module should be used for this? Does anybody know this?

    National Instruments provides this forum as a courtesy to its customers. However, this is not the primary method for requesting support and assistance with the DASYLab product. NI does not actively sell the DASYLab software, nor does it actively support it.
    Where else can you obtain assitance?
    Your reseller - it's likely that they are familiar with your hardware and can provide help.
    The www.dasylab.com web page has updates, drivers, product information, an extensive list of technical notes.
    Measurement Computing Corporation has product information, product updates, and support information.
    In Europe, MeasX GmbH & Co Kg sells, supports and enhances the DASYLab software
    We recommend that you contact your reseller first. They know your hardware and software environment, and are most likely to be able to assist you quickly.
    You can request help directly from a support engineer by going to the Support section of the www.dasylab.com web page. This is automatically routed based on geography,  to the person best suited to assist you.
    If you post a question in this forum, we cannot guarantee a response time.
    When requesting support for DASYLab
    DO NOT post your full DASYLab serial number
    Please tell us
    the version of your DASYLab software, 
    the level of your software (Lite, Basic, Full, Pro)
    the exact DAQ device by manufacturer and model,
    your operating system and computer,
    and, if appropriate, a copy of your worksheet.
    - cj
    Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.

  • Can LabView simulate multiple nodes on a single CAN bus?

    We currently are developing a system where a single control panel controls a number of drive motors over a CAN bus.  Each of those drive motors has electronics and software in them which tracks the status of the motor, and this information is sent over the CAN bus to the control panel.
    We have previously used Vector CANoe to simulate the activity of the drive motor nodes on the CAN bus during development of the control panel.  We want to move to LabView in order to run this kind of simulation.
    Is it possible for LabView to be used to run this kind of simulation?  Each node would have its own CAN ID on the bus.  It would need to send out appropriate periodic status messages on that CAN bus that would be based on user inputs.  It would also need to display certain information based on commands sent to it via the control panel over CAN.
    Thanks for the assistance.

    Hi,
    I believe that what you need is to simulate several CAN ports. There is a similar discussion form that I believe will answer you question. I hope this helps.
    Regards
    Krista S.
    Applications Engineering
    National Instruments

  • Basic Hyperion Workspace question

    Is there any way to Drill-Down to data by double-clicking on the chart item in Hyperion Workspace? I can do this in Hyperion Reporting Studio.

    hi all,Hi Neerav
    I have very basic clone database question
    If i create database A and clone database B using A...
    I want to know that any operation done on A will be automatically done on Cloned database B.Oops....Now you're asking about rocket science. Sorry, I don't know.
    I know about some basics:
    Streams or Replication--> Which can give you data on B in read-write mode.
    DR--> For safeguarding your database and B will work as DR solution.
    Hope u understandNo, please make us understand.
    Regards,
    S.K.

  • Interacing Labview with a CAN bus interface

    I should use a CAN parallel/serial interface produced by
    ACTIA(NetPorty II) and i'm using Win XP and LV 6.1. What is the
    simplest method to use it in a "user friendly" way (i'd like to avoid
    writing a driver myself)?
    Does anyone of you own the same card and/or must face similar
    problems??
    If you want you can answer me via e-mail...
    Thank you in advance,
    Luca

    Thank you for your answer, i'll try to work at it...i'm a novice!
    On Tue, 4 Mar 2003 15:58:08 -0600 (CST), DiegoF wrote:
    >Hi,
    >
    >It really depends on the software the manufacturer provides to handle
    >this device.
    >
    >If the manufacturer provides an API that exports the CAN bus specific
    >functions and internally handles the parallel or serial communication,
    >it would be recommended to use this API. Most likely the API will
    >have a C interface, so you can use the library function call nodes to
    >access these functions.
    >
    >If the manufacturer only provides a list of command you need to send
    >to the device, then the problem is no different from communicating
    >this other devices (like scopes, DMM). basically, you can use VISA
    >to send the required com
    mands to the device.
    >
    >Hope this helps.
    >
    >DiegoF.
    >National Instruments.

  • CAN BUS PXI 8461 over RS-485

    Dear Ladies and Gentlemen,
    in one of our projects we are trying to use a CAN Bus system over RS-485. I have got doubts if this can be realized since RS-485 is different to CAN Bus. RS-485 does not support any multimaster configurations without bigger efforts and so on. But this is not the issue for my question here. On a prototype board I implemented RS-485 drivers and receivers. I am trying to find a circuitry to run CAN bus via RS-485. The test setup shall be quite easy. PXI 8461 card -> RS-485 -> ASIC (with the implemented CAN Bus system) and the same way back. It is just a point to point connection. No multimaster configurations will be tested. My question is now if it is possible to use the PXI 8461 card in general? I am not sure if the electrical levels are equal. Perhabs somebody used this card in my configuration and can give me some support. If it is not possible are there any recommendations which cards can support my configuration?
    Thanks a lot for your help!
    Best regards,
    Ingo

    Hello Ingo,
    thank you for contacting National Instruments. RS-485 specifies an electrical standard, like differential signal transmission and with a voltage around +/-200 mV. A DC-Offset from -7 to +12 Volts is allowed.
    The CAN-Standard uses Voltages from -27 to 40 Volts. As you can see, you can not switch the electrical specification from CAN to RS-485, because the voltages differ already to much.
    Why do you have the need to reduce the CAN Voltage down to RS-485 levels?
    Best regards
    MarianO

  • Basic recording/feedback question

    I'm recording basic vocals against accompaniment tracks using an APOGEE ONE and Audio-Technica 40 series AT8449 condenser mic. I use only headphones, no external speakers.
    If I record with "monitoring" on I constantly battle feedback/distortion, especially on songs with a wide dynamic range. When the feedback protection kicks in the message indicates that I'm getting feedback through my external speakers (which I don't have), I can minimize the problem by turning "monitoring" off but I lose the reference vocal. I know I must be overlooking something very simple. Any help is appreciated.

    hi all,Hi Neerav
    I have very basic clone database question
    If i create database A and clone database B using A...
    I want to know that any operation done on A will be automatically done on Cloned database B.Oops....Now you're asking about rocket science. Sorry, I don't know.
    I know about some basics:
    Streams or Replication--> Which can give you data on B in read-write mode.
    DR--> For safeguarding your database and B will work as DR solution.
    Hope u understandNo, please make us understand.
    Regards,
    S.K.

  • Basic PDF/SSL Question

    Okay, I know this is a basic question, and I'm not sure if this is really where I should be posting it, but maybe someone out there has experience with this.
    I have a PDF form sitting on a secure server.  I have it set up to email the completed PDF back to our company when the user clicks the SUBMIT buttton.  Whether or not the PDF is secure coming back to us would be dependent on the email server the user uses - not that the form sits in a secure area on our server or that the PDF is security settings are set, correct?
    Any input appreciated.
    Thanks
    Q

    hi all,Hi Neerav
    I have very basic clone database question
    If i create database A and clone database B using A...
    I want to know that any operation done on A will be automatically done on Cloned database B.Oops....Now you're asking about rocket science. Sorry, I don't know.
    I know about some basics:
    Streams or Replication--> Which can give you data on B in read-write mode.
    DR--> For safeguarding your database and B will work as DR solution.
    Hope u understandNo, please make us understand.
    Regards,
    S.K.

  • Basic wifi service question

    basic wifi service question
    A Windows-using friend of mine subscribes to a service from Verizon that is sort of like a cell phone for a computer - wifi service that you can access from theoretically anywhere, for something like $60 a month -
    as far as I can determine, one CAN get this for Mac but ONLY if you have a 15 or 17 inch laptop with PC slots - unless I am missing something. It requires a special kyocera card.
    Another company, T-Mobile, offers a similar service, but with no MAC access at all.
    So my question is: is there a similar service, wi-fi access theoretically anywhere (or even just anywhere in New York City) ? Hopefully with just the regular mac airport card and not any additional special hardware?
    Thanks!
    Will

    Hello WillFriedwald2
    The kind of service your describing is probably a 3G and GPRS service.
    Phone companies now offer mobile high speed connections using EDGE technology or GPRS2 and supply a 3G or GPRS PCMCIA card.
    However some companies are now offering a package whereby you get high speed 3g and gprs and also wifi.
    So to use this service on a laptop that has no PC card slot you need to get a 3G or GPRS2 phone that supports blue tooth then you can connect your laptop to the phone over bluetooth and therefore access high speed internet.
    But if you had a desktop mac such as a G5 you would be better just getting a regular cable or dsl connection in your home and invest in a wireless router.

  • Basic JDBC transactional question

    Hello all,
    I have (what I believe) is a basic transactional JDBC question.
    Here's what I want to do:
    begin transaction
    select a row from a table where (some condition).
    that row may or may not exist.
    if the row exists: update the row
    else if the row does not exist, insert a new row
    end transaction
    I want this entire thing to be atomic .. I don't want the select to complete, then have something else come in there before the update/insert takes place.
    I'm using MySQL .. I seem to remember hearing about some proprietary MySQL command which would do a SELECT + UPDATE atomically .. which would be fine, but I can't find it.
    Wrapping this with a row-level lock would be fine too .. I'm just not sure how to do that in JDBC.
    Thanks!
    -d

    By thte way, and not that it helps the orignal poster, who's using MySQL, but Oracle has a proprietary MERGE statement that does "insert or update" in one go. For example:
    MERGE INTO bonuses D
       USING (SELECT employee_id, salary, department_id FROM employees
       WHERE department_id = 80) S
       ON (D.employee_id = S.employee_id)
       WHEN MATCHED THEN UPDATE SET D.bonus = D.bonus + S.salary*.01
         DELETE WHERE (S.salary > 8000)
       WHEN NOT MATCHED THEN INSERT (D.employee_id, D.bonus)
         VALUES (S.employee_id, S.salary*0.1)
         WHERE (S.salary <= 8000);

  • Basic Clone database question

    hi all,
    I have very basic clone database question
    If i create database A and clone database B using A...
    I want to know that any operation done on A will be automatically done on Cloned database B.
    Hope u understand
    Thanks,
    Neerav

    hi all,Hi Neerav
    I have very basic clone database question
    If i create database A and clone database B using A...
    I want to know that any operation done on A will be automatically done on Cloned database B.Oops....Now you're asking about rocket science. Sorry, I don't know.
    I know about some basics:
    Streams or Replication--> Which can give you data on B in read-write mode.
    DR--> For safeguarding your database and B will work as DR solution.
    Hope u understandNo, please make us understand.
    Regards,
    S.K.

  • How to find the current CAN BUS Utilization in Labview?

    Hi,
    I want to detact the Current CAN BUS utilization. Can any body suggest for that?

    This question would probably be better suited at the Automotive Networks section.
    http://forums.ni.com/t5/Automotive-and-Embedded-Networks/bd-p/30
    Even so I've never seen a LabVIEW implmenetation for NI-CAN or XNET that actual measured bus load.  Which is a little odd because the test panels in MAX have this feature.  For me I usually put another node on the bus and measure it this way as a test.  But if I wanted to know what it is from a VI the best that I know of is you can calculate it.  There is a VI burried that does the math for you.
    This VI can calculate how long it will take to transmit a frame, and how many frames per second can be sent.  Using this information you can calclate bus load of your actual messages.
    <LabVIEW>\examples\CompactRIO\Module Specific\NI 985x\cRIO CAN Periodic Transmit\CAN Rate Calculator.vi
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Nmea 2000 over pxi - can bus (NI PXI-8460/2​)

    Hi,
    I gonna purchase an Automatic Test Equipment (ATE) based on NI PXI.
    (LabWindows/CVI, Win7)
    One of the features of my ATE is to test a NMEA2000 network (read and write masseges).
    Can I use the NI PXI-8460/2 module to test the NMEA2000 network?
    If yes, what else do I need except of that module (software, hardware)
    If not, what can I use instead of a CAN-BUS module?

    Hello easo,
    All of our CAN cards will work with a network as long as it is CAN compliant. In order to program our CAN cards all you will need is our CAN driver. Please let me know if you have any other questions. Have a great day!
    Best Regards,
    Adam G 
    National Instruments
    Applications Engineer

  • Write analogue channel to CAN bus

    I have a cDAQ with a number of analogue and digital I/O modules installed. What I would like to do is take some of the analogue inputs and transmit them onto a CAN bus using the NI 9862 module. I know the basics of how to read the analogue data but I'm not sure how to get this onto the CAN bus, does anyone have a sugested starting point?
    Thanks,
    Richard

    Hi Richard,
    as you use the 9862 on a cDAQ you should have XNET driver installed. This driver comes with a lot of example VIs. Start by studying them!
    You need to define a CAN message containing your "analog" signal. Then you send that message using XNET write message function…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • My first gen. iPad exits out of apps and safari at random times when I am trying to use them. So I basically can't do anything on it. Is there some way I can fix this?

    Crashing apps. What do I do to fix it?
    My first gen. iPad exits out of apps and safari at random times when I am trying to use them. So I basically can't do anything on it. Is there some way I can fix this?

    I have the same problem.  Yahoo Sportacular aborts every time I try to open it.  It attempts to load and then the device goes right back to the home screen.  The problem started April 26 after I switched leagues from NHL to NBA. Closing all apps and Restarting doesn't solve solve the problem.
    All other apps on the iPad work fine.  IPad2, OS6.
    Any other suggestions?  I suppose I could delete the app from the iPad and try re-installing it

Maybe you are looking for