vamsi539
2008-08-10 18:40:05 UTC
I'm working on a project that needs to read data from the CAN bus and log the sample rate of each message.What I'm not sure is if I have to use Channel or Frame API ?
From what I understood reading the forum and some documents is this:
1) Channel API's use the Database to pull the properties of the message.(Ex: Sample rate,no.of bits etc using GetProperty.vi)
2) Frame API's are used to read Raw Data from the Bus.(Use GetAttribute.vi ?)
Now,for my application If I use channel API's (GetProperty.vi) to retreive the samplerate.Does it read the samplerate from the database and hence not the actual value from the Bus ?
The Right way to do it would be to use Frame API's(GetAttribute.vi) to read the actual value from the bus instead of the value in the database?
Would the CAN Recevie.vi from the NI example finder the good example to start with ?
Any ideas would be great help..
Thanks
-Vamshi
From what I understood reading the forum and some documents is this:
1) Channel API's use the Database to pull the properties of the message.(Ex: Sample rate,no.of bits etc using GetProperty.vi)
2) Frame API's are used to read Raw Data from the Bus.(Use GetAttribute.vi ?)
Now,for my application If I use channel API's (GetProperty.vi) to retreive the samplerate.Does it read the samplerate from the database and hence not the actual value from the Bus ?
The Right way to do it would be to use Frame API's(GetAttribute.vi) to read the actual value from the bus instead of the value in the database?
Would the CAN Recevie.vi from the NI example finder the good example to start with ?
Any ideas would be great help..
Thanks
-Vamshi