Program to Transmit multiple messages over J1939

Hello Every one,
                       Can any one please post the program to transmit multiple messages over J1939 using USB 8473 device. I was looking under Ni examples but it is showing only to send the frame data but not the scaled data,I want to trasmit the Scaled data information and Iam also using Extended arbitration Id's in my *.dbc file.
Thank you,

Aside from the issues with the USB device and use of the Channel API, as far as I know, the only examples provided for J1939 here are based on the frame API, which precludes you from using the channel API with a CAN database on the same port.  If you migrate to non-USB based CAN hardware (which I would recommend if within your budget), DMC developed a set of J1939 protocol CAN drivers for LabVIEW which are based on the NI-CAN channel API provided by National Instruments (NI). The drivers provide functions at a layer above the base CAN channel API layer, allowing the simultaneous capture of data from both transactional J1939 packets, and broadcast CAN frames using the ease of the Channel API. 

Similar Messages

  • How to transmit multiple messages over CAN

    Hi All,
    How to transmit multiple messages over CAN ? With all three messages i want to send the system time & date also.
    How can i get the timestamp in DBL format (Since the timestamp in the input of ncWriteNetMult.vi is a DBL). If possible kindly share the code in Labview 7.1 also.
    Thanks in advance.
    J

    The NI-CAN driver brings examples for nearly every use case. Driver version 2.4 or later has the Write multiple function to write multiple frames at ones.
    There is an example available for LabVIEW, CVI and VC/VBasic called CAN Transmit multiple.
    Also check the attached VI and the Can manual: http://www.ni.com/pdf/manuals/370289m.pdf
    What do you mean by converting Timestamp to DBL? Timestamp contains all date and time information. You can convert it into string format as shown below and then use the relevant data from it by string operations.
    Hope this solves your problem.
    Shreyas Hebbare
    Shreyas Technologies
    India
    Attachments:
    Transmit Multipe Objects at Different Rates_LV80.vi ‏36 KB

  • D wont backup to icloud. it is enabled but i get  a message "There was a problem completing the backup. Please try again later. I have tried multiple times over the last 24 hrs. My iphone backs up to icloud fine

    Mo ipad 2 won't backup to icloud. I get a message "There was a problem completing the backup. Please try again later. I have tried multiple times over the last 24hrs but no luck. My iphone backs up fine on the same wireless network.

    i have this issue to any solution yet?

  • Ouch!! Mail program re-downloading all messages stored on server

    A couple of days ago, while going through the regular routine of checking email, my Mail program went into a wild beach ball spin and re-downloaded every single email message that was stored on the remote server again into my inbox. I use Mail to bring in messages from a few different accounts. The re-downloading of the messages occurred with sbc account email. Other accounts work as usual and did not behave this way.
    Checked the settings on the sbc account both within the Mail app and at sbc and nothing indicated to make a choice to re-download messages from server when checking for mail. So, thinking this was just a fluke, and nothing to be overly concerned about, I just deleted the multiple messages out of the Mail app and went about business as usual. Yeh, you guessed it, only to find that the next time Mail went to retrieve from the sbc account the same thing happened all over again! YIKES!! (not fun deleting a couple thousand emails from your inbox) :s
    Has anyone run into this happening with their Mail? Is it even possible *gasp* that I have actually encountered some type of spam virus??? I'm sorry I have to stop using Mail for the time being to retrieve and organize my email. Hope someone has some input that can help because using webmail, although it's safe, can be a real drag. BTW -- there has not been unusual activity in the webmail. No multiple messages. This is only happening when I'm retrieving mail using the Mail app locally.
    Is it simply a matter of it being time to archive/delete... or anyone have similar circumstances that they can help shed some light here? Appreciate it y'all!! : )

    I used to find this happening with older version of OSX after I did my usual 6 month clean, wipe, re-install and resume.
    It's possible that the file which keeps a track of message downloaded from the server is corrupt. Goto ~/Library/Mail where "~" is your home folder and then delete these files
    Envelope Index
    LSMMap2
    DefaultCounts
    Next goto each account ".mbox"
    This is in ~/Library/Mail then a folder which contains your email address example "Mac-steve.jobs"
    inside there should be a folder list something similar to this:
    Junk.imapmbox
    Sent Messages.imapmbox
    INBOX.imapmbox
    Drafts.imapmbox
    Deleted Messages.imapmbox
    Inside each of them is a folder, called "Messages" and also some files, delete the files but not the "Messages" folder.
    When you reopen Mail it will be as if you opened it for the first time. See if the emails come in, if they do then it's more likely to be a setting in Mail or even possibly something that's happening at the remote email server.
    In Mail Right or Control Click in the left hand panel and select "Get Info" a box will come up with a drop down selection at the top showing active email accounts, select the one you are having problems with, either a list of folders will come up or a big long list of email messages, depending on how many you have will depend on how long it takes for the list to update. Once it has, select all the emails and Select "Remove From Server" this will delete them all from the server so at least when you re-open Mail they don't all come in again.
    Hope something in here helps
    Mark

  • I can't use firefox after upgrading to 4.0. I get the message I have to restart my computer for upgrading, but ik doesn't start. I get the message over and over

    I can't open firefox after upgrading to 4.0
    I get the message over and over again that i have to restart my computer for upgrading to firefox.
    I tried new installation. But i got problems on all my accounts

    Start your '''Computer''' in safe mode. Then start Firefox. Try '''Safe''' web sites.
    Starting The Computer In Safe Mode;
    If running, turn your computer off.
    Remove any disks and thumb drives that are in your hard drives or ports.
    Now start your computer but also;
    '''Windows; '''Press the <F8> key repeatedly.
    '''Mac: '''Hold down the Shift key.
    '''Linux; '''Using the command line, Linux/Unix computers can be booted
    into various run levels that determine which resources are loaded.
    For example, "runlevel 1" is typically the equivalent to Windows and
    Mac safe modes.
    * Source; '''[http://encyclopedia2.thefreedictionary.com/Linux+Safe+Mode Safe Mode; Free Online Encyclopedia]'''
    When the '''Boot''' menu is displayed, release the key you were pressing.
    You must now choose what mode to use. The most used are;
    * Safe Mode; The computer runs with only a minimum set of programs.
    * Safe Mode '''With '''Networking; Same as above, but with internet access.

  • How can i prevent mail from downloading the same messages over and over again?

    is there any way to prevent Mail from downloading the same messages over and over again? Mail has a minimum of "50 recent messages" to download, but i hate having to delete them every time i check for new mail! why doesn't the program remember if you have already downloaded a message, and suppress any subsequent downloads???

    Same issue since Mavericks.

  • I am trying to reinstall Windows on my macbook pro.  I downloaded the support files and Windows 7 iso file to a USB drive.  However, when I try to run the setup.exe program I get the message "this program cannot be run in DOS mode."

    I am trying to reinstall Windows (would not launch).  I removed the partition and started over.  I downloaded the support files and Windows 7 iso file to a USB drive.  However, when I try to run the setup.exe program I get the message "this program cannot be run in DOS mode."  I was successful before, what am I doing wrong this time?

    Try a restart.
    If that doesn't fix the problem, shut down the computer and then power it back up. Immediately after hearing the startup chime, hold down the shift key and continue to hold it until the gray Apple icon and a progress bar appear. The boot up is significantly slower than normal. This will reset some caches, forces a directory check, and disables all startup and login items, among other things. If the system operates normally, there may be 3rd party applications which are causing a problem. Try deleting/disabling the third party applications after a restart by using the application unistaller. For each disable/delete, you will need to restart if you don't do them all at once.
    Safe Mode
    Safe Mode - About
    General information.
    Isolating issues in Mac OS X
    Troubleshooting Permission Issues
    Step by Step to Fix Your Mac

  • Error SocketChannel receive multiple messages at once?

    Hello,
    I use Java NIO, non blocking for my client-server program.
    Everything works ok, until there are many clients that sending messages at the same time to the server.
    The server can identify all the clients, and begin reading, but the reading of those multiple clients are always the same message.
    For example, client A send "Message A", client B send "Missing Message", client C send "Another Missing Message" at the same time to the server, the server read client A send "Message A", client B send "Message A", client C send "Message A", only happen if the server trying to read all those messages at once, if the server read one by one, it's working perfectly.
    What's wrong with my code?
    This is on the server, reading the message:
    private Selector               packetReader; // the selector to read client message
    public void update(long elapsedTime) throws IOException {
      if (packetReader.selectNow() > 0) {
        // message received
        Iterator packetIterator = packetReader.selectedKeys().iterator();
        while (packetIterator.hasNext()) {
          SelectionKey key = (SelectionKey) packetIterator.next();
          packetIterator.remove();
          // there is client sending message, looping until all clients message
          // fully read
          // construct packet
          TCPClient client = (TCPClient) key.attachment();
          try {
            client.read(); // IN HERE ALL THE CLIENTS READ THE SAME MESSAGES
               // if only one client send message, it's working, if there are multiple selector key, the message screwed
          } catch (IOException ex) {
    //      ex.printStackTrace();
            removeClient(client); // something not right, kick this client
    }On the client, I think this is the culprit :
    private ByteBuffer            readBuffer; // the byte buffer
    private SocketChannel  client; // the client SocketChannel
    protected synchronized void read() throws IOException {
      readBuffer.clear();    // clear previous buffer
      int bytesRead = client.read(readBuffer);  // THIS ONE READ THE SAME MESSAGES, I think this is the culprit
      if (bytesRead < 0) {
        throw new IOException("Reached end of stream");
      } else if (bytesRead == 0) {
        return;
      // write to storage (DataInputStream input field storage)
      storage.write(readBuffer.array(), 0, bytesRead);
      // in here the construction of the buffer to real message
    }How could the next client read not from the beginning of the received message but to its actual message (client.read(readBuffer)), i'm thinking to use SocketChannel.read(ByteBuffer[] dsts, , int offset, int length) but don't know the offset, the length, and what's that for :(
    Anyone networking gurus, please help...
    Thank you very much.

    Hello ejp, thanks for the reply.
    (1) You can't assume that each read delivers an entire message.Yep I know about this, like I'm saying everything is okay when all the clients send the message not in the same time, but when the server tries to read client message at the same time, for example there are 3 clients message arrive at the same time and the server tries to read it, the server construct all the message exactly like the first message arrived.
    This is the actual construction of the message, read the length of the packet first, then construct the message into DataInputStream, and read the message from it:
    // packet stream reader
    private DataInputStream input;
    private NewPipedOutputStream storage;
    private boolean     waitingForLength = true;
    private int length;     
    protected synchronized void read() throws IOException {
      readBuffer.clear(); // clear previous byte buffer
      int bytesRead = client.read(readBuffer); // read how many bytes read
      if (bytesRead < 0) {
        throw new IOException("Reached end of stream");
      } else if (bytesRead == 0) {
        return;
      // the bytes read is used to fill the byte buffer
      storage.write(readBuffer.array(), 0, bytesRead);
      // after read the packet
      // this is the message construction
      // write to byte buffer to input storage
      // (this will write into DataInputStream)
      storage.write(readBuffer.array(), 0, bytesRead);
      // unpack the packet
      while (input.available() > 0) {
        // unpack the byte length first
        if (waitingForLength) { // read the packet length first
          if (input.available() > 2) {
            length = input.readShort();
            waitingForLength = false;
          } else {
            // the length has not fully read
            break; // wait until the next read
        // construct the packet if the length already known
        } else {
          if (input.available() >= length) {
            // store the content to data
            byte[] data = new byte[length];
            input.readFully(data);
            // add to received packet
            addReceivedPacket(data);
         waitingForLength = true; // wait for another packet
          } else {
            // the content has not fully read
         break; // wait until next read
    (2) You're sharing the same ByteBuffer between all your clients
    so you're running some considerable risks if (1) doesn't happen.
    I recommend you run a ByteBuffer per client and have a good look
    at its API and the NIO examples.Yep, I already use one ByteBuffer per client, it's not shared among the clients, this is the class for each client:
    private SocketChannel client; // socket channel per client
    private ByteBuffer readBuffer; // byte buffer per client
    private Selector packetReader; // the selector that is shared among all clients
    private static final int BUFFER_SIZE = 10240; // default huge buffer size for reading
    private void init() throws IOException {
      storage; // the packet storage writer
      input; // the actual packet input
      readBuffer = ByteBuffer.allocate(BUFFER_SIZE); // the byte buffer is one per client
      readBuffer.order(ByteOrder.BIG_ENDIAN);
      client.configureBlocking(false);
      client.socket().setTcpNoDelay(true);
      // register packet reader
      // one packetReader used by all clients
      client.register(packetReader, SelectionKey.OP_READ, this);
    }Cos the ByteBuffer is not shared, I think it's impossible that it mixed up with other clients, what I think is the SocketChannel client.read(ByteBuffer) that fill the byte buffer with the same packet?
    So you're probably getting the data all mixed up - you'll probalby be seeing a new client message followed by whatever was there from the last time, or the time before.If the server not trying to read all the messages at the same time, it works fine, I think that if the client SocketChannel filled up with multiple client messages, the SocketChannel.read(...) only read the first client message.
    Or am I doing something wrong, I could fasten the server read by removing the Thread.sleep(100); but I think that's not the good solution, since in NIO there should be time where the server need to read client multiple messages at once.
    Any other thoughts?
    Thanks again.

  • Use of MS Project Management 2010 to Manage Multiple projects over a given time period

    Is there some information (article/s) I can research about using MS Project Management 2010 for managing multiple projects over a given time period? I'm being asked by a potential client to take a job as a Program Manager to manage five projects all
    at once. Each of the projects has it's own MS Project Management software, project leader, and project team. An overall project plan has to be put together to manage this large project. There are some dependencies with these projects inorder to complete
    on a specific date.
    Thanks

    SSCDML --
    In order to manage this program of five projects using Microsoft Project 2010, I would recommend you do the following:
    Create a shared resource pool file containing the resources in all five projects.
    Connect each of the five projects as sharing files with the shared resource pool file to share the resources.
    Create a master project for the program containing each of the five projects as subprojects.
    In the master project, set cross-project links as needed to show dependencies between projects.
    Hope this helps.
    Dale A. Howard [MVP]

  • Interface program to transmit billing docs as edi 810

    Hi experts,
        I am new to ale/edi/idocs. I need to develop an interface program to transmit billing documents in a text file for sending them as edi 810 docs. Can anyone give me some idea on how to deal with this?
    Thanks a lot...
    Regards,
    Abhinav
    Message was edited by:
            Neo

    thanks karthikeyan...but i need help in the part after message control configuration in the edi outbound process...

  • Multiple message types for an idoc type

    Hi all,
    I created one custom idoc type with six segments. I heard that one idoc type can have any number of message types
    if it is so pls tell me how to assign these two message types for my idoc .
    i want to create multiple message types because i want to send same idoc type to diff legacy systems.
    My requirement is message type one is only for first three segments and message type two is for another three segments .
    The outbound program 1 for mess type 1 should fill fill the data for only first three segments and second outbound program corresponding to mess type 2 should fill the data for last three segments
    how should i design for my requirement. suppose if the idoc has two message types then it has two outbound programs?

    Hi Kunal,
    Below are my thoughts from a design perspective,
    My requirement is message type one is only for first three segments and message type two is for another three segments .
    The outbound program 1 for mess type 1 should fill fill the data for only first three segments and second outbound program corresponding to mess type 2 should fill the data for last three segments
    Before you look upon the no. of message types you need, i guess you need to look at the business requirement. Per your requirement you want to send send two sub sets of data. The first subset in the first 3 segments and other three segments for the second subset of data.
    Is the structure of the first subset of data similar to the second subset If not, better to create two IDOC Types. If they are similar, then create one IDOC Type with three segments and have two message types for each subset of data.
    For Ex: ORDERS05 is the IDOC type for Orders, this IDOC type provides capability to carry data related to any type of orders
    but the action on the data is facilitated by the message type like ORDERS for create, ORDCHG for change, ORDRSP for Order response etc.
    OR
    Are these two subsets of data related to each other, if yes understand the relation? If not related at all then you might be better of creating two separate IDOC Types.
    Like in the above example A purchase order is related to a sales order so you can use the same IDOC type, but in case of a order response and ASN that data sent is different and hence you will need different IDOC types (even though a SO is related to a DN).
    how should i design for my requirement. suppose if the idoc has two message types then it has two outbound programs?
    The above again depends on the how tightly/loosely coupled are the data sets, you can have just one program and have a simple case statement on the message types or have two different programs.
    You will also have to consider points like, if any of the subsets is more prone to more change in terms of the structure and associated business logic. If yes, then you might want to keep the programs separate to reduce work on regression testing etc.
    I am sure you will receive more inputs from the experts on the forum and the list of points to look for will get longer , so understand the requirement, dependencies and if you have any specific questions you could post it on the forum.
    Regards,
    Chen

  • Idocs multiple message types

    Hi all,
    I created one custom idoc type with six segments. I heard that one idoc type can have any number of message types
    if it is so pls tell me how to assign these two message types for my idoc .
    i want to create multiple message types because i want to send same idoc type to diff legacy systems.
    My requirement is message type one is only for first three segments  and message type two is for another three segments .
    The outbound program 1 for mess type 1 should fill fill the data for only first three segments and second outbound program corresponding to mess type 2 should fill the data for last three segments
    how should i design for my requirement. suppose if the idoc has two message types then it has two outbound programs?
    Edited by: kunal kakkar on May 16, 2011 10:21 AM
    Moderator message: duplicate post locked.
    Edited by: Thomas Zloch on May 16, 2011 12:39 PM

    COND_A01 is the IDoc to distribute the condition master data. Sales order (ORDERS05) is transactional data. It is not feasible to generate a master data IDoc from a sales document. Even if it was feasible, what would be the purpose? The master data hasn't changed, why would anyone want to send it again with every order?

  • How to handle the multiple message on the screen

    I am new to j2me. I am trying to write a simple program for instant messaging. I want to write a program that to handle incoming messages. Now I am able to display one message at a time but I dont know how to handle multiple messages. Do anyone can give an example?
    Is that anyway that pop up an indication for new messages in j2me?
    Need yours expertise to help me. Thanks.

    Use a custom canvas to display messages. Then you can do whatever you want with it!

  • Programs open up scattered all over the screen...can this be changed?

    I am new to a MAC as I recently go a 27" iMac. I am loving it, but finding some of the functions sort of odd. I have searched and searched for an answer, but have gotten noplace. I thought I would sign up here it looks like a great resource. I was also hoping someone could answer this for me:
    Do all mac programs open up scattered all over the screen? I was always used to a program opening and it was clear where the entire window was. On my mac, if I open, say Photoshop, the tools panel is along one side, then there is no canvas, but the layers panel, or others I have open will be somewhere on the right side. When multiple programs are open, it is really hard to tell which program I am currently in as it seems so messy. All the programs seem to open this way. Is this a feature that can be turned off, or is this simply the way it is?
    I am not sure if I explained this very well, but somehow I would like to be able to clearly see which program I am in, rather than have bits and pieces of the program randomly placed on the screen with no definite boundaries to tell me where the program ends. Maybe it has something to do with having such a large screen?
    Any help you could offer would be greatly appreciated! Thank you in advance.

    Upper, left-hand corner of your menu bar, next to the Apple icon, lists the current, application that has focus.
    Since you're new, see:
    Switching from Windows to Mac OS X,
    Basic Tutorials on using a Mac,
    Mac 101: Mac Essentials,
    Mac OS X keyboard shortcuts,
    Anatomy of a Mac,
    MacTips, and
    Switching to the Mac: The Missing Manual, Snow Leopard Edition.
    Additionally, *Texas Mac Man* recommends:
    Quick Assist,
    Welcome to the Switch To A Mac Guides,
    Take Control E-books, and
    A guide for switching to a Mac.

  • Why should I use Publish instead of Routing for SOAP messages over JMS?

    Hi,
    I currently read the book "The Definitive Guide to SOA - Oracle Service Bus" and found the following sentence in the chapter "Wrapping an Asynchronous Web Service with a Proxy Service" on page 131, which confuses me:
    When you send a SOAP message over a JMS queue, you need to use the Publish action, not the Routing action. <<Are there general restrictions, when to use Publish and when to use the Routing action in asynchronous communication? Is this special for SOAP messages over JMS?
    Thanks for your advices,
    Katja

    Here are a few reasons why. Enjoy!!
    A
    What Can Amazon Web Services Be Used For?
    Although Amazon Web Services is a cool technology, it also provides the very useful function of enabling business partners to interact with Web site through standard protocols. This interaction can lead to a deeper, more valuable relationship for parties involved. Here are a few of the ways that partners are benefiting from Web Services:
    Associates: Associates program enables Web sites to link to Amazon.com and earn referral fees for sales that they drive through their links. Many Associates are now using Web Services to build more effective links to our store, thus enhancing their sites and earning more money.
    Sellers and Vendors: Amazon.com has thousands of third-party sellers who offer their products on our Web site. Using Web Services, these sellers can more easily manage large quantities of inventory on our platform, and download the latest product information to make sure that their products are competitively priced.
    Developers: Among the thousands of developers who have signed up to our Web Services program, many are now creating solutions to help other people work with Amazon. These solutions are powered using our Web Services APIs.
    www.amazon.com/gp/aws/landing.html

Maybe you are looking for

  • TRIANGLE PROBLEM

    Hi everyone - I am developing various proofs of the pythagora's theorem and the following code draws a triangle on screen and the proof follows - but i need to know how to drag the triangle such tht 1 angle is always set to 90 degrees. i.e. i need to

  • Cannot open PDF attachments in email, get administrator logon using Acrobat X?

    Cannot open PDF attachments in email, get administrator logon using Acrobat X?

  • Error: Device\Ide\iaStor0, did not respond within the timeout period.

    Hello, In last few months, I began getting the error: The device, \Device\Ide\iaStor0, did not respond within the timeout period. My system hangs and slows to a crawl.  Error seems to be well-known, and solution is to install the latest version of In

  • New computer won't recognize external drive[s]

    Just got an HP Pavilion 500t Desktop with Windows 7.   Although the USB ports (front and back) WILL recognize an 8 Gig thumb drive, we cannot get it to recognize other external drives.   We've tried our old Maxtor 3200 drive (which has all the files

  • 404 Errors When Accessing My Themes

    Kuler is returning a 404 error when I try to access my themes on any browser. This was reported in 2013 and in Oct. 2013 Adobe said they were aware and working to fix it. What's going on with fix? Thank you.