How to filter CAN messages on MCB2300?

I have an application that is giving me a stack overflow error with too much CAN traffic.  I only need to monitor one message, and if I only have that one message on the bus it works good.  As soon as I add the other messages on the bus I get the error, so I figured I could just filter out the ones I don't wan't to read.  I put the filter in my code, but I still get a stack overflow when all of the messages are being broadcast.  How does the filter work?  Do messages go to the memory stack first until a software routine has time to go through and filter unwanted messages?
Solved!
Go to Solution.

I have an update.  I first found out that the filter was not working at all.  Every message was getting passed through even though they should be filtered out.  As I was deleting portions of the code, I noticed that the filter suddenly started working.  After a number of iterations and deleting things one by I have it narrowed down.  The code as is has a non-functioning filter.  If I delete the COM port config's, then the filter starts working properly.  If I leave the COM port configs in place and delete where I write messages on CAN2, then the filter works properly.  I'm not sure how either one of these could be affecting my CAN1 filter.  The attached code is in LabVIEW 2010.
Attachments:
Test Code.vi ‏50 KB
ARM_Globals.vi ‏8 KB

Similar Messages

  • How to transmit can message with extended id using Vcand32 dll from vector cancardx?

       Iam trying to transmit can message with  extended id through vector can card, data is received properly, but message id is not proper, only 11 bits of message id is visible in pcan tool.

    The thing is, the whole point of having separate accounts is to keep your data seprate from hers. So, any attempt to overcome this can be kludgy.
    For iPhoto 09 (version 8.0.2) and later:
    What you mean by 'share'.
    If you want the other user to be able to see the pics, but not add to, change or alter your library, then enable Sharing in your iPhoto (Preferences -> Sharing), leave iPhoto running and use Fast User Switching to open the other account. In that account, enable 'Look For Shared Libraries'. Your Library will appear in the other source pane.
    Any user can drag a pic from the Shared Library to their own in the iPhoto Window.
    Remember iPhoto must be running in both accounts for this to work.
    If you want the other user to have the same access to the library as you: to be able to add, edit, organise, keyword etc.
    Quit iPhoto in both accounts. Move the Library to the Users / Shared Folder. (I would note that some Lion users are finding Permissions issues with this.)
    (You can also use an external HD set to ignore permissions, a Disk Image or even partition your Hard Disk.)
    In each account in turn: Double click on the Library to open it. (You may be asked to repair the Library Permissions.) From that point on, this will be the default library location. Both accounts will have full access to the library, in fact, both accounts will 'own' it.
    However, there is a catch with this system and it is a significant one. iPhoto is not a multi-user app., it does not have the code to negotiate two users simultaneously writing to the database, and trying will cause db corruption. So only one user at a time, and back up, back up back up.

  • How to filter simpleChat messages (private chat)

    So I tried to find the solution, but after several hours, I can't find how to do it.
    My use case:
    There is one host for a room. Others users in the room can only talk to the host, and the users can only see their private discussion with the host. Users can see the chat component only when the host is connected.
    The host use another application in which he can see the list of users who are talking to him. He can select a user in the list, and he see a simple chat with only the messages between him and the selected user.
    What I have completed (I think it can help others in the future, and maybe there are better way to do it):
    * In the user application: use the userManager property of your ConnectSessionContainer. It has an arrayCollection named hostCollection concerning the hosts who are currently connected.
    In my case, I put the chat components into a container, and use a binding to the visible property:
    visible="{connectSession.userManager.hostCollection.length>0}"
    You can also add an event listener to the userManager and listen for UserEvent.USER_CREATE and USER_REMOVE and check if event.userDescriptor.role==100  or checking the hostCollection.length of the userManager again.
    * If you subclass simpleClass, you can access to the _toCombo which is the combo box of the chat.
    You can set its visible property to false, and set its selectedItem to the first object in its dataprovider which role is equal to 100 in order to force the chat to be private with the host.
    * In the host application, you can create a list that use the ConnectSessionContainer.userManager.audienceCollection as dataProvider to have a list of the users.
    It's easy to set the combobox of the simple chat to speak only to the selected user, but what I haven't been able to do is to filter the history to only show the conversation with the selected user, and not other messages, without creating several rooms.
    I looked into the source code, but the history property of the simpleChatModel is just a string, and haven't find an easy way to filter it.
    I looked for an arrayCollection of the history nodes, because I could have use the filter property of the collection, but I haven't find it.
    So, where should I look, and what is the best way to filter the history using the recipient_Id?
    Thank you for your help...
    Sorry for the long post, but maybe it will help someone in the future...

    Thank you for your response Hironmay,
    I made some great progress by sub-classing both the simpleChat and simpleChatModel classes.
    I read on Nigel twitter feed that he hates private, and I can thank him for his love of protected members, because it made my job so much easier!
    I will explain what I did in the interest of other users, but I've got one last question: 
    In the Room Console AIR app, there is an "retract all items" in the node details of the explore tab. 
    I want to build the same button in my host chat application, but I haven't find a way to do it. 
    There is a retractItem method on the CollectionNode class, but it requires the itemID and I haven't find a way to access every item in the chat history in order to get their itemID. 
    I tried the clear() method of the chatModel, but it cleared only the current session, and leave the items in the server, and when the host logout, the items reappears when the host login again. 
    On the bright side, here is what I use for my applications:
    - Subsclassed the simpleChat in hostChat and clientChat classes, and the simpleChatModel in HostChatModel and ClientChatModel
    - subclass the ChatMessageDescriptor ==> PrivateChatMessageDescriptor with 2 properties: userConcernedId and fromHost (boolean)
    - override in the HostChatmodel the addMessage function to obtain  PrivateChatMessageDescriptor instances, and I add them in an ArrayCollection
    - When the host select a user in the RosterList, a filter is used on the ArrayCollection, and the HistoryTextArea is updated to show only the thread between the host and the user. The _toCombo is updated to send private message to this user.
    - I override the updateTypingIfNeeded method of HostChat to use a SharedProperty which contains the userId of the selected user when the host is typing or an empty string. This way, in the clientChat, I only show for the user when the host is typing a message for him, and not when other users are typing.
    - I replace the TextInput by a TextArea to enable multiline input (well, this one opened lots of problems to fix, but I have)
    - A lots of other tweaks  
    So as you can see, I made it
    But I look forward to a new set of sparks component, because it would have been much easier to extend the SimpleChat without rewritten half of it. 
    And here are some of my feature requests: 
    - In the SimpleChat class, add a protected getAndInitModel() , which would be called in the subscribe method. This way, one can switch the model without overriding the subscribe method of the Chat class.
    - Have a "multilineInput" property in the SimpleChat class to chose a TextInput or a TextArea as the user input component.
    - Provide a way to enable Host/Users interaction directly in the pods without having to create a new room for each user to "separate" them.
    I think a lot of use cases for LCCS would be to implement solutions for Customer Experience, and that will need more focus on what the host can do (private chat, ...) 
    Thank you again for your help, and thank the entire teams for this incredible service. 
    Dimitri K.

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

  • JMS - How to receive specific messages (by time stamp)

    Hi,
    I need to receive messages from a queue, but only ones that were sent in a specific time stamp (e.g. more than ten minutes ago).
    i have the methods receive or receiveNoWait, but I dont know how to filter the messages according to the time they were posted.
    (I dont want to receive all the messages or the next message in the queue, instead, i want to empty all the old messages from the queue and leave only the new ones.)
    How do I do that?
    Thanks,
    Ruvik

    Hi Ruvika,
    Do you want the messages older than 10mins to be discarded? If you want only message which are there for less than 10mins then you can probably use one of these methods
    For QueueSender:
    send(Message message, int deliveryMode, int priority, long timeToLive)
    or
    For TopicPublisher:
    publish(Message message,int deliveryMode,int priority, long timeToLive)
    The timeToLive is in milliseconds. After that the message should be discarded by the provider.
    Check out the JMS API documentation for more details.
    Have fun!!!
    Robo

  • Can anyone recommend a duplicate file finder application for OS10.6 systems?  All the apps I find on the App Store are only for 10.7 and later.  I don't know how to filter a search by operating system (if this is even possible).

    Can anyone recommend a duplicate file finder application for OS10.6 systems?  All the apps I find on the App Store are only for 10.7 and later.  I don't know how to filter a search on the App Store by operating system (if this is even possible).  I currently have a MacBook running OS10.6.8.   If you can recommend an app,  please post the URL.     Would appreciate any helpful suggestions....  
    <Email Edited By Host>

    Launch the Console 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. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • I have an iphone 3g I tried to dl an app for netflix and it said i need to have ISO 5 but my phone has ISO 4.2.1 and when i try to update it I get message saying I have current version how or what can i do do to get an app the lets me watch netflix on my

    I have an iphone 3g I tried to down load  an app for netflix and it said I  need to have ISO 5 but my phone has ISO 4.2.1 and when I  try to update it on my computer through itunes  I get message saying I have current version how or what can I do do to get an app the lets me watch netflix on my  iphone 3g .Is there an sulision to my problem? I also tried another app with another name diff from netflix and I got the same message saying i need ISO 5 .Someone please help  thank you

    Thank you for your help are you aware of any apps that will work the iso 4.2.1 system that will let you watch movies on the phone. Also I tried to down load something else the other day and got message that Safari wont let you open this is ther any to see if i have the latest safari on my phone?

  • When the message arrives, the message tone sound that many times. How this problem can be solved? I installed the new version, but the problem is not resolved, the future is to be taken into account in the new version of this?

    When the message arrives, the message tone sound that many times. How this problem can be solved? I installed the new version, but the problem is not resolved, the future is to be taken into account in the new version of this?

    I'm not sure I understand the question, is the message tone going more then once?
    Turn off repeat message alert here:
    settings > notifications > messages > repeat alert > never
    Some people have found this does not stop the repeat miessage tone,
    if you are one of those then I suggest you contact Apple:
    http://www.apple.com/feedback/iphone.html
    They may not respond, but hopefully will fix in uodate if enough people complain.

  • How come I can't add a song to my playlists in itunes match? Is it me or itunes match? It keeps on coming up with a message " iCloud playlists can only contain songs from your iCloud music library. If you continue, the playlist will be removed from iCloud

    How come I can't add a song to my playlists in itunes match? Is it me or itunes match? It keeps on coming up with a message " iCloud playlists can only contain songs from your iCloud music library. If you continue, the playlist will be removed from iCloud and will only be available on this computer"?
    You must surely be able to add and subtract songs on specific playlist?

    I fixed this issue (with help from tech support) and it involved several things.
    After adding a song to iTunes, right-click on the song in iTunes and select "Update iTunes Match."
    OR go to the iTunes menu-->Store-->Update iTunes Match.
    Maybe that's the reason, it just hadn't updated to the cloud.
    OR maybe it's not a high-enough bitrate file.   This happens to me because most of my tunes are home-recorded.
    Sometimes converting to .mp3 or Create AAC version might work. (You do this with a right-click in iTunes, and then you will want to remove the original file from iTunes.)
    There is an iTunes Preferences setting, under General Preferences called Import Settings.  Try setting it to AAC Encoder and iTunes Plus.   That (I think) causes imports to be slightly better quality.
    Good luck!  The tech support person at Apple is requesting that a knowlege-base article be written about this.

  • How do you schedule an email to be sent at a later time?  Also, canned messaging shortcuts in Apple Mail?

    I have heard rumors that this is doable using Automator and iCal.  I have also heard rumors that Apple Scripts are the way to go and I have found a few online (likely from 17 year olds in their basements) -- I must admit, I'm a little leary about copying and pasting a script into my computer.  I'd much rather have detailed instructions on how to set it up myself.
    I would be most grateful for some help with this!
    Thank you!!
    P.S. Also, if anyone knows if there is a way to use shortcuts in Apple Mail to trigger canned messaging I'd appreciate it.  You can do this with the iPhone (ex: you can set it up so that when you type CB in the text field, it says "I'll have to call you back" or whatever you want it to say).

    +1
    Scheduling an email is a deeply important productivity feature that I really hope Apple can incorporate into the next update of Mail.

  • How to customize SAP Inox view to filter workflow message as per object key

    HI,
    i need to customize the sap inbox so that i can filter the message by fileds. for example if i get a message or inbox related to sales order than i should be able to view the subject of the message in field columns and i can sort it on the basis of this fields.
    Please help .
    Thanks,

    Check this link
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80583929-f6ed-2b10-e7ac-b77872c42dba
    Thanks
    Arghadip

  • 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

  • HT4972 how come i can not use iOS 6 on my ipad 3 to get the youtube or pinerest app? it keeps giving me a message to use iOS5

    How come i can not use iOS 6 on my ipad 3 to get the youtube and pinerest app? i keep getting a message to update to iOS5 if i must use iOS5 how do i update to that one because it just took me 4 hours to figure out how to update to iOS6

    We have read that any apps that use the google map app (removed by ios6) will not work.  We have lost a great camping app for this reason, and have heard that some weather apps are not working either.  The company line we've been given is it's up to the app developer to rewrite their apps.  ***** doesn't it.

  • How many people can I text in a single group message

    how many people can I text in a single group message on an iphone 5
    I am being limited to only 10 people or phone numbers currently.  I am on the AT&T service also.
    Message was edited by: AndreJF

    Hi there,
    You can text as many people as you want at once on the iPhone 5!
    Bonus: If you want to send everyone a message without each person knowing who else received the message, you can go to Settings > Messages and turn Group Messaging to OFF. Each recipient will receive an individual message.
    Message was edited by: ChristianfromWV

  • Since updating my Iphone 4 I cannot figure out how to delete old messages.  There is no edit button.  Can anyone help?

    Since updating my Iphone 4 I cannot figure out how to delete old messages.  There is no edit button.  Can anyone help?

    By "sending" do you mean sending email?
    If so, what app are you using to take the photos on your iPhone 5? Or are the photos from a different source (saved to your Camera Roll from somewhere else, like a web page or Messages)?
    My guess is that Mail gives you the option to send different file sizes when it detects you are trying to Mail a really large photo file. The size of photos on the iPhone 5 is really big and some email providers may stop your mail from being delivered if attachments are too large. Thus, Mail tries to help you by offering to resize the photo.
    I suspect that if you are sending smaller files, Mail does not bother giving you options to save a smaller version. In fact, I have seen this behavior. So, if the photo is already "small enough", it gets sent as-is.
    To my  knowledge, there is no global iOS setting for this. Some apps may have different rules, of course.

Maybe you are looking for

  • Problem in Sales Register  in XL Reporter

    Hi Experts I have a problem in Sales Register. It show double quantity and linetotal in most of invoices. I search a lot but could not find the problem. When I compose a new sales report from Sales AR module , here it show the same error, double qty

  • Timestampdifference function

    Hi all, I have to find the number of years and months from timestampdiff function. for example first date 1/1/2010 and second date 1/6/2011 i have to show 1 year 6 months as the result of timestampdiff. It is showing only for month or year. i want bo

  • Connecting to a windows network through the terminal?

    Hi, I'm at school with my archbox and want to connect to the samba server through the terminal. I usually use GNOME on a regular basis, but I find it fun to use the terminal for things. Please tell me how I can do this.

  • Help please..photos

    when i go into ipod options and select photos and the folder i want on my nano and press ok it says it is optomizing photos and then says it is copying photos but then in the bottom right hand corner it says zero photos and they do not appear on my n

  • TS1702 App will not install.  App says "waiting"

    Why will app not install?  App says "waiting"