NI 9853 C Series CAN module Synchronization

OK, this is goning to be long to explain...First  of all Im using a CompactRIO 9004 system with 9104 Chassis and the NI9853 high speed CAN module. Ive been able to perform a loopback test between CAN0 and CAN1 ports of the 9853 module (with standard and extendend IDs). I also have a fully functional CAN network consisting of Microchip hardware, specifically two dsPIC30F4011's with the MCP2551 CAN transceiver and one 18f4553 with an MCP2515 CAN controller and a MCP2515 CAN transceiver, this network also works well within itself (I send messages through the CAN network and the PICs are able to control some servos). Im trying to interface the cRIO and NI9853 with this CAN network, but neither the NI9853 module will successfully transmit or recieve from any of the PICs. Funny thing is that I connect everything to the same physical bus (twisted pair cable with 120ohm terminators) and Im still able to transmit from CAN0 to CAN1 of the NI9853, and also the PICs are able to transmit/recieve within themselves. I think it all has to do with sync issues, the thing is; Ive gone as far as programatically writing the BTR0 and BTR1 registers of the NI9853 module (which has a Phillips SJA1000 CAN controller) to match those used by the Microchip hardware, and still no communication. Im trying to transmit at 1Mbit/s, using 20Mhz clocks on my external CAN network, for this Im using 10 time quantas to represent the nominal bit time, from what I understand from both CAN controller datasheets (MCP2515 and SJA1000) the definition of the segments and the sampling point for the bits is what is of importance (as well as the scaler value), Ive matched both to identical values by manipulating the BTR0 and BTR1 registers of the SJA1000 (NI's 9853) CAN controller. From what I know the FPGA on the cRIO runs at 40Mhz, with this a 20MHz clock for the NI9853 is possible. Here is the thing, when selecting the properties for the 9853 module and selecting a preset from the "Baud Rate" drop-list for any CAN port, if the "Advanced" button is pressed the "Specifiy Baud Rate as Bit Timing Registers" value changes accordingly to the preset value specified in the drop-list, that is, if I select 1000 kbits/s, BTR1 gets the value 0x14 and BTR0 gets 0x00; if I select 500 kbits/s BTR1 gets 0x1C and BTR0 gets 0x00. Also on the same properties window for the 9853, there is a "Module" tab, with a drop-list labeled "Module Clock" the values I can select here are 20Mhz and 10MHz. Turns out that the value of the baud rate as specified in the advanced tab by the bit registers is not affected if I select 10Mhz or 20Mhz; also in order to have a 1000 kbit/s speed with a 0x14 value on BTR1 a 16MHz clock speed should be used (according to the definitions of the SJA1000's datasheet for BTR1 and BTR0). The following images show what Im talking about:      
Also all documentation I could find regarding nonstandard baud rates on the NI site apparently refers to the CAN controller NI hardware series 1 used (Intels 82527, which actually runs at 16Mhz) from what Ive been able to research this chip has identical Bit timing registers to the ones of the SJA1000 controller, proof of this is the document labeled "How to Configure CAN Ports for Custom Baud Rates" (http://zone.ni.com/devzone/cda/tut/p/id/4304), which shows a map of the registers of Intels chip, and is identical to the one found on the SJA1000s datasheet. On other document titled "How Can I Set Nonstandard Baud Rates in NI-CAN?" (http://digital.ni.com/public.nsf/allkb/CBA1FC627FFA0F8F862564DC0071B3A7?OpenDocument), the same information appears regarding the way the NI-CAN driver handles baud rates (again using Intels chip, which by the way is incorrectly specified to be running at 8Mhz). Using 20Mhz and the BTR1+BTR0 combination 0x1400, the SJA1000 yields 1.25Mbits/s, not even a possible speed on the CAN bus. Bottom line is, I think I cant interface my CAN network with the NI 9853, because of this strange issue. Im just wondering if anybody has any idea how to do this, or at least what is the speed the 9853 module runs on, with this I think I could at least try and find a value to match the 1Mbit on my network. Finally Ive attached the project Im running on the fpga target (Ive set the Module Clock on 20Mhz, disabled auto-start for both CAN ports and specified to run the Baud rate from the time registers using BTR1: 0x34 and BTR0: 0x00 values for the timing registers).   Any help will be appreciated, thanks in advance...
Attachments:
CAN Test.zip ‏194 KB

One final thing, this is the only thing regarding external sync that Ive found so far....its the "NI CAN Product Compatibility and Feature Table" (http://zone.ni.com/devzone/cda/tut/p/id/5859#_ftn1) take a look at the footnote it says a digital module is needed, would it be a digital 9401 module? Ive also got one of those.

Similar Messages

  • CANOpen Communication NI cRIO 9022 (9853 CAN module) - MAXON EPOS2

    I'm implementing a velocity control loop on two Maxon EPOS2 70/10 control units,  interfacing them with a NI cRIO 9022 (CAN module 9853). To this aim, I'm using the libraries from NI and they work quite well: for each EPOS2 I can read current, position and velocity using 2 PDO messages and set a desired velocity using 1 PDO message, all in a single timed loop on Labview Real-Time. My VI is based on a NI example included in the mentioned library. Even though the sampling time of the loop is set to 10 ms (as in the example file), I verified that all the operations were executed in about 30 ms.
    My target is 1 ms sample time and I'd like to know if there is any chance to get this; are there some limitations in the software/communication protocol I'm using or is it possible to achieve 1 kHz control frequency? Based on the documentation, the EPOS2 CANopen driver is split as follows:
    1.      Hardware Layer: VIs which interact with the CAN hardware (FPGA Interface folder).
    2.      CAN Layer: VIs which construct/deconstruct CAN packets and handle communication between the Hardware Layer and the top level application (CAN folder).
    3.      CANOpen Layer: Low level VIs which simplify the generation of the SDOs and PDOs used to communicate over the CAN bus (CANopen folder).
    4.      EPOS2 Driver Layer: High level wrappers over the CANOpen Layer simplifying the control of EPOS2 drives (main folder).
    It seems that the Layer that construct/deconstruct CAN packets is impelemented on the RT level. Is it correct? Do I need to move it to the FPGA level to improve performances?
    I look forward to hearing any suggestions from you.
    Best,
    Nevio

    Hi Nevio, 
    I am trying to simply read encoder values from my EPOS2 24/2 control units into Lavbiew. I have been through all the documentation however I am unable to establish communication between the EPOS2 and labview.
    I am connecting the two using a USB connection. I can connect to and control the motors in EPOS Studio, but nothing in labview.
    I am very new to Labview so I am probably not putting the correct blocks down for initialization.
    Could you please help me by suggesting some good examples to look at or linking me to labview sample of initializing communication with the EPOS2 units. 
    Any help is greatly appreciated
    Regards,
    Kris

  • CANOpen Communicat​ion NI cRIO 9022 (9853 CAN module) and MAXON EPOS2

    Hi all
    I am trying to implement a velocity control loop on my Maxon EPOS2 motor controller, by using PDOs sent through my real-time controller (NI cRIO 9022) with a CAN module (9853).
    I configured the PDO mapping in the object dictionary of the EPOS2, so that each new RxPDO1 contains the new desired velocity setting value, and I am trying to use the simple example contained in the National Instrument example directory criocanopenbaisc (freely downloadable here http://zone.ni.com/devzone/cda/epd/p/id/5474).
    I can change manually in the object dictionary the value of desired velocity by using the EPOS studio tool by connecting via USB the EPOS2 to my computer, but when I connect the EPOS2 to the CAN0 port of cRIO the newly sent values does not make effect.
    At the first try the .vi file hung on the Read PDO command, which is right after the Write PDO command. I suppose it means that no real PDO is sent over the CAN bus. However, I excluded the "Read PDO" from the diagram, now the file executes and terminates but no command is sent to the EPOS. I can verify through an oscilloscope that many similar digital waveforms are sent, just like if no ACK signal was received.
    After various tentatives, I sent PDOs structured in the following way:
    COB-ID (4 bytes containing the U32 representation of the COB-ID for RxPDO1: 531)
    Updated value (4 bytes containing the representation of the desired velocity value, U32).
    0 in U32
    0 in U32.
    The last two U32 are sent so to be coherent with the example of the NI library nicanopenbasic.
    At the moment only one signal is sent (no more repetitive signals representing fault communication), but the values are not updated in the EPOS2... 
     Cheers  
    Solved!
    Go to Solution.

    Duplicated post

  • CANOpen Communication NI cRIO 9022 (9853 CAN module) and MAXON EPOS2

    Hi all
    I am trying to implement a velocity control loop on my Maxon EPOS2 motor controller, by using PDOs sent through my real-time controller (NI cRIO 9022) with a CAN module (9853).
    I configured the PDO mapping in the object dictionary of the EPOS2, so that each new RxPDO1 contains the new desired velocity setting value, and I am trying to use the simple example contained in the National Instrument example directory criocanopenbaisc (freely downloadable here http://zone.ni.com/devzone/cda/epd/p/id/5474).
    I can change manually in the object dictionary the value of desired velocity by using the EPOS studio tool by connecting via USB the EPOS2 to my computer, but when I connect the EPOS2 to the CAN0 port of cRIO the newly sent values does not make effect.
    At the first try the .vi file hung on the Read PDO command, which is right after the Write PDO command. I suppose it means that no real PDO is sent over the CAN bus. However, I excluded the "Read PDO" from the diagram, now the file executes and terminates but no command is sent to the EPOS. I can verify through an oscilloscope that many similar digital waveforms are sent, just like if no ACK signal was received.
    Looking forward to receiving any hint
    Fabrizio 

    Some updates on the developments, since no one yet replied...
    At the current time the PDO sent is structured in the following way:
    COB-ID (4 bytes containing the U32 representation of the COB-ID for RxPDO1: 531)
    Updated value (4 bytes containing the representation of the desired velocity value, U32).
    0 in U32
    0 in U32.
    The last two U32 are sent so to be coherent with the example of the NI library nicanopenbasic.
    At the moment only one signal is sent (no more repetitive signals representing fault communication), but the values are not updated in the EPOS2...
    Cheers 

  • I can not synchronize data from the prelude livelog

    I can not synchronize data from the prelude livelog apparently seems to be all right, more aprasenta the following message: The Open Clip does not support XMP.
    The Prelude can not apply metadata in it.
    please can someone help me

    Hi -
    When it comes to AVCHD footage, Prelude wants to leverage the complex folder structure in order to save metadata. If the file is just the *.MTS file and is not part of the original folder structure, Prelude will report it cannot write metadata to the file. You can transcode the *.MTS to another format and then add metadata.
    We are looking at future solution for what we call "naked MTS file", but unfortunately that is not part of the currently released product version.
    Michael

  • How Can I Synchronize Files From Mac to PC?

    I have a G4 laptop and a PC Desktop (HP Pavilion d4100e, AMD X2 processor, NTFS file system), and I need to be able to work on both. To work on both, I need to synchronize the file systems so that my 30k files on the Mac appear on the PC and I can progressively synchronize as I make changes on one machine or the other.
    I've tried a multitude of solutions, but have thus far been unable to set things up so that I can synchronize from one machine to the other. I learned that the copying process from Mac to PC would be interrupted if any of the files had a number of special characters that could occur on the Mac but not the PC, specifically: / \ ? " * . I more recently learned that a space at the end of a Mac file name would, once the file was sent over to the PC, be impossible to open and impossible to change the file name. I fixed all these problems using the mv_sed unix program. Nevertheless, a simple folder copy in the finder would quickly lock up--it would continue forever but no data would be transmitted. I then used the Synk program to synchronize to the mounted PC drive (mounted w/ 'smb').
    I got all my files over to the PC, but when I try to synchronize any changes I made since the initial transfer, Synk locks up as well--it keeps running forever w/o any transmission of data. At this point, I realized that I could not list the contents of some of the folders on the PC from the Mac (using Terminal, smb connection). After some experimentation, it became clear that there wasn't anything wrong w/ specific file names, but that it wasn't possible to list the contents of folders that had a large number of files. I fixed that, but I ran into a multitude of additional problems being able to list folders. I don't have the time to figure out why. My guess as to why Synk locks up is that it can't list folders for synchronization.
    At this point, I tried to make the file system on the PC more UNIX like, in the hopes that this would make synchronization possible. I installed cygwin on the PC, and I tried to use rsync to synchronize the files. Using cygwin, I seem to be able to list any folder from my Mac. So far, so good. But rsync is unable to transfer many files to the PC. It seems to try to create a temporary copy and then it can't read its own temp file, apparently because the file was never created. It also goofs up at points and puts a copy of a folder inside itself. Also for some reason it copies files over even when they already exist.
    So far, no good solution. Is it possible to synchronize a real filesystem from Mac to PC? How? I'm guessing Apple doesn't have much incentive to insure this is possible.
    Cheers,
    Peter

    Hi Peter!
    Not sure if this meets your needs and I've never used it but a quick search on the InterWeb reveals this http://www.powerfolder.com/.
    Hope this helps! bill
    1 GHz Powerbook G4   Mac OS X (10.4.7)  

  • Hi, I've an iPad Mini with the latest version 6.0.2, a windows 7 Home Premium laptop and iTunes 11.0.1 (12), but I can't synchronize my music or videos with it. I managed to syncronize my books but thats all  I also have an iphone 5 and everything seems t

    Hi, I've an iPad Mini with the latest version 6.0.2, a windows 7 Home Premium laptop and iTunes 11.0.1 (12), but I can't synchronize my music or videos with it. I managed to syncronize my books but thats all.
    I also have an iphone 5 and everything seems to work fine with it.
    I see all movies and music available to be sync but when I click on the sync button, the process starts, the bottom bar shows an increase in consumed space then nothing happens and the bar goes back as nothing was added.
    Please help..
    I have tried everything but nothing works.

    Thanks Sk8dreams,
    ....but I wish I could have lol like u right now..
    If I could get a free iPad everything I'd already kept my iPad connected and restarted iTunes, I think I'd have had a truckload of them by now...
    I've done all of these..
    Like I said earlier I syncd everything to my iphone5 successfully...
    I got my PDF ebooks to this same iPad... Films & Music do not seem to be getting through..
    I'm sure someone out there knows what to do..

  • How can I synchronize my iPhoto events? my iTunes doesn't read them and with the app Images in the iPad I can only find Photos, Albums, Faces and Places, not Events.

    How can I synchronize my iPhoto events? my iTunes doesn't read them and with the app Images in the iPad I can only find Photos, Albums, Faces and Places, not Events.

    I had a problem a couple of months ago when iPhotos suddenly rearranged the order of my Events (Why won't iPhoto let me arrange my photos?) .  I was told "Use albums not events - events are not a good way to organize - albums and folder are designed for organisation and are very flexible".
    Haha!  I should have paid attention and read between the lines!  My iPhotos were highly organised groupings - not according to date but the way I wanted them - and it was so easy to do!  I see now that if I had them all in albums, as per the Apple Apologist suggestion, I wouldn't have this unholy mess I have been left with just to make iPhone & iCloud users happy.  I am now going through Photos and making Albums (of what used to be in my Events)  ... maybe I'll get this finished before they do another non user friendly update!

  • On the moment that I connect the Iphone 5 on Windows 8, it is not recognized by Itunes, but actually it appears as a usual USB cable, or as a camera. And then I can't synchronize the Iphone 5 with Itunes. So, what do i do?

    On the moment that I connect the Iphone 5 on Windows 8, it is not recognized by Itunes, but actually it appears as a usual USB cable, or as a camera. And then I can't synchronize the Iphone 5 with Itunes. So, what do i do?

    Hi pedro109,
    If your iPhone is recognized by the computer, but not seen by iTunes, you may need to restart the Apple Mobile Device Service, as described in this article -
    How to restart the Apple Mobile Device Service (AMDS) on Windows
    http://support.apple.com/kb/TS1567
    Once iTunes recognizes the iPhone you should be able to sync it with iTunes. See this article
    iTunes 11 for Windows: Sync contacts, calendars, and other info with iPod, iPhone, or iPad
    http://support.apple.com/kb/PH12317
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • I cannot install Itunes 10.5.3 properly on my W7 64bits...it works but then i can't synchronize my ipad..they ask me to install Itunes 64bits...

    ...it works but then i can't synchronize my ipad..they ask me to install Itunes 64bits...
    I uninstal, instal, uninstal all apple software, instal itunes again...after 10 times, it still doesnt work...
    any advices ?

    It won't pass 10.3.
    What does this mean?
    I figured it out. Thanks!!!
    What did you figure out? How about posting how you resolved it?

  • I have the iphone 4 and PC with Windows Vista Basic. When I bought my iPhone syncs with iTunes on my computer, but now when I try to sync it tells me that Mobile Device Service was closed and I can not synchronize the phone. Try restarting Mobile Device S

    I have the iphone 4 and PC with Windows Vista Basic. When I bought my iPhone syncs with iTunes on my computer, but now when I try to sync it tells me that Mobile Device Service was closed and I can not synchronize the phone. Try restarting Mobile Device Service and uninstall and reinstall Itunes but still giving me the same error.

    http://support.apple.com/kb/HT3965

  • I upgrade my Iphone 5C with IOS 8.1.1 and now I can't synchronize my iphone with my computer, it stop on level 3 (calendars synchronization)

    Problem of Iphone 5C synchronization after an upgrade 8.1.1.:
    I upgrade my Iphone 5C with IOS 8.1.1 and now I can't synchronize my iphone with my Apple computer, it stop on level 3 (calendars synchronization). Could you help me ?
    Thanks

    have you read this:
    http://support.apple.com/kb/TS1591

  • I can't synchronize my movies. What is the video size for ipad2?

    I can't synchronize my movies in my IPad 2. What is the video size for ipad2?

    Ok but what is the correct format ???
    For the moment it is divx...
    Thank for your help !

  • Can FCS be set up in multiple offices - Would that be one database or can we synchronize several - I need general architecture concept

    Can FCS be set up in multiple offices/locations - Would that be one database or can we synchronize several databases - I need general architecture concept

    If you want to link to separated location which are too far from each other to connect via Ethernet or FC you can't. What you can do is build another FCS with a completely independent DB and link both with XML and scripting (or if you have a very good DB knowledge). Other than that you can put the FCS DB in one location and make the clients on the other connect to the first one. But if the issue is to ingest media from both locations to the same DB then you better have a nice and big Ethernet connection between both locations.
    Hope this help

  • Can't synchronize with iTunes Ipod 4g

    I can't synchronize with iTunes anymore, since the second day I've got my iPod 4g 2 weeks ago.
    iTunes says "iTunes can't make a backup of *ipod name*, because the ipod is disconnected" (I've got the dutch version, tried to translate it as good as possible).
    I allready tried to uninstal itunes and instal it again, but that didn't worked.
    any other ideas?
    edit: and now I have a second error, 13010
    Message was edited by: jovano

    Have you sync'd it with any other computer before?

Maybe you are looking for