Hello. I need help to setup CAN interface to write and read on the same interface.
I am using NI PXI-8513/2. I am using CAN1 as interface.
My DUT is sending CAN status messages every 100ms. I have to read them in order to send akntoowlege back to keep DUT CAN interface happy and not getting errors.
So, I want to open Strim Session and readall frames in the loop. At the same time I need to be able to write to DUT one frame at the time..
I only need to read one frame at the time too, but since I know the ID I can pull it from the stream.
What I confuse about is how to set up the the same interface CAN1 to be able to write and read in parallel.
I think I would get errors that interface is already used.
Since I am new to CAN, I was reading and writing only when needed. But, sometimes I was getting errors on my messages. Sometimes I get message, sometime I miss it. But, when I run CAN test penal as sniffer it sends and writes every time.I was told that is because it acknowledge every message.
I open to any suggestions to the best way to set up interface.
I guess I can use CAN2 and the splitter to go around this issue, but I would like to use one interface if possible.
Thank you