CAN message handling

Hi all

I'm new to LabView and I find it extremely difficult, mainly because of data types.

First of all I need my project to record all of the CAN messages.

Second, I need to inspect the ArbitationID and act accordingly on this (some with the result one CAN write)

So I need to deposit the data accordingly and display data on the GUI

Usign the single read I can convert CAN Inc. timestamp in a message string and save it but if I try and convert it to a cluster for manipulatuion all I get is the 8 bytes of data

If I use the multi CAN read I can't break the 5 elements in a cluster within a Bay down to save the message

Any thoughts?

I saw many more code, but you make several mistakes that I think make things more difficult.

When you playback your output is an array of frames.  Each image is a group of 5 things, timestamp, ArbID, IsRemote length data and data.  The table of the service Cluster that you are using is not one you should use.  Who's going to take a picture and turn it into clusters, but you must set the size and applies by default to 9, then what happens if you get 10 frames in a reading?  The last of them is lost forever.  All the reading that read more then 9 frames will lose one after 9.  In addition, what happens if you have no frames?  Well it converts it to 9 frames that are empty, but you go and connect those who anyway.

What you really need to do, is to process each image one at a time, by looking at the output and then decide what to do.  This can easily be done in a loop For.  A loop For will be pull each image one at a time and let you do things with it and handle it in a way that makes sense or conditionally to save different data in different files.

It is a modified version that will process each image and according to the ArbID wrote to one of the 3 files attached.  If the ArbID is between 0 and 0 x 12, it goes to a single file, 0 x 13 by 0x200 he goes to the other, and all other executives go drop a 3rd.  I have also updated the format in the file a bit cleaner and I think that it will contain the same information in a tab delimeted file.  Of course, this is an example, I have no idea of what you really need your program to do.

Tags: NI Software

Similar Questions

  • Question by QNXStageWebView: "browser can not handle web page.

    Has anyone seen this behavior before / can anyone suggest a remedy.

    An HTML page I show in a QNXStageWebView component (with all the properties to values by default, for example, allow JavaScript, allow plugins, etc.) has a link to this URL:

    http://appworld.BlackBerry.com/WebStore/content/41285/

    Click on the link leads to failure. IIRC, I saw both of these messages in the exception dialog boxes:

    "The browser can not handle web page.

    and

    (something like) "Unknown protocol".

    This behavior occurs in both debug and release build (OS 2.0.1.358) and works very well in a regular web browser.

    Hello

    I just revisited this question yesterda. take a look at QNXStageWebView HTML API documentation, I noticed the unknownProtocol event and implementation of the following (check my particular URL of interest not shown):

        private function onUnknownProtocol(event:UnknownProtocolEvent):void
        {
            _webView.stop();
            event.preventDefault();
            flash.net.navigateToURL(new URLRequest(event.url));
        }
    

    That does the trick.

  • The best way to separate the user interface in the model LV 2012 queued Message Handler?

    If you create a new "queued Message Handler" new model 2012 LV, you will see a blue box in the case of "Update view" that says the following:

    Code Recommended - If you wish to decouple the Message Handling Loop from your user interface, consider creating User Events (like the "Stop" event in this VI) to message the Event Handling Loop whenever the user interface needs updating.
    

    I would like to give a suggestion, but I am struggling to find the best way to do this and still keep code modular.  The template creates a user - Stop.lvlib "event with a create/Destroy/fire Subvi.  I would like to create a library of "User event - Update UI.lvlib" similar with similar Create/Destroy/fire Subvi keep this new modular and separate user event.  The problem, I am struck, is that there may be only two hydrants in case Structure dynamic event so, how I modularlize creating user events in separate SubVIs and always maintain this dynamic event terminals?

    As a follow-up on the issue, it would be preferable to have a library of user by indicator events that must be updated or that a single UI update of the user and then event pass a cluster as the message that contains the name of the control for the update (to use with a structure of matter), then the data to go with it?

    Thank you!

    Instead of having the events to record in the 'create' methods, you could be part outside your 'create' SubVIs and then simply bundle them. Then, you create your individual event of the user management. See excerpt where I created a vi 'Create user event - Update' in front of the stop.

  • A6400.gr: Can my handle old Icehouse a new processor like the core 2 duo E7500?

    Can my handle old Icehouse a new processor like the core 2 duo E7500? Cuz im going to buy a used one on Ebay and it didn't have a cooler! The core 2 duo has more Tcase allowed time up to 74 ° C to 73 ° C to my current pentium dual core E2160 and both have the same TDP of 65 w. do you think I should change the radiator?

    Hello @Mario28,

    I read your post about how you are curious about a heatsink and fan for a new CPU update on your computer, and I'd be happy to help you in this case!

    Because both processors are so close in the temperature and the heat output, the heatsink even you were using previously should still actually cool the new processor, so it is mounted correctly.

    I hope this helps!

    Best regards

  • I can't uninstall my 13 items on an old computer, because I have no more computer. How can I handle this, so it is possible to install on a new computer? I have already installed on a computer and on the old I did more.

    I can't uninstall my 13 items on an old computer, because I have no more computer. How can I handle this, so it is possible to install on a new computer? I have already installed on a computer and on the old I did more.

    Hi Roland,

    Since you no longer have your old computer you can disable or uninstall. Then please contact the support for the activation of 13 items on your new computer:

    Contact the customer service

    Concerning

    Megha Rawat

  • IPMI message handler: BMC returned an incorrect answer

    Hello

    I need help to solve this problem, which has occurred on one of the five hosts a few months ago:

    On the Console, after pressing Alt - F1 for a connection, the following messages are displayed:

    IPMI message handler: 5 25, BMC returned incorrect, cmd netfn expected answer had 5 35 netfn cmd

    IPMI message handler: BMC returned incorrect answer, cmd netfn expected 5 27, got netfn 5 cmd 35

    The first message may appear up to 7 - 10 times, the second only once. Hit entry gives me the login prompt.

    After searching the Web, oriented BMC firmware problems, I've updated the U2 to U4 driver with all the latest patches using VUM & answers updated BIOS and firmware with new versions of HP.

    We have 5 host, 4 HP ProLiant DL580 G4 and an HP ProLiant DL580 G5 server. I only arises on the G5. Any host connected to the Clarion SAN.

    System:

    HP ProLiant DL580 G5, System ROM d61 23/09/2008, iLO 2 Firmware Version 1.77 23/04/2009, 4 x Intel Xeon 7220 2, 93 Ghz, 64 GB RAM, 2 x LPe1150 4 Gb FC, 1 x HP Smart Array P400, 2xOnboard Broadcom NetXtreme II BCM5708 1000Base-T, 1xQuad 82571EB Ethernet Gigabit controller

    ESX 3.5.0 (U4) build-184236 (vCenter poster build 176894)

    vCenter 2.5.0 (U3) build-119598

    Thanks in advance!

    Best regards, Per Kristian

    Hi, I just had the exact message, on both of my hosts. It no longer responds and DRS was not to migrate the host to another...! After a reboot, everything is ok, new HP DL 585 G2s, is not sure the firmware revision and hp does not management agents.

    ESX 3.5.0 (U4) build-184236 (vCenter poster build 176894)

    I think this may have something to do with the ILO?

    Clues?

  • I get the searchfilterhost.exe application error message. How can I handle this?

    the message said: the statement in memory of reference '0x0577622a' to '0 x 000000014 '.  the memory could not be "read".  Click on OK to terminate the program.

    When I click OK or try to X in the message, nothing happens

    Hello

    · When you receive an error message?

    · Were there any changes made on the computer before the show?

    · Which edition of Windows search is installed on the computer?

    Try these steps and see if it helps: start the service Terminal Server Services, follow these steps:

    a. Click Start and run, type services.msc, and then click OK.

    b. right click on Terminal Server Services and then click Start.

  • Why Skydrive can't handle drag them and drop folders?

    I can't believe this problem with Skydrive has persisted this long.  I just made an account about a month ago (December 2011), but I'm reading messages 2 years throughout the Internet regarding this problem.

    I have many files.  Files containing things.  Folders in the folders.

    Records represent content organization.  Reminder.  Browse.  That almost as important as the content itself.

    The suggestion?  SkyDrive, hand - create the bazillion of files I have on my hard drive and then hand - fill each SkyDrive folder with the items I want to back up.

    WHY offer this utility to the public when such a need to basis has not been addressed?

    I don't think that there will never be such a system.  From an architectural point of view, the computers do not know the difference between files and folders.  Technically, a folder is a file.  And as by clicking on a file, film or photo has different actions, the files are just files and their action is to show the other files.

    When you drag-and - drop a file, the web browser sees it as just another file, he can't see what files are 'in' this folder, because technically, no files are actually in it.
    That's why each backup, synchronization, or service requires a file-sharing program to be installed on the computer, a program that is able to look inside files and to determine how to handle the content.  The web just can't do this without a request for assistance.
    As I said, the Windows Live Sync program is indeed such help, and it can synchronize your folders (and all inside of them) on your SkyDrive for you.  Just to get the program to http://get.live.com and tell him what file (s) to download.
  • He can't handle the Pinch Zoom events?

    Hi all

    I use the following example to the event of Pinch Zoom malleable.

    protected boolean touchEvent(TouchEvent message)
    {
       switch(message.getEvent())
       {
          case TouchEvent.GESTURE:
             TouchGesture gesture = message.getGesture();
             switch(gesture.getEvent())
             {
               case TouchGesture.PINCH_END:
                 Dialog.alert("Focal point: " + message.getX(1)
                 +            ", " + message.getY(1)
                 +            "\nFinal zoom value: " + gesture.getPinchMagnitude());
                 return true;
             }
       }
       return false;
    }
    

    But this isn't woked for me. I put the breakpoint and there he never struck. My application cannot handle this event.

    Can someone tell me why?

    Thank you!
    I just found the reason that I have not activated the pinch gestures.

  • Call the message Handler wishes

    I have a client who wishes to change the prompt from the system when you have a call handler a message. It is a system of 4.0 (5) of the unit.

    The message is one that says please leave a message after the tone. When you are finished Please hang up or hold for more options.

    The call handler is set to hang up after the message and they would like to remove the hold it please for more party options.

    Is there a replacement for that command prompt? Or can I modify the wav for the guest?

    I know that an upgrade replaces the command prompt, but it is not that big of a deal.

    Thank you

    Check out this thread:

    http://forums.Cisco.com/eForum/servlet/NetProf?page=NetProf&type=bookmarks&CommCmd=MB?cmd=pass_through&location=outline@^[email protected]/0#selected_message

    He speaks on the guests are used to this - this isn't TAC supported, of course, but you can replace this guest with everything you want. and Yes, that get replaced on an upgrade.

  • Any FRM can be handled by an exception?

    This could be an easy qn for everyone.
    Peut FRM message as follows:
    FRM-40202: the field must be entered
    be handled with an exception (as how you deal with error ORA)?

    Hello

    If the FRM-40202 message_code found?
    I didn't go in all the data in the form...
    I would like this message it will fire.

    These types of warnings you must Trigger ERROR hanle and by means of messages, suppose you did any changes in your form, and then you press you on then save oracle shows message 1 record or saved appliaed etc... these types of messages, you can manage in the MESSAGE triggering.

    For your problem, try this code in triggering the ERROR

    DECLARE
      lv_errcod NUMBER := ERROR_CODE;
      a number;
    BEGIN
      IF lv_errcod = 40202 THEN
        a := show_alert('alert20');
      END IF;
    END;
    

    -Clément

  • I updated my Firefox to a level, 29, my sys Op can't handle; XP?

    I have Windows XP SP 3. Firefox starts slow, slow short and often crashes. I see script error messages, referring to Flash Player or Shockwave player, throughout each session.
    I'm supposed to be connected via high speed internet, 100 Mbit/s, powered by Bright House cable.
    I added Adblock Plus to my Firefox and my IE 8, the latest version that I can't, but rarely use.
    I use a "my msn" homepage.
    I wonder if I would get better performance with an older version of Firefox.

    According to system requirements, it should work, given that the minimum is XP SP2.

    You can try to reduce the number of connections in Network.http.Max - connections. The default value is now 256, but I found that 128 works better.

  • I deleted Firefox 8 7 can I recharge my system can not handle 8.

    I kept getting all these flashes screen that uses firefox to the amount of memory. It is so deteriorated that I should keep close firefox. I really liked my old version and never had any problems with it. Now, I would like to try 7 are still allow use of it. I am a person who has a hard time change so I really need help. I'll have more memory and such installed but I can't understand this. It's probably something from windows. I hate using windows! Also, I turned on something that took my reload button and then I was really a mess. I hope someone can help me!

    While AVG anti-virus app MUST have a parameter or option to limit these "Firefox uses too much memory... "or similar messages...

    Firefox 8.0.1 has problems of memory consumption, sorry to say.

    In most cases, deep-inspection with memory and software monitoring processes shows the root of the problem IS the application of basic FF, not add-ins or plug-ins.

  • CAN message available transmit

    Hi all

    I'm working on transmitting a message BOX but cannot get confirmation on changes. I build load useful, identifier and timestamp on CAN frame but can't seem to get the confirmation ID when I run the device.

    I use two codes; one for transmission and another for data/record/race plot with different database files [0x200 transmit and 0 x 201 for the confirmation of the change with can_database_ch0 file while my frames of output are 0 x 513, 1536, 1793, and 1794 in regards to an another .dbc file]. Is this a problem?

    I want to check if my method of construction of frames is correct and if the method is valid?

    If this is not the case, how to merge the functions to write, read and save at the same time?

    Any advice would be helpful.

    Kind regards

    Figured it out.

    Thank you

  • Message queued, case/default message handler?

    Hello

    I started to implement the QMH design for my application model:

    • Producer
      A state machine that implements my algorithm:
      Move actuators, send commands to a camera, settings etc.
    • Consumer
      A state machine that sends low level commands to devices according to the task at hand

    But now I have a problem:

    I would constantly check and show the positions of the actuators, as a case of default/message. Positions, different measures should be taken. If I were using a structure of the event into the loop of producer, I could use his timeout feature, but in my state machine, I can't do that.

    Example in the loop of producer:

    1. State "actuator move to position"-> mobile actuator
    2. Check the position every 100 ms until the goal reached<---- this="" would="" be="" my="" default="">
    3. After that position is reached, take a picture
    4. Output

    I admit, I still have a bit of trouble differentiating between the States and transitions. Currently my status in the producer State machine loop where to send the command 'move' and the positions of the target, is called now "move to xy. It runs only once. It might be preferable to have a State "now in motion" which reads the position and going on to the next State (for example "stopped") once the target is reached?

    Any thoughts on this please?

    Thank you!

    But now I have a problem:

    I would constantly check and show the positions of the actuators, as a case of default/message. Positions, different measures should be taken. If I were using a structure of the event into the loop of producer, I could use his timeout feature, but in my state machine, I can't do that.

    Why not? You can set the dequeue time-out so that if no message is received, it goes to a case of "timeout" of your QMH which is where you can check positions etc.

Maybe you are looking for

  • Apple macbook pro lag tv antenna

    When I play a video on youtube or shake using my macbook to my apple tv airplay, the video on the TV is very laggy, but the video plays fine on the macbook while airplaying.

  • Skype not opening

    When I click on the shortcut, it is the part of loading next to the mouse and in the Task Manager, it recognizes, is the opening, but nothing appears and no sound plays. I tried to uninstall/reinstall, reinstall certain drivers, update those of mic a

  • Cannot install Jdeveloper 12.1.3.0.0 (Installer for windows 64-bit)

    Hi allI try to install Jdeveloper new version 12.1.30.0 (for 64-bit windows setup program) on the windows-8 machinebut it shows an error in copying the process-Failed processing and java. IOExceptionSee installation screens - https://plus.google.com/

  • Coordinates of the cursor can be hidden by default?

    I use Acrobat X on Mac running 10.10.4 (also have the new acrobats, but need to X for a legacy plugin that I use). The default cursor coordinates are on and are annoying for my purposes. Any way to have been concealed by default instead of having to

  • Too many objects correspond to the primary key

    I read a lot of posts on this topic, but they are all related to the addition of new records.  My situation is a little different.I have a SelectOneChoice with AutoSubmit set to True.I have 2 tables that are related to the value of the SelectOneChoic