Hello,
I am trying to code an application which:
- Write sometime (button click) a frame on a CAN network
- Log all frame of CAN NETWORK
My hardware is NI USB 8473 (1 port).
1/ After reading NI help about CAN APIs, I think it is not possible to do "log all CAN frame" with Channel API because I need to install a asynchronous callback to read all message, and this functionality is only present in frame API.
Anyone can confirm?
2/ No problem let's use Frame API
I have tried "CAN Receive with Notification" example delivered with NI-CAN driver, configured on virtual CAN256.
I start other sample program to generate some frame on virtual CAN257, no problem, everything is working.
So, i have tried to modify "CAN Receive with Notification" to add write function. I have mixed this source with "Transmit Receive same Port" sample (which works fine alone on CAN256).
My program is running, but nothing appens when I click on WRITE button.
I suppose some attribute are not confired, but which one.
Anyone can help? (source of my modified sample is joined to this post).
Thanx.
PS: please note im a newbie with CAN