Command message to CAN bus?

Hey I'm using NI USB-8473 adapter. Am I able to send command message to can bus with USB-8473? I have a battery charger which need to  be configured via CAN bus.
Here is an example message:
m e 0x0240f010 3 0x01 0x80 0xFF sets current at 50 % and voltage at
100 %.
DLC  CMD ID    PARAM 0   PARAM 1    Meaning
3       0x01        I                U                Set current and voltage
I've used a program that is attached and not sure did it work. Is there any example program which fit to this purpose or something?
Thanks!
Attachments:
can_frame.vi ‏26 KB

I don't see anything wrong with the VI you attached, other than the overly bright colors. The sample command looks straightforward: you're sending three bytes with arbitration ID 0x0240f010. Those bytes are the command ID (0x01), the current (0x80, which is half of 0xFF = 50%), and the voltage (0xFF = maximum value for one byte, 100%).
Have you looked through the CAN examples provided with LabVIEW? Look at the Example Finder under the help menu, search for CAN.

Similar Messages

  • Pb of transmitio​n of a message on CAN bus with MAX using a CANdb file (.dbc)

    Hello,
    I tried to transmit a message on the CAN bus with MAX, I used a database.
    I have tried to transmitsome datas with the "NI CAN channel test pannel" (right click on a channel of a message), I put my value i click on "start", then "send" and when I look at the "Bus Monitor" (right click on CAN0) I see messaged that are received but I don't see my message transmit...
    Why my message are not transmitted?
    Bye.

    Duplicat post: http://forums.ni.com/ni/board/message?board.id=170&message.id=247678&jump=true
    LabVIEW Champion . Do more with less code and in less time .

  • Mixed message lengths on CAN Bus using USB-8473 Device

    I am attempting to use the Frame API functions for LabVIEW
    and send both 11-bit and 29-bit headers over a bus that uses both address lengths.  I am currently successfully sending 11-bit
    packets but the 29-bit packets are having their addressing truncated to the 11-bit
    length when put on the bus.   
    As far as I can see I should have to set the standard
    comparator to 0xCFFFFFFFF and then send messages.  I am using a NI USB-8473 CAN Device for doing
    this.  Is there anything else I need to
    change for extended addressing?

    You need to OR your Extended ID with the 0x20000000 before giving it to the NCwriteNet.vi.
    This is the way that the underlying CAN driver and hardware know that is it an extended ID you are trying to send.
    The ID on the CAN bus will NOT have the ORed ID but only your ID. The driver/hardware filter the 0x20000000 from the ID.
    This is the same for reading an extended ID on the CAN bus. 
    Before using the ArbitrationId, you need to AND the ArbitrationId with 0x1FFFFFFF to filter the extended flag out. 

  • 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

  • Can't open iPhoto after installation .Displays message :You can't open your current photo library using this version of iPhoto

    Can't open the program after Installing . Shows message " You can't open your current current photo library using this version of photo.
    Made several attemps in fresh instalaltion without any success.

    So I assume it is version 9.3, not sure?
    Look at the application in the Finde, if you cannot launch it.
    Select your iPhoto application in in the Applications folder and use the command "File > Get Info". What does the Info panel show in the "General" brick?
    If it says 9.4.3, try to launch iPhoto by clicking the iPhoto icon in the Applications folder. Does that work?

  • When I turn on messages, I can't see my messages.  All I can see is a screen with horizontal lines and a text list of addresses.  How can I get the regular message screen back?

    When I turn on Messages, I can't see my messages.  All I can see is a screen with horizontal lines.  How can I get the regular Messages screen back?

    The same is happening for me. Today I decided to reboot my PC because it was acting up a bit, go figure, and then for some reason at the same time the PC was restarting my macbook froze. I had to do a reboot with the restart button but then all that came up was a gray background and in the middle of the screen was a darker gray folder with a white question mark in the middle of it, blinking. I can't imagine why the restart would've affected my macbook. After finding information on how to fix this, I tried all of the steps that were given about using the mac OS X disk to use the first aid utility to fix it. When using the Disk Utility option whenever I select my hardrive and am in the First Aid tab, the only button I can use is the Verify Disk Permissions. The other three buttons, and namely the most important Repair Disk button, is/are not selectable (grayed out). I then tried resetting the PRAM the way they also said with the command + option + P + R and waited for the second startup sound. After that I gave the Disk Utility a second try, but still nothing. And now if I try to just reinstall the OS completely I can't even select a destination volume on the third step (Select Destination). Apparently this means i'm SOL.

  • Read all raw data out of the CAN bus

    Hello,
    our company has purchased a complete CAN bus HW; chasis 9174 and module 9862. I am using NI-DAQmx 9.5.5, NI-XNET 1.5.
    I have connected the module (CAN High, CAN Low, Vsupp 12V - Car battery, GND - Car battery) to the ABS CAN bus segment.
    Using Osciloscope on CAN High and CAN Low wires I can see communication rolling when I start the car ignition.
    I had no success using the Bus Monitor utility.
    I made a very simple read VI hoping to monitor some traffic.
    All VIs run without error, but the Read VI is returning same data (Ignition off or on), I do not know what am I supposed to recieve, what kind of data is the output.
    I think it is wrong, since I get the same data out of it no matter what the CAN bus traffic is.
    The array of frames is filled with two frames with message identifiers that should be transmitted. I added two frames into emopty database and no signals.
    1) From my understanding, the Bus Monitor utility monitors only those messages that I specify in the database, so that no messages/frames = no traffic monitored, is this correct ?
    2) Is there any way, how to read all raw data from the bus ? What VI palettes to use... ?

    Problem solved, the company that was preparing the car made wrong labels (swapped CAN H with CAN L)

  • Can't install safari extensions, I get the error message "Safari can't install this extension, An error occurred while installing the extension "Pin It Button"." Any suggestions?

    Every time I try and install an extension for Safari I get the error message "Safari can’t install this extension, An error occurred while installing the extension “Pin It Button”." I have all the latest updates, working on OS X Yosemite v 10.10.2 / Safari v 8.0.3. Any suggestions?

    Back up all data before proceeding.
    Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    Use the search box in the toolbar of the Keychain Access window to search for an item named "Safari Extensions List". If found, delete it. Quit Keychain Access.
    Quit and relaunch Safari.

  • I accidentally deleted some drivers from my macbook air and now i can not access app store and system preferences as it says the following message (You can't open the application System Preferences because it may be damaged or incomplete)

    i accidentally deleted some drivers from my macbook air and now i can not access app store and system preferences as it says the following message (You can't open the application System Preferences because it may be damaged or incomplete)

    Repair the Hard Drive and Permissions - Lion/Mountain Lion
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported then click on the Repair Permissions button. When the process is completed, then quit DU and return to the main menu. Select Restart from the Apple menu.

  • Is it possible to programmatically start the CAN Bus Monitor?

    Is it possible to programmatically start the CAN Bus Monitor?  I was unable to find the executable, so either I'm not looking in the right place or it's built into NI-CAN or MAX.
    Message Edited by FlamingYawn on 05-24-2007 06:19 PM
    Robert C. Mortensen
    Certified LabVIEW Architect
    Certified LabVIEW Embedded Systems Developer
    Endigit

    Indeed it is.  I found the executable at c:\Program Files\National Instruments\NI-CAN\bin.  It won't run by simply clicking on it, you must call it with the can port (e.g. CAN0) as the first paramenter.
    Robert C. Mortensen
    Certified LabVIEW Architect
    Certified LabVIEW Embedded Systems Developer
    Endigit

  • I am receiving the message Media can't be used because you don't have access privileges or because it has no content or is corrupt.

    I am receiving the message "Media can't be used because you don't have access privileges or because it has no content or is corrupt."  In the recent past, I have been able to drag photos from iPhoto into Pages or Text Edit.  I can drag photos from some photo events, but not from the photos I have recently used in a DVD project.  I did drag photos from Pintrest into my iPhoto to use in the DVD project, but didn't see copyright info attached to any of those.  Could this be the problem?

    As a test launch iPhoto with the Option key held down and create a new, test library.  Import some photos and test to see if the same problem persists. Does it?
    If it doesn't then you need to repair your original library by applying the two fixes below in order as needed:
    Fix #1
    1 - launch iPhoto with the Command+Option keys held down and rebuild the library.
    2 - run Option #4 to rebuild the database.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button and select the library you want to add in the selection window..
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the Library ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments.  However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • HT4863 i am receiving a message that i have reached the maximum number of messages i can send out today but i have not even sent 5 emails out yet today ?

    i am receiving a message that i have reached the maximum number of messages i can send out today but i have not even sent 5 emails out yet today ?

    I'll add that this can happen when snapshotting is used as a backup method. You can set max endpoints to 32 and still see the issue. Please ensure that you're backing up using the supported PowerShell commands: http://technet.microsoft.com/en-us/library/hh202170.aspx
    and not just a snapshot of the VM. If raising max endpoints does not resolve the issue, try backing up with the management shell commands within a recurring scheduled task or try http://gallery.technet.microsoft.com/office/Backup-script-for-Lync-2013-aacbb9b9
    . Then disable the snapshot ting for your front ends, bounce them one at a time, and ensure the data exports you've made are backed up as flat files.
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question please click "Mark As Answer".
    SWC Unified Communications

  • Dual Stepper Motor Controllers on a CAN Bus

    Hello All,
    I hope this is the right forum for this message.  If not, please let me know where I should post it.
    Friends of mine are working on a project involving controlling many dual-stepper motor assemblies, using LabVIEW as the main control code running in the control hub computer.  The stepper assemblies will be located remotely, up to several hundred feet away from the control hub.  I suggested that they consider using a CAN bus for communications, and they seem interested.
    Can any of you recommend drop-in stepper motor controllers for this application that will integrate easily with LabVIEW and NI-CAN?
    Is CAN the right com bus for this application?  If not, what would you suggest?  What else should my friends be considering?
    Many thanks in advance for any suggestions you can provide.
    Sincerely,
    Forbes Black

    Just post a link to the new forum post so that anyone that wants to answer will be directed to the correct one. You can not remove it yourself. Have a great day.
    Alex D
    Applications Engineer
    National Instruments

  • 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.

  • Unable to send message in Service bus queue through Webrole which are connected to Azure VPN

    I have created two Azure VPN and two cloud services(deployed webrole) and one service bus queue
    First Azure VPN and cloud service(deployed webrole) is created in same affinity group.
    Second Azure VPN and cloud service is created in West US
    Service bus queue is also created in West US.
    When I send message in service bus queue from first cloud service (same affinity group) then message sends successfuly
    but when I send message in same service bus queue from second service(West US- Webrole) then unable to send message and not throwing any exception.
    I don't know, whats happening?
    Its very urgent..... client is waiting.
    Please help me... Thanks.
    hema

    Thanks for reply. Got the cause but still looking for solution.
    Actually we have created Azure VPN using Express route and
    all are configured for Private Peering.
    Try to access service bus queue from Web role which is attached to Express route network.
    I am unable to access service bus queue and send message...because cloud services deployed in virtual networks are supported over the private peering path.
    There are 3 types: public, private and default route (forced tunneling). 
    How  can be configured for all 3 which will force all traffic through the tunnel except for Azure public service?
    Do you have any idea on this scenario?
    Thanks.
    hema

Maybe you are looking for