Howto build CAN-devices with CANopen Library

Hi
We're two students working on a project to simulate CAN devices connected to a master. We have to "build" these devices in LabView. We've been working with the CANopen Library and the Channel API.
We would prefer to use the CANopen Library, because it is easier that way to build the device's behaviour as it would be in "real-life". But the problem is, that the CANopen Library has been developed to build a CAN Master. Is there a way to bypass that. So that we could build the other side... a CAN device.
We figured out, that we simply could alter the COB-IDs for de PDOs, that would do it. But the whole SDO and Sync part isn't that easy to bypass.
Would be glad if we could get a tipp
Thank you in advance
Ranil Wijeyratne

Hi,
I'm a little confused on the master/slave terminology you're using, however, as CAN (also Canopen) is really a peer bus. Any device on the CAN bus can transmit and receive messages as described below (from the NI-CAN User Manual):
"When a CAN device transmits data onto the network, an identifier that is unique throughout the network precedes the data. The identifier defines not only the content of the data, but also the priority. A CAN identifier, along with its associated data, is often referred to as a CAN Object. When a device transmits a message onto the CAN network, all other devices on the network receive that message
. Each receiving device
performs an acceptance test on the identifier to determine if the message is relevant to it. If the received identifier is not relevant to the device (such
as RPM received by an air conditioning controller), the device ignores the message.
When more than one CAN device transmits a message simultaneously, the identifier is used as a priority to determine which device gains access to the network. The lower the numerical value of the identifier, the higher its priority."
As you can see, you can use our CAN interface "slave" to receive commands from any other device on the CAN bus "master".
Also the Canopen Library is just the API for LabVIEW, both CAN and Canopen ends up in Bits which then will be send to the "Listeners"! They´re just on other Layers on the Programming. But both is really easy with LabVIEW
Hope this helps.
Alex Rudolph
NI Switzerland

Similar Messages

  • Supplying CAN devices with bus power

    Hello everyone,
    Is it possible to provide bus power to a CAN device with a PCI-CAN Series 2 card? 
    The manual is a little confusing in this matter.  Table 4-1 in the manual states that V+ is "Optional CAN power supply if bus power or external VBAT is required."  This makes me think that I can supply a CAN device with bus power from the card's internal source (as long as my jumper is configured for internal). 
    A few lines later the following statement is made: "V+ supplies bus power to the CAN physical layer if external power is required...it is not necessary to supply V+, unless you have configured the VBAT jumper for EXT."  This makes me think that V+ has nothing to do with supplying power to devices, and only with powering the bus on the card itself.
    If it is not possible to supply bus power with the NICAN card, what is the recommended method for powering a device on the same CAN network (assuming the device is not powered somewhere in its own circuitry)?
    Thanks for any help,
    Dave

    Hi Dabramsom,
    the part of the manual that I assume you are referencing is:
        "V+ supplies bus power to the CAN physical layer if external power is
        required. All High-Speed Series 2 PCI, PXI, and USB hardware is powered
        internally, so it is not necessary to supply V+, unless you have configured
        the VBAT jumper for EXT."
    The PCI-CAN/2 cards can be powered either internally or externally.
    To power the device externally the VBAT jumper should be configured for EXT,
    now your card will be powered by an external source, your card cannot be
    configured to be the source for another device. Please reference the following KnowledgeBase:
    What Do the Power Jumper Settings on the NI-CAN Cards Mean?
    As for powering your CAN device it really depends on your device; what are the power
    specifications? Can you consider using a battery?
    I hope this answers your questions.
    Christian A
    National Instruments
    Applications Engineer

  • Accessing CAN-Device using CANopen

    Hi all
    Today I started with the initial startup of a CAN system, which should be used in a test rig.
    First some information about the system:
    - 3 external nodes connected to the bus (using CANopen protocol (at least I was told so), usually running autonomously)
    - 1 CAN interface card (NI PCI-CAN Series 2)
    - PC-System running under WinXP professional
    I know the cabling works, as this was tested with another software.
    The first thing I made a few weeks ago, was to download some source from the forums. Looking at this, I created a simple vi, which should get data using SDO (attached).
    I also attached some pictures of this other software (screenshot software, screenshot can-trace). I just tried to do the same (read a value), with the above mentioned vi. There is also a screenshot from this vi, when I executed it. First it seemed ok, but then I got a warning (probe 1) out of CWrite.vi and right afterwards I got an error (probe 2) out of CWait.
    At another try I came out of CAN init.vi with a warning, but then I got an error "unknown object" when trying to write the data.
    Could you give me some advice on that? The values I tried to send are the default values of the vi.
    Using LV8.0
    Don't be afraid to rate a good answer...
    Attachments:
    CAN_Test.zip ‏769 KB

    Hallo Dirk
    Ich switche jetzt auf Deutsch, nachdem ich in deinem Beispiel-Code einen Kommentar auf Deutsch gesehen habe.
    War heute wieder an diesem Prüfstand und habe dein Programm mal laufen gelassen und dabei folgendes Verhalten gehabt:
    1. Kein Problem bis zur Funktion "ncWriteObj.vi" - dort wurde eine Warnung zurück geliefert.
    2. In der Funktion "ncReadNetMult.vi" wurde dann ein Fehler (siehe Attachment) ausgelöst.
    Leider macht diese Fehlermeldung irgendwie nicht so wirklich Sinn, da die Busteilnehmer mit Spannung versorgt sind. Die ganze Verkabelung wurde, wie vorher schon mal erwähnt, mit einem anderen Programm (ext. SW) und dem Notebook eines Kollegen getestet. Dieser Kommuniziert über eine Softing CANUsb-Schnittstelle mit den CAN-Devices - ohne Probleme und mit der selben Prüfstandeinstellung wie ich das Versuche. Der Bus ist in den Geräten 2x mit 120Ohm abgeschlossen - also müsste auch das passen.
    Ebenfalls angehängt habe ich dein Programm, so wie ich es getestet habe.
    Für weitere Tipps und Infos bin ich sehr dankbar. Ich werde in den nächsten Tagen auch mal versuchen über diese Softing Schnittstelle zu kommunizieren. Trotzdem ist mein Schlussziel immer noch die Verwendung der NI-Karte.
    Danke für deine Bemühungen.
    Thomas
    Using LV8.0
    Don't be afraid to rate a good answer...
    Attachments:
    Unbenannt.JPG ‏25 KB
    CANopen-Sensor.llb ‏89 KB

  • Syncing Numerous Devices with iTunes Library on a Mac Mini

    My MacBook Pro ran out of space, so I bought a Mac Mini with a 750 GB Hard Drive to store all of my music and photos (the Mac Mini is acting as a Media Center).  Anyway, I wish to use this library to sync with my iPad and iPhone--BUT THROUGH MY MAC BOOK PRO.  After I moved my iTunes and iPhoto libraries to the Mac Mini,  I then used the 'Option' key to select the relocated libraries when I opened iTunes and iPhoto on my MacBook Pro; everthing appeared to work fine, but...
           Here's my problem: If I'm actively running iTunes on my Mac Mini (watching a movie or listening to music) or iPhoto,  I will get an error message on my MacBook if I try to open the same library. It will also give me the option to create a new library, which, of course, I don't want  to do.   In my mind, this is no different than sharing a library, but apparently this isn't the case.
          Any ideas on how I can optimize this configuration?
    Thanks for your help!
    Rex Adams

    Hi davidforner!
    I have an article here that I believe can help you accomplish your goals. That article can be found here:
    iTunes: How to move your music to a new computer
    http://support.apple.com/kb/ht4527
    You can also use this article to learn more about switching from a PC to a Mac and getting your information onto the new computer:
    Apple - Support - Mac Basics
    http://www.apple.com/support/macbasics/
    Take care, and thanks for visiting the Apple Support Communities.
    -Braden

  • Greyed Out Tracks When Synching iOS device with iTunes Library

    I am no longer able to sync new tracks added to my iTunes library with any of my iOS devices.   Any new purchases I have made from the iTunes store as well as any MP3 files that I have brought into my iTunes library manually are being transferred to my iPhone or iPod Touch.   The tracks are listed but are greyed out and cannot be played.  
    Sorry if this was resolved somewhere else.  I saw a really old thread on this topic in one of the discussion areas but some of the advice appeared to be outdated given newer versions of iTunes that have come out since then.  
    Thanks!

    Sorry, iTunes v. 12.1.1.4

  • Can I transfer a library between profiles

    I imported, tagged, labelled and sorted the photos up the wazooo .... but I want to consolidate user accounts now. How do I export the library in one account (with all metadata) so that I can put it into the other account's existing iPhoto library?

    Hi Ian,
    I am guessing on this as I have not done it, but it should work.
    -Copy the iPhoto Library folder to the desktop of the other user. You will be asked to authenticate this action. You could also copy it to the other users Public folder.
    -Now log in as the other user.
    -You first need to do a "get info" on the iPhoto Library folder and change the Read/Write permissions to that user. Click the "apply to enclosed items" button at the bottom.
    Now you need to download and pay for iPhoto Library Manager. This is the only program I know of that will merge libraries and keep the metadata intact. Read the documentation on the site about the merging of libraries.
    iPhoto Library Manager
    iPhoto Library Manager documentation
    this page will show you everything you can do with iPhoto Library Manager.

  • Problems with second library

    Hi,
    I have a lot of talks I wanted to put in a separate folder than my music. I keep my music out of iTunes and point it to the folder. That worked so far but I seem to have one problem after the other with the talks folder and the new library. Even though I made sure the files were all labelled correctly and so on, they appeared in iTunes (I think most  of them, not had time to check) but many of them lacking album or artist name or even floating around at random - when there are many files to a talk/seminar this is an intensive task to correct - but although at first I could make changes via Info, then they wouldn't be saved, and then I could open Info but could not write in it.
    I had been using PowerTunes app but found it easier to do things myself.
    I am not sure what to do. That's a day's work anyway. Should I delete the lot and start again? And what is the best way to import the files. I thought just pointing iTunes to the folder did it, but apparently not. Or is there some more radical action? Am currently using Disk Utility to check premissions etc There seem to be issues with system library/java and system library/frameworks etc and then a this:
    "Warning: SUID file "System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAg ent" has been modified and will not be repaired."
    I don't know what that means or if it is serious and whether it has anything to do with the iTunes problem.
    Any advice would be much appreciated.
    Ynys
    Intel iMac - OS 10.6.7  iTunes 10.3

    Hi Sung Lee,
    Here is some info you can check out.
    Sharing Libraries
    Sharing libraries between computers on same local Network
    Sharing libraries between users on the same machine...
    -both users must have sharing enabled in their iPhoto Preferences
    -both users must be logged in and have iPhoto running
    Remember that you can only view the other library. You can't edit the photos or play the saved slideshows or view the made books or burn them to Cd or DVD. The books and slideshows will show up as an album. You can play that album as an "on the fly" slideshow. You can drag images from the sharing library to your library in the source column to import them to your library. You can then edit, add to albums, books, slideshow, etc.
    Sharing one library between users on same machine....
    Download iPhoto Library Manager (pay for it if you deccide to use it for this purpose)
    iPhoto Library Manager
    iPhoto Library Manager documentation
    this page will show you everything you can do with iPhoto Library Manager.
    On the documentation page, click the link on the left for "sharing libraries"
    Or you can go here and see if you would like to do it this way:
    Sharing one iPhoto library between several users on one machine
    Sharing Links
    Sharing your photos between computers
    About shared photos
    Turning off photo sharing
    Looking for shared photos

  • My apple TV will work and then in the middle of a show from my library it will say it can't communicate with my library. The signal is still strong, but it still doesn't work. I have reset the device 3 times now each time it works okay for awhile.

    My apple TV will work fine and then it stops and says having trouble communicating with your library. I have reset the device 3 times and after it works fine, but then I have to reset all settings again. It is getting really frustrating because the signal is fine and everything it just stops working for some reason. Can any one help or does anyone else experience this issue?

    My apple TV will work fine and then it stops and says having trouble communicating with your library. I have reset the device 3 times and after it works fine, but then I have to reset all settings again. It is getting really frustrating because the signal is fine and everything it just stops working for some reason. Can any one help or does anyone else experience this issue?

  • Hi, How do I communicate CANopen device with anyother CAN device? What things needs to be made compatible with 2 CAN devices to communicate?

    Hi,
    I have to communicate CANopen device with other CAN device which uses GMLAN. 
    So in general, How do I communicate CANopen device with anyother CAN device?
    What things needs to be made compatible with 2 CAN devices (i.e, one is CANopen and anyother CAN device) to communicate?
    Please reply.
    Thanks,
    Najmu

    Hello,
    The two devices need to be connected with a CAN cable and while carrying out the communication, one device should be the master and the other should be the slave. Also you should maintain the same protocol (Baud rate, Arbitration ID etc.) at the two devices. 
    Regards
    Akshat Jain

  • I am trying to put the music from my ipod onto my new computer. After installing itunes and connecting my ipod touch a message comes up saying that my ipod is already synced with another library. What can I do to sync it with a new library?

    I recently got a new computer and got rid of my old one. I am trying to put the music from my ipod touch onto my new computer but keep getting a message saying that my ipod is already synced with a library and cannot be synced with more than one. How do I access that library on my new computer and if I can't are their other ways for me to put the music on my ipod into my new computer?

    Syncing to a new iTunes library or computer will erase your ipod. Only if you back up your iPod manually before syncing, you can restore your device from that backup again. A manual backup does not include the sync process.
    Disable autosync in iTunes, connect your iPod to your new computer and right click on it in the device list and choose backup. iTunes will backup your ipod without syncing.
    Transfer your purchases the same way, choosing "transfer purchases" this time.
    When you connect your iPod for the first time, all media content will be erased. But you can restore your settings and app data from your manual backup afterwards.
    Don't forget to set up at least one contact and event on your new computer to be able to merge calendars and contacts when you sync the ipod for the first time.
    Music is one way only, from the computer to your device, unless you bought the songs in itunes and transferred your purchases.
    There is 3rd party software out there, but not supported by Apple, see this thread:http://discussions.apple.com/thread.jspa?threadID=2013615&tstart=0
    About backups and what's saved: http://support.apple.com/kb/HT4946
    How to back up and restore:http://support.apple.com/kb/HT1414
    How to download apps for free again:http://support.apple.com/kb/HT2519
    Saving other data is also described here. How to back up your data and set up as a new device

  • Passing arrays with Call Library Function does not work after application builder

    Calling a DLL with Call Library Function which requires an array of data works correctly in Labview, but after building an exe with application builder, the call no longer works.  Dereferecing the pointer in the DLL retuns all 0s and not the actual values.
    Solved!
    Go to Solution.
    Attachments:
    TEST.zip ‏28 KB

    I did not run your code because it is a little unclear to me what it does.
    Two things:
    First, is the DLL you are calling the DLL-ified version of PopUpNames.vi? Then the problem is likely that the panel is not being built into the DLL.
    When LabView builds an application / dll, it strips the front panel and block diagram from all VIs that it doesn't think need to show a panel at run time. This reduces file size and increases code security. The App Builder's panel inclusion logic can be overridden by Build Specifications -> Source File Settings -> Remove front panel. A better method is to put a property node on a control in a window you want to show marking it "visible"; this is sufficient to tell the App Builder it should keep the panel.
    Currently Source File Settings shows "no dependencies" (clearly incorrect---another evil side effect of Express VIs I guess) but if you change the settings as shown below to keep ALL panels, one might hope the App Builder can figure it to keep the panel when it deconstructs the Express VI. (Alternatively convert the Express VI into a regular one.)
    A second comment: I am a bit flummoxed at the larger goal here. You are calling LabView DLL from LabView, which doesn't make a lot of sense, so I assume your larger goal is to call LabView from C or vice-versa. In that case be aware that your DLL is x86 (32-bit) but you are passing 64-bit ints as your pointers. In this case it is 32-bit LabView with 32-bit pointers in embedeed in 64-bit containers calling 32-bit LabView with 32-bit pointers in embedeed in 64-bit containers, so it all works, but if your going to call this from C or whatnot you're going to have to follow that same design.
    When calling C code the LabView Call Library Function does have a "unsigned pointer-sized integer" data type that always appears to be 64 bits in the dev env but which actually passes a 64 or 32-bit int to the DLL depending on the environment. The "pointer sized int" has to be 64 bits in the "LabView" part of the code because LabView's strong typing requires the data type to be determined at compile time. Casting all pointers to the largest data type in LabView makes it possible to write platform-independent code, but down at the Call Library level you still have to put the right number of bytes on the stack.

  • HT1386 I keep getting a message while downloading purchased music into Ipod that reads " U can download past purchases on this device with just 1 apple ID every 90 days. can b used with another apple ID in 42 days"  what does that mean? cant get music on

    I have purchased an  album and its on my computer in library, plays there and on Ipod as downloaded but cant get it in to music. also havent been able to get my music that I download into hard drive to sync either, afraid to restore [reset] because with have to re-download all of my cd s again. HELP

    It means exactly what it says. For redownloading via iCloud (which is what you are doing).
    Computers and devices can be associated with a different Apple ID once every 90 days. Days remaining indicates the number of days before you can associate that specific computer or device with a different Apple ID.

  • A lost my remote control for apple tv. I want to use my phone as a remote but the applications can' pair with the Apple TV device , how can I pair them without remote?

    A lost my remote control for apple tv. I want to use my phone as a remote but the applications can' pair with the Apple TV device , how can I pair them without remote?

    Setup for remote app: http://support.apple.com/kb/ht1947
    Specifically:
    Set up Apple TV (2nd and 3rd generation)
    On Apple TV, select Settings from the main menu.
    Select General > Remotes > Remote App. If Home Sharing isn't set up on your Apple TV, you should turn it on.
    Apple TV (2nd and 3rd generation) uses Home Sharing to stream content from your iTunes library on your computer to your HDTV.  If  you connect your Apple TV to your iTunes library using  Home  Sharing, you can use Remote to browse and play content from any  iTunes library in the Computers   section of your Apple TV. You can also  use Remote to select  between available speakers to enhance  your  audio and video experience.

  • Can I backup two devices (with different documents) to one iCloud account?  For example: iPad and iPhone, not everything is synced between the two, but I would like to backup each (seperately in the cloud), is this possible?

    Hello Apple Community,
    Can I backup two devices (with different documents) to one iCloud account? 
    For example: iPad Air and iPhone 5, not everything is synced between the two, but I would like to backup each (seperately in the cloud).  Is this possible?
    This way when I change from an old ipad to a new, I can restore with the ipad backup, and when I change from an old iphone to a new, I can restore from the
    iphone backup.
    Thank you in advance!

    Terminology check here. Do you really mean a "CD"?  There's a difference in Cloud behavior between content from a physical CD you ripped (which only has Cloud content if you have iTunes Match) and an "album" you bought from the iTunes Store.
    Read references for Home Sharing.
    iTunes: How to share music and video - http://support.apple.com/kb/HT2688 - about Music Sharing and Home Sharing
    Home Sharing Support page - http://www.apple.com/support/homesharing/
    iOS: Setting up Home Sharing on your device - http://support.apple.com/kb/ht4557 - "With Home Sharing in iOS 4.3 or later, you can stream your entire iTunes library over your home Wi-Fi network from your Mac or PC right to your iPhone, iPad, or iPod touch."
    The above can get pretty complicated.  You are probably best off by syncing both devices to a single library and/or updating the libraries on both computers to have the same content.

  • All of the music on my Ipod Touch is blown out after I synched it with my new MacBook. I didn't get the 'synch' warning-- but now can't find my library of songs. I'm about to panic!

    All of the music on my Ipod Touch is blown out after I synched it with my new MacBook. I didn't get the 'synch' warning-- but now can't find my library of songs. I'm about to panic!

    The iPod backup that iTunes makes does not inlcuded synced media like apps and music. Thes those iTunes are not restored to the iPod unless they are in the iTunes library.
    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Unsync all music and resync
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:       
    iOS: How to back up
    - Restore to factory settings/new iOS device.

Maybe you are looking for

  • Cannot connect to mysql server

    [530211450FCD7FAD57BCBD082C766733] [ERR] Errore JDBC:java.lang.NoClassDefFoundError: java/sql/SQLClientInfoException. Even i already set mysql-connector-java-5.1.3-rc-bin in JDK1.5\lib\ext folder.

  • Creating a mirrored raid set with a hard drive that already has data on it.

    I have a hard drive that I keep my photos on, and want to create a mirrored raid set that includes this drive, with its data, and another drive.  How can I do this without erasing the drive with my photos on them?  I am running 10.7.5 if that matters

  • Planning in EC-PCA with material number

    We have a requirement to enter Revenue plan data in PCA by using Profit Center & Account number & Material number.    However, I do not see 'material' as a characteristic that can be added to the plan layout.    The only available field is 'Represent

  • Weblogic 10.3 not supporting SAAJ1.1

    Hi, I am manipulating the SOAPHeader using SAAJ API in Weblogic 10.3 in the following way:- MessageFactory factory = MessageFactory.newInstance();      SOAPMessage message = factory.createMessage();           SOAPHeader header = message.getSOAPHeader

  • Hot deploy in weblogic 10.0 not working

    Hi, I am trying to do hot deploy in an exploded war deployment. If I deploy the same exploded war in weblogic 9.2, I can update the class files without restarting the sever. However, in weblogic 10.0 system throws "java.lang.ClassCastException: com.x