Send set of CAN messages at different period

Hi,
I need to send periodic CAN messages on the CAN bus each with different period using PCMCIA NI-CAN card.
Periodic CAN messages can be sent using ncConfigCANObj.vi..but by using this i can able to set for only one id...
I need to set different period for different id..Is there any method to do this??
Regards
Meenatchi

Howdy Meenatchi,
I'd like to first reference you to the CAN Transmit - periodic.vi example VI located in the NI Example Finder under Hardware Input and Output»CAN»Frame API»Basic. It demonstrates how to transmit periodic frames via CAN objects and can act as an excellent foundation to develop whatever application you have in mind.
Now to your question regarding how to configure more than one Arbitration ID using the ncConfigCANObj.vi...If I understand correctly in that you want to use ncConfigCANObj to configure more than one arbitration ID, then you could create an array of ObjName strings (i.e. Arbitration ID's) then auto-index that array through a For loop wrapped around ncConfigCANObj.
I've attached an image forum_various-CAN-periods.png illustrating this idea.
Message Edited by pBerg on 03-26-2008 10:28 AM
Warm regards,
pBerg
Attachments:
forum_various-CAN-periods.png ‏13 KB

Similar Messages

  • I am using systec usbmodule1 to send and receive CAN messages , is any one have tried this in labview?, if yes can you send me the code thanks

    i am using systec usbmodule1 to send and receive CAN messages , is any one have tried this in labview?, if yes can you send me the code
    thanks
    Solved!
    Go to Solution.

    Hey,
     All of our CAN drivers have been written for National Instruments' CAN hardware (referenced here : http://digital.ni.com/public.nsf/allkb/E2C6ED025C7​98C5586256F4E00520448 ). Thus, you will have to code all your communication manually, unless Systec provides a LabVIEW driver. There might be various dll files that Systec provides for communication, which you will be able to access through LabVIEW. Take a look at the Call Library Function Node, which can be found from the Functions Palette under Connectivity -> Libraries & Executables. Here you can call a dll file, and also the individual functions within that dll.
    I would suggest posting your question either to the LabVIEW forum, as previously mentioned, or to the CAN forum found here : http://forums.ni.com/ni/board?board.id=30
    Justin E
    National Instruments R&D

  • Support of automatica​lly sending of cyclic CAN messages added in wrapper for LabView 8.5 and 8.6

    hi,
    I am using usb can module systec for sending/receiving  can messages to device using third party dll.
    without using dll can i read/write can messages using labview?
    thanks

    Hello,
    It sounds like you are using a third party
    USB-CAN device. In order to use this device in LabVIEW, you must make
    those dll calls unless there are LabVIEW drivers or libraries available.
    Even the NI-CAN drivers used for National Instrument CAN devices are just wrappers around dll calls.
     Hope this helps.
    Peter Flores
    Applications Engineer

  • 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

  • CAN periodic transmit message with different modes using Frame API's

    I want to transmit a CAN message periodically using Frame API's. I am able to send messages which dont have modes inside the message. For some messages having multiplexer in ".ncd " files and inside that multiplexer having different modes. Now in order to send all the modes of that message periodically by configuring them once by using Frame API's i did not  find a way. I am able to send messages but the last updated mode is only sent periodically. Is there any way that CAN message having different modes can be sent periodically, updating all modes periodically automatically using Frame API's.

    Hello Kpraveen,
    You could set the period for N*Period, N being the number of modes.  You just need to make sure your application changes the modes fast enough to update each periodic frame.
    For example, say you have 2 modes and the frame's period should be 10ms.  That means that you would like that frame to go out twice every 10ms, updating mode 1 and then mode 2.  So, that means that the frames period can be 5ms. 
    1.  It will start by updating mode1
    2.  5ms later, it will update mode2
    3.  5ms later it will update mode1 again
    mode 1 really has a  period of 10ms...
    You just have to make sure that you can update the frame fast enough, or switch between modes fast enough, or you will send the same mode twice.
    Let me know if this helps, or if I an not understanding this properly.  Have a great day.
    O. Proulx
    National Instruments
    www.ni.com/support

  • How to get CAN message periodicity programmatically?

    When I have messages with different periodicity in CAN data base file(.dbc), how do I programmatically know what is the periodicity of a given message? In the X-Net data base editor I can see the periodicity, but is there any way to get it in labview code?
    Also, some of the messages are to-be-transmitted and some are to-be-received. How can I separate these channels/messages  programmatically?
    Solved!
    Go to Solution.

    First the Automotive subforum maybe of more help if you don't find the answers you need here.
    Next I'd like to say I despise that conversion library and wish NI would take it off of this site.  It hasn't been updated in 5 years and it won't be updated again.  XNet has the same frame signal conversion functionality, and you don't need a XNet hardware to use it.  It also has bugs that I've reported to NI and their suggestion was to just use XNet so that is my suggestion to you.
    Now back to the original question.  No the older cheap NI-CAN devices do not have a hardware retransmit functionality.  You must call the write function every time you want to perform a write.  This usually means a while loop which just runs, and resends out all the frames you want ever N milliseconds.  You can do this easily with the elapsed timer VI or make your own timer.
    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.

  • CAN message availabili​ty

    I am currently writing an application (LV8.2) for battery pack testing. The application checks communication with a BMI, and communication to the battery is over CAN. I use two CAN cards on the test PC and the Channel API subVIs to read and write from and to the CAN-bus. Reading and writing happens at a specific rate and it works just fine.
    The problem I have, is that I can’t determine when a message is not present anymore.
    For example the BMI sends out a CAN message periodically that I read from the CAN bus. Suddenly the BMI crashes and stops to send out the message, but I wont recognize. Has one of you an idea for a method to determine the presence of a message?
    I know that’s a tough one, but thanks for your help…
    SDFlow

    Hi SDFlow,
    Three options come to mind:
    When using the Channel API with a sampled (periodic) read, you can use error out terminal to determine whether a new message has been received since the previous call to CAN Read.vi (or CAN Start.vi). If no message has been received, the warning code 3FF62009 hex is returned in error out. If a new message has been received, the success code 0 is returned in error out.
    You could use the Channel API with a timestamped read (mode Single-Chan Multi-Samp 1D Time & Dbl or Multi-Chan Multi-Samp 2D Time & Dbl) and have your code inspect the timestamps.
    You could use the Frame API and configure a CAN Object for receiving a frame (Communication Type: Receive Unsolicited) and specify the desired timeout as the 'Period' value of the configuration cluster. In the Receive Unsolicited mode, the 'Period' will be treated as a timeout and the ncReadObj.vi will return a timeout error if no frame of that particular ID was received in the given time.
    Note: The CAN Object is 'per-CAN ID'. Thus, if you are interested in monitoring multiple different frames with different IDs, you need to configure a CAN Object for each CAN ID.
    -B2k

  • Handling More than 100 CAN messages

    Hi,
    im simulating a CAN Network with more than 10 ECU's.My application demands nearly 143 CAN Messages to be handled at run time.Which would be the best API's to do this application?Can i used canalyzer drivers to do this while using NI Hardware?

    The best way to simulate this many ECUs would be using LabVIEW RT and our PXI FPGA concept to create reconfigurable software simulation systems. The FPGA would connect to CAN modules to send and receive CAN message with the highest performance possible. The RealTime OS would guaranty lowest jitter and determinism.
    This hardware is not compatible with Vector CANalyzer software. For more informations please talk to your local sales representative or visit our website ni.com/can
    DirkW

  • In my Iphone 5 and I Pad  inbox i get dozens of mysterious messages that I can't delete. They all say  (No Sender) (No Subject) This message has no content  Date: different but all of them way before the internet (late 60's early 70's and some times 2000)

    In my Iphone 5 and I Pad  inbox i get dozens of mysterious messages that I can't delete. They all say
    (No Sender)
    (No Subject)
    This message has no content
    Date: different but all of them way before the internet (late 60's early 70's and some times 2000)
    can't open or delete any of them. These messages are not on my PC
    I have three different accounts but it seems like they are coming from my gmail account
    Thanks for the help
    JC Garza

    Have you tried restarting or resetting your iPad?
    Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after the iPad shuts down, then press the On/Off button until the Apple logo appears.
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds). Ignore the "Slide to power off"

  • I have my Dad's apple ID etc, but he has an iphone and i have an Ipod Touch then on IMessage i can read all the messages he recieves and sends and he can read all the messages i send and recieve how do i stop this?

    Hi
    I have my Dad's apple ID etc, but he has an iphone and i have an Ipod Touch then on IMessage i can read all the messages he recieves and sends and he can read all the messages i send and recieve how do i stop this? But i still want to send messages to him.
    Thank You

    . You do not need a seperate Apple ID. One one device you just need to go to Settings>Messages and add another/different Messaging email address and delete the common Apple ID address. Also see:
    MacMost Now 653: Setting Up Multiple iOS Devices For Messages and FaceTime

  • How do I update CAN messages being transmitted as a periodic waveform?

    I am using NI-CAN 1.5 to transmit CAN messages with a CAN Object using the "Transmit Periodic Waveform" communication type. The CAN card I am using is a dual port PXI-8461.
    I wish to update the waveform message(s) but am running into problems. I configure the CAN Object with a write buffer size of 2 and then start transmitting 2 messages with one message going out every 500ms. These 2 messages are correctly getting placed on the bus. To update the messages, I successfully stop the CAN Object and attempt to write new data into the write buffer. This is where I am running into problems. The ncWrite VI is failing with an error of 0xBFF62008 (Write Queue Overflow).
    Upon further
    inspection, I noticed that when I stopped the Object and there was only 1 of 2 messages pending, I could successfully write one time; however, the second write would fail with the same error. If 2 messages were pending, neither write would be successful. I need to be able to update both messages. I thought maybe I could use the ncWait VI to wait for the write queue to empty and then write in 2 new messages; however, this will not work since the ncWait VI never returns before a timeout occurs in "Transmit Periodic Waveform" communication type. Either 2 or 1 messages are always pending so it never sees that the card is ready for new data.
    I looked in the Programmer's Reference Manual, and this is the procedure recommended. (A bit different, but I tried it and came up with the same results.) The Reference Manual claims ncWrite replaces the oldest data in the queue on page 3-30, but on page 2-40 it says ncWrite returns an error when called on a full queue.
    Does anyone see anyt
    hing that I'm doing wrong or have an alternate way to accomplish what I want? Thanks for your help.

    The "Transmit Periodic Waveform" section (pg 3-30) of the NI-CAN Programmer's Reference states, "Use this configuration to transmit a fixed sequence of CAN data frames over and over, one CAN data frame every period."
    The words "fixed sequence" denote that it was not intended to change as the program runs. I appolgize if this was not clear. Any suggestions for improvement to the documentation can be emailed to [email protected]
    If those two data sets do not change at run-time, they could be merged together. For example, make the buffer the size of both data sets added together. Start by Writing the first element of set one, then the first element of set two, then the second element of set one, then the second element of set two, etc.
    Randy Solomonson
    Application Engineer
    National Instruments

  • [svn:bz-trunk] 13716: since include-read-only is a server global setting, we can't have two channels with different value.

    Revision: 13716
    Revision: 13716
    Author:   [email protected]
    Date:     2010-01-22 09:26:12 -0800 (Fri, 22 Jan 2010)
    Log Message:
    since include-read-only is a server global setting, we can't have two channels with different value.  remove the test for the include-read-only false.  update the service-config.xml as well.
    Modified Paths:
        blazeds/trunk/qa/apps/qa-regress/WEB-INF/flex/services-config.mods.xml
        blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/remotingService/dataTypes/ReadOn lyTest.mxml

    You can give this a try on your Ultimate machine.  While these are said to be for Vista, I used it on my Win 7 machine just fine and it fixed the problems I was having.  Hope it works for you.
    The problem is that Vista, by default, will only use NTLMv2 for authentication, which is not supported by Mac OS X's Windows Sharing service.
    The other problem is the Minimum Session Security for NTVLM SSP based Clients.
    To get around this:
    1.     In Vista, open the Control Panel
    2.     Switch to "Classic" view
    3.     Double-click Administration Tools
    4.     Double-click Local Security Policy
    5.     Or Secpol.msc
    6.     Expand "Local Policies" and select "Security Options"
    7.     Alternate : Type secpol.msc to get editor up then
    8.     Locate "Network Security: LAN Manager Authentication Level" in the list and double-click it.
    9.     Change the setting from "Send NTMLv2 response only" to "Send LM & NTLM - use NTLMv2 session if negotiated"
    10.     Network Security: Minimum session security for NTLM SSP Based (including secure RPC) Clients
    11.     Change the setting from "require 128 bit" to unchecked (No Minimum)
    12.     Click OK
    the real difference between vista and windows 7 procedure is 10 and 11

  • Wrong period of CAN message when using veristand

        I use Veristand. The period of CAN message is set to 10ms and the other is 100ms. After loading the project into PXI platform, the real transmission period is different. There are no rules about the period. The baud rate of CAN is 250Kb/s. And the real period of CAN message is monitored by Kavasar.
        Is there any body, who has faced with this problem?

    Real time processor is "PXIe-8135". CAN board is "PXI-8513/2". High speed can and 250Kb/s is used. Karvasar works well and is validated by other CAN instrument.

  • HT5622 My husband and I both have iPhones. We are currently using the same Apple ID. I have my own ID but when I send him a text message it comes back to me or goes to my computer. How do we separate the 2 ID's so we can send messages?

    My husband and I both have iPhones. We are currently using the same Apple ID. I have my own ID but when I send him a text message it comes back to me or goes to my computer. How do we separate the 2 ID's so we can send messages?

    You need to reconfigure your phone for use with your Apple ID. I suggest you restore yours as new then reconfigure it with your information and Apple ID. Be sure to disable Find My Phone, if it's enabled, before proceeding.
    Locked Out, Forgot Lock or Restrictions Passcode, or Need to Restore Your Device: Several Alternative Solutions
    A
    1. iOS- Forgotten passcode or device disabled after entering wrong passcode
    2. iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
    3. Restoring iPod touch after forgotten passcode
    4. What to Do If You've Forgotten Your iPhone's Passcode
    5. iOS- Understanding passcodes
    6. iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
    7. iOS - Unable to update or restore
    Forgotten Restrictions Passcode Help
                iPad,iPod,iPod Touch Recovery Mode
    You will need to restore your device as New to remove a Restrictions passcode. Go through the normal process to restore your device, but when you see the options to restore as New or from a backup, be sure to choose New.
    You can restore from a backup if you have one from BEFORE you set the restrictions passcode.
    Also, see iTunes- Restoring iOS software.

  • After updating the IO7, I can no longer send or recieve text messages. What do I do?

    Since I downloaded the IOS7, I havent been able to send or recieve text messages/iMessages or access my SnapChat account. I have called Apple 3 different times and they said they do not know how to help. Any solutions?

        DrEvey,
    Let's get your MMS messages sending and receiving again!  Are you receiving an error message? Has this been occuring everywhere? Is your cellular data turned on? Please share some details so we can further assist.
    TrevorC_VZW
    Follow us on Twitter @VZWSupport

Maybe you are looking for