We use CAN bus to communicate with a device under test.
After receiving a number of frames (5) we have to answer within a specified time.
First, we are setting the number of frames using the VI ncSetAttr.vi. Then, we are waiting for the occurence using the VI ncCreateOccur.vi. After the occurence is generated we will read the received frames. So far, this is working fine, but sometimes the occurence is generated we will only read one or zero frames.
A crosscheck was done with the VI ncWait.vi. This VI will work everytime, but will use 100% of CPU time. This is not acceptable for our project, because we have to do a lot of other things in parallel.
Does someone have an idea, who to come to an solution?
Regards
Heinrich