Comparing CAN messages

I'm sending a voltage to a node we build and seek to control the message BOX the node spits back, which is converted into a real number of PSI by one of our consoles.  How can I just wait for a single message and CAN have other compaired so that I can check in a test that the message is good?  I tried using the table 1 d search and had no luck.  I look at the messages that are either spit back and I know that the correct message is coming out, but research 1 d arrray always come back with the same message.  Any help would be great. Fred

You use the channel API or API of frame? If you use the API of frame, have you seen the example of filter provided by the driver NI-CAN? If you have installed NI-CAN driver and LabVIEW, NI-CAN install example screw in your example Finder. I think that one of them performs the functionality you're after.

For the example of the 2 Filter Mode.vi series:
Open LabVIEW. Open the Finder for example ('Help' are examples). Navigate to hardware input and output"PEUT" Framework API' base' series 2 Filter Mode.vi

The VI Description:
Shows how to use the filter attributes Series2.

This example is similar to the CAN Receive.vi example, but allows you to set the attributes of series 2 that filter incoming frames. To learn more about the filter attributes, see the description of ncSetAttr.vi in your NI-CAN hardware and software (http://www.ni.com/pdf/manuals/370289k.pdf) manual.

VI instructions:
Start this VI on a series 2 NI CAN map. Transmit frames with different IDS from another device CAN to this card. Managers who pass the filter will be displayed on the front panel. Every time that you change the filter settings, press the button "Change filter settings" to use the new values.
Click on the "Configure" button to see how the resulting filter is created from the values of the series 2 comparator, mask and Filter Mode. You can also configure the new filter settings in this dialog box.

Press STOP to stop the VI.

I think it would be an excellent starting point. If you have any questions about this, please let me know.

Kind regards

Mark E.

Technical sales engineer

National Instruments

Tags: NI Products

Similar Questions

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

  • 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

  • How to get CAN message frequency by programming?

    When I have messages with different periodicity in CAN file (.dbc) database, how would I know programmatically what is the periodicity of a given message? In the X-Net database editor, I can see the periodicity, but is it possible to get it in labview code?

    In addition, some messages are to be sent, and some are to-be-received. How can we separate these channels/messages programmatically?

    You can use the XNET screw database to browse XNET alias (.dbc files) and from there, you can browse to the bottom of the Cluster-> ECU-> frame (message) and get the properties of the image to read the time of transmission.

    You can also read additional attributes of the .dbc (name/value pairs) with the XNET functions file as well (we often have a time-out message attribute).

    There are some good examples of navigation in a XNET database in LabVIEW in the finder of the example. Look at the example of "Explore the database with tree" to know how to open the .dbc files and navigate through messages/signals to get the information you need.

  • Can I send several CAN messages through a table?

    I am very new to this, so bear with me.  I am writing for a CAN bus line and we would like to send several messages through the feature of writing through the API.  But when I create the control for data is just a 1-d array.  I'm able to do a multiple choice of messages?

    Hello

    For new people, CAN bus, the NI-CAN driver brings examples for nearly every use case. Version 2.4 or later driver has the writing of multiple writing multiple images to those functions.

    An example is currently available for LabVIEW, CVI, and VC/VBasic called CAN transmit several.

    DirkW

  • Can messages be marked as read outomatically when they were read on another server like Yahoo or Gmail?

    I have several accounts e-mail with different servers. I don't have access to all except at home. If I have access to my work Gmail account or another remote site, I would prefer not to have to open/mark as read, etc., at home where I use Thunderbird.
    Any suggestions?
    Thank you.

    Security gate

    If you have a Pop email account, then it will look at the Inbox on the server, and download whatever it either has not been downloaded and mark as new unread mail. This is because the e-mail Pop of TB account has no knowledge of any marking/labelling, etc. that has occurred on the server. It downloads only tuberculosis because it's a pop e-mail account

    If you have an IMAP email account, then TB remotely viewing records and emails on the server. You see records because you have subscribed to see. When you choose to display an e-mail in a subscribed folder, contents are downloaded in a temporary cache to facilitate faster access to emails in that folder, but the cache is deleted when you exit. If these emails are not stored on your computer.

    You can also synchronize folders in order to keep a local copy on your computer, but these files will be updated / synchronized when you make changes, so that TB files and server folders are the same. While a copy is stored on your computer all the changes you make via webmail or TB will be reflected in both. Thus, while synchronizing Gets a local copy on your computer may not be invoked as a backup file is constantly updated with the server.

    So it depends on what type of e-mail account you use. If you have an IMAP e-mail account, you should see the changes on the server.

  • Can message 'No result' and filters to OBIEE - we change this?

    Hello Experts,

    OBIEE default behavior when no data is returned for a given query should display the message "No Results" and a list of used filters (if any) for the criteria.

    Image: http://tinypic.com/m/hv2q9c/4

    Is it possible to edit this message and remove the display filters?

    Thanks in advance.

    Check this https://forums.oracle.com/forums/thread.jspa?threadID=2502202&tstart=0

  • CAN string comparison to see if I have the right one.

    I am writing a program to test a product that we produce using CAN.  How would I go see if I have a CAN message string to know that our alarm is turned on, on the product?  Is there a way to compare channels incomming and pass it some Boolean value when it does?  Thank you, Fred

    Hi Fred420,

    You can use the simple comparison function to compare two strings. If you have a list of channels, then you can store them in a table and use the search function of table 1 d. Two find a portion of a string in another string, you can use the search and replace function.

    It will be useful.

    Mike

  • images in pop-up messages

    Hello. I was wondering if it is possible to change the appearance of the popup message behavior? I'm doing a site where you click on a thumbnail and a small box opens and gives some information about it. I don't want the user to have to leave the page and then go back to see more or compare 2 messages.  I really want to put another image in the message with the description, but I'm very new to this and I can't understand it. Thanks for any help.

    Modal windows (aka viewers) will do what you want.

    Modals bootstrap

    Bootstrap Modal + Carousel Gallery - http://alt-web.com/

    Nancy O.

  • ios10 problem with non-users of iphone messaging

    After upgrading my iPhone 6 ios10, I had intermittent problems with the messaging of Android users (basically, the conversations no iMessage). In about 60% of the time it is not just to deliver the message no matter what I do (pressing the 'Try Again' don't work do not). He has no problem with the reception of the texts, but I can't answer to Android users (Interestingly, I can message users of Android if they are in a group with iPhone users text). I tried everything was updated to the last verision until reset of ios everything.

    I can't find anything online about this. I'm the only one who what?

    Group Messaging uses the MMS. Normal text messages using SMS. SMS uses the voice channel to transfer messages and is strictly a basic function. If you are experiencing problems sending SMS, contact your carrier.

  • maximum size of the message

    What is the maximum size allowed in icloud mail by email?

    The size of the mailbox and the message sending limits in iCloud - Apple Support

    Limits on sending messages

    There are several safeguards in place to ensure that only iCloud members can send messages using iCloud. One of these safeguards include reasonable limits on:

    • The total number of messages, you can send each day (200 messages)
    • The number of recipients, you can message each day (1000 recipients)
    • The maximum number of recipients per message (100 recipients)
    • The size of incoming and outgoing messages (20 MB, up to 5 GB with mailbox ) enabled
  • NOR CAN arbitration IDs failure

    What is the breakdown of arbitration extended message ID?

    Is this:

    | x | x | 1. standard 11-bit | 18 - bit extended |

    ^                ^ ^                ^

    Lsb msb lsb MSB

    or

    | x | x | 1. 18 - bit extended | standard 11-bit |

    ^                ^ ^                ^

    Lsb msb lsb MSB

    I could not find this information. I need the map CAN message structure in the implementation of Freescale, which presents itself as follows (32-bit):

    | standard 11-bit | SRR | IDE | 18 - bit extended | RTR |

    ^                ^             ^                ^

    Lsb msb lsb MSB

    where SRR-online bit substitute remote request (request remote for the standard ID)

    IDE => Extended ID bit. 1-scope id, 0-online standard id online

    RTR => Request Remote for the scope ID.

    Please advice.

    The CAN bus does not send 18 0 bytes bytes padded for a standard identifier.

    Most of the material has a 32-bit register for code.

    For a 29-bit ID, you fill in 28:0. Identification of 11 bits, you fill 28.18 with the ID.

    One of the higher bits 29, 30 or 31 indicates if the standard ID or extended by the concern of transmission.

  • Absolute Log Timestamp Converter CAN bus

    I'm experimenting with the help of the CAN Bus Log Converter to convert raw CAN bus data to a TDMS file to Signal/value data for analysis.

    My understanding is that the timestamp to the Raw features store the absolute timestamp (I checked the timestamps in my CAN messages are absolute), but after passing through the CAN Bus Log Converter, the weather channel seems to show only in the relative time (well... a relative number of seconds).

    By looking at the properties of the group or channel, I have the following:

    Group:

    CANDateTimeStamp - 25/09/2015 10:19:16

    POUVEZ stamp - 6.36103091565499E + 10

    Time string:

    Display format: Digital (it takes not time?)

    Minimum: 0

    Maximum: 63.40234 etc.

    I just started using DIAdem angry and I am currently trying a few things while working through online training.

    Hi Sam,

    I'm curious, were you angry before you start using tiara or DIAdem because frustrated you?  The Bus Log Converter creates a relative time for each message channel, but includes the absolute DateTime offset until a string of human time date readable and a number of seconds tiara.  If you add this huge number you mentioned to all layer of time values, and then change the channel of the digital display time display, you will get the absolute DateTime values.

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • MAY send Multiple Messages

    I tried to use the example in the knowledge base OR but it seems I'm missing something

    The example is in this link https://decibel.ni.com/content/docs/DOC-3666

    If you look at the block diagram the VI is capable of pushing several CAN messages at different rates.

    The part with the fact that I'm a little confused is the section 'Write data to medium-sized businesses' in the block diagram.

    If you look at the façade there is a table called DataBytes which is set at 56, 11.

    I guess my confusion is I'm wear why it is on these values?  If another CAN message must be sent that would be the second set of values must be resolved?

    I can't successfully push them one CAN message to the network, but when I add another message that I'm not pushed the network.

    Finally, I would like to push 20-40 messages for a network BOX all require different sampling frequencies simulating a vehicle environment.

    I'm using a PXI 8464 2 port CAN interface.

    I push out CAN0 signals

    I am tracking the CAN on CAN1 via MAX signals by connecting CAN0 and CAN1 with 2 meter NOR Can cable (REF 192017 A-02 CAN CABLE 2 meter 12506 4304)

    Any help would be appreciated

    I've done several message with the following modifications.

    Setting baud rate to 500 000 Ko.

    Defining the two CAN ports (CAN0 for writing) and CAN1 for playback at high speed.

    And finally add a SHIELD to the network.  Not really sure why it worked the other then the fact that he was able to create support for messages.

    Thanks for all their help

  • XNET read frame CAN

    Hello

    I use Veristand 2011 and I worte a device custom for the reading of the electronic can over reading XNET CAN frame

    now my problem is, who is unable to retrieve the CAN-Messages.

    I could install my custom device CAN-Frame, but there is no information can.

    On the other hand, I've defined a XNET Session on exploring system with CAN1. That would be the problem?

    Or maybe my RT pilot?

    Help, please.

    Kind regards

    YesB

    Hello

    your device does not work correctly. and I can see frames. I made the following changes:

    It is possible that you have seen the error image. But you have several frames on the Bus. This means that you must write all the frames in the RT FIFO. I would recommend to use XNET Read RAW Frame. It is an array of U8 you can better manage that work with groups and so on.

    Kind regards

    Philippe

Maybe you are looking for

  • restart my computer

    Hi, how can I restart my computer (vaio) factory mode because have problems with the internet and the other is thinking, that's all, thank you

  • Cybershot DSC-tx200v AVCHD 28 M conversion in an acceptable format for Mac

    I gave my wife this new camera before moving a week 3 cruise Down Under, it came together from high level on the quality of the movie, I have a MacPro w/IOS 10.6.8 (Snow Leopard) and will not download. I need a way to convert AVCHD 28 M in a less acc

  • Unity Subscriber update

    Hello Is it possible to reapply the template settings to a group of subscribers? I want to be able to change a parameter in a template, and then reapply the new parameter to the existing subscribers. Thank you Peter

  • All the files in the Documents are now in a big list - stripped records

    Open my library > Documents to find my entire list of files in a huge list - all the folders are gone (or hidden?).  I DO not see the files in c:\Users[user-name]\Music\iTunes\iTunes but no library > documents from windows Explorer. This is a setting

  • I can't open some of my programs

    I use Windows7 Home Premium. Last week, I installed a windows update, and after that, I can't open some of my programs. The process does not yet appear on the Task Manager. All the solutions to this?