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

How To Retrieve the Baud Rate Settings using the Frame API

Primary Software: Driver Software>>NI-CAN
Primary Software Version: N/A
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
The ring constant created by right clicking on the AttrId pin of the ncGetAttr.vi does not populate with the Baud Rate parameter. Is there a vi I can use to retrieve the Baud Rate my CAN device is using?

Solution:
Using the ncGetAttr.vi, wire a constant numeric 80000007 of type I32 into the AttrId pin. See the figure below



The attached LabVIEW VI contains the actual code to determine the Baud rate of your CAN device and works for NI-CAN version prior to 2.6.

As of NI-CAN v2.6, you can now determine the baud rate by selecting the Baud Rate parameter of the enum ring wired to the AttrId pin of the ncGetAttr.vi as shown in the image below.


Related Links:
KnowledgeBase 0ZEF3MHR: How Can I Set Nonstandard Baud Rates in NI-CAN?

Attachments:
CAN Receive Error Frames.vi





Report Date: 03/27/2008
Last Updated: 03/30/2009
Document ID: 4JQAQ3SK

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