Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ CAN "analog trigger"

Dear all,

 

 I know it's possible to synchronize DAQ and CAN, also with frame API.

I need to synchronize a DAQ device (PXI 6070E) with a CAN device (PXI 8461) using frame API. The synchronized acquisition has to start with an analog trigger (ai1 for example on PXI 6070E).

In order to do that I began with CAN Frame API Input DAQmx Input.vi (from Find Example) and I added analog trigger functionality to DAQmx task (see attached file).

 

This solution seems to work well with sample rate <  1000S/s.

When I try with higher sample rate 20kS/s, for example, VI start correctly, but it stops and popup an error.

 

NOTE: The original VI (CAN Frame API Input DAQmx Input.vi) hasn't this problem. I tested it in range (0 - 50)kS/s.

 

Some ideas?

Thanks in advance.

Paolo.

0 Kudos
Message 1 of 3
(6,321 Views)

Hi Paolo,

I had a look at your vi.

Why do you need another while loop with a DAQ Assistant in parellel with the DAQ and CAN acquisitions?

Which error code and message do you get?

 

Regards,

Serena M.

 

0 Kudos
Message 2 of 3
(6,306 Views)

Problem solved! My CAN Card was out of order.

 

p.

 

 

0 Kudos
Message 3 of 3
(6,280 Views)