Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

baudrate

use PCI-CAN Series 2 and VC++6.0, how to set baudrate is 125K?
 
0 Kudos
Message 1 of 7
(5,362 Views)
Hi

See one of the attached examples about how to configure the baudrate.

DirkW
0 Kudos
Message 2 of 7
(5,355 Views)

Re:DirkW
 

I have been accroaded refernece to configure, but the baudrate is not 125000? why

0 Kudos
Message 3 of 7
(5,337 Views)

Hi,

For the channel api the baudrate is configured in MAX (measurement and Automation Explorer) by default. If you need to change the baudrate programaticaly, you need to call the 'set attribute" function to set the bautrate explicitly.

For the frame api the baudrate becomes configured within the configuration struct.

DirkW

0 Kudos
Message 4 of 7
(5,327 Views)

 My configure is below:

AttrIdList[0] =  NC_ATTR_BAUD_RATE;  
 AttrValueList[0] = 125000;

Is it OK?But the transmission's baudrate is 230K~270K why? or configure hardware?

0 Kudos
Message 5 of 7
(5,324 Views)

Hi,

How do you know that your baudrate is between 230 and 270K?

Normaly the baudrate does not change or vary. If the config struct uses 125K it should configure the port like that.

Perhaps you could run the NI SPY together with your code. The SPY logs the api calls to NI CAN. Save the log file and post it to this thread.

That may be helpful.

DirkW

0 Kudos
Message 6 of 7
(5,317 Views)

use CAN Oscilloscope Measure baudrate is 230K~270K

 

0 Kudos
Message 7 of 7
(5,294 Views)