Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Synchronizing USB-8473S CAN Device with a DAQ Device in LabVIEW

Hardware: PXI/CompactPCI>>Controllers

Problem:
I'm trying to synchronize my USB-CAN device with a SCXI 1600 and in the process I'm getting an error -1074388697 at ncAction.vi. What am I doing wrong and how can I fix this error?

Solution:
USB-8473s synchronizes via RTSI or any 1/10/20 MHz timebase source. 847x sync series have a RTSI7/RTSI Clock, which selects the RTSI line 7 as source (input) of the connection.

For PCI and PXI form factors, this receives a 20 MHz (default) timebase from another CAN or DAQ card. For example, you can synchronize a CAN and DAQ E-Series MIO card by connecting the 20 MHz oscillator (board clock) of the DAQ card to RTSI7/RTSI Clock, and then connecting RTSI7/RTSI Clock to Master Timebase on the CAN card.

For PCMCIA form factor, a 10 MHz timebase is required on RTSI7/RTSI Clock. For synchronization with a PCMCIA DAQ card, this is done by programming FREQOUT signal of the DAQ card to 10 MHz, then wiring FREQOUT to the RTSI7/RTSI Clock of the CAN card.

Sometime a USB-CAN or a USB-LIN device fails to read synchronization clocks at 20 MHz and throws an error -1074388697. In this situation you would have to change the timebase for synchronization to either 10 or 1 MHz.

847x sync series also has a RTSI0 which is the trigger source terminal. Please refer to USB-CAN and USB-LIN Specifications for details on synchronization triggers.

A DAQ device can be used to export a clock signal to an 847x CAN device.  Typically, one would export the 20Mhz timebase or 10Mhz reference clock of an E-series DAQ device, or an equivalent clock signal from an M-series device.  An SCXI-1600 module cannot be used to synchronize a CAN device because only the AI Sample clock can be exported and this is below 1Mhz.  Consult the routing diagram tab for your DAQ device in Measurement and Automation Explorer to determine which PFI line(s) can be used to export the various timing signals. 

For synchronizing, you will first route the internal timebase and trigger of a DAQ device to a PFI line using DAQmx Connect Terminals.vi. Then these two signals will be connected to RTSI lines on CAN device by using the Connect Terminals.vi. Please refer to following figure and Sync CAN with DAQ example program for further details.

                         

 



Related Links:
KnowledgeBase 4T8CS7E9:  Frequently Asked Questions for the NI SXCI-1600 USB Data Acquisition and Control Module

Attachments:
Sync CAN with DAQ.vi




Report Date: 08/31/2007
Last Updated: 06/02/2009
Document ID: 4CUE3U1S

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit