Discussion:
CAN CHANNEL READ
(too old to reply)
Lab V
2007-05-16 14:10:11 UTC
Permalink
Hi All,

 

I am using LabVIEW 8.0 & CAN 2.4 for my application

 

I am reading CAN message of particular Arbitration ID .Actually I want to count the message of arbitration ID for particular period.

 

When I run VI it will run perfectly for 2-3 arbitration id continuously but not give the right result if I run this VI more than 5 times .May be some memory losses or optimization is required.

 

Can anybody suggest me the modification in this VI?

 

I have attached the snapshot of the VI

 

Thanks in advance

 

HKT


Channel read.JPG:
http://forums.ni.com/attachments/ni/30/2587/1/Channel read.JPG
DirkW
2007-05-17 14:10:11 UTC
Permalink
First of all i would suggest to use the timestamped input mode to receive only messages which have arrived to the CAN port. The imput mode oversamples the incomming messages, thus you get more values for a higher sample rate and you loose samples for sample rate zero.
The get property always reads the ID which is configured for your task. Better works the count using a shift register. See the attached example.
 
DirkW


Single Sample Input Count.vi:
http://forums.ni.com/attachments/ni/30/2589/1/Single Sample Input Count.vi
Loading...