10-19-2006 09:29 AM
10-20-2006 09:06 AM
Hi Mudda,
You could receive all messages using a read mult in your main loop and a second loop to receive a certain ID (message) using a wait for the state "read available" and a read object.
If the Id arrives process the message and send the answer using a write object and a waite for the state "write success" if it is the same ID, otherwise you have to create a second Object for a second ID.
This is possible because the driver creates different memories on the device for the Network Interface Object (all IDs) and certain objects (single IDs).
DirkW
10-20-2006 10:29 AM
10-20-2006
10:39 AM
- last edited on
09-09-2025
02:04 PM
by
Content Cleaner
Hello Dirk,
I found something on the knowledge at the following link.
http://zone.ni.com/devzone/cda/epd/p/id/1284.
There are no comments on what function is doing what. Could you take a look at it and let me know whether this is something that can help me. If this helps can you add comments on what each function is doing.
Thanks,
Mudda.
10-23-2006 10:27 AM
Hi Mudda,
The Link you found describes how to use the remote Frame Option to run a periodic receiving object. This is for sure nothing you can use with your situation.
CAN known this remote frames to trigger devices which are able to understand a remote Frame as a way to trigger a certain answer frame. A remote frame does not contain any data and has the same Id as the frame which is requested.
In your case if there is only one particular ID on the BUS and you need to answer with the same ID twice in different rates? You could use two different ports for two objects with the same ID connected to the same BUS?
In order to receive a message with special content within the data bytes, you could configure a port to filter all incoming message using the ID and the data bytes as well. See the Filter example coming with the driver for more information.
DirkW
10-23-2006 10:38 AM
Hello Dirk,
Thanks for the information. I have so many questions regarding the CAN comunication. Is there any way I can contact you through phone? I have SSP if you are a NI application engineer.
Thanks,
Mudda.
10-23-2006 05:03 PM
10-24-2006
02:12 PM
- last edited on
09-09-2025
02:05 PM
by
Content Cleaner
Hi Mudda,
Here is a link if you want to request phone support. I hope this helps!
Regards,