10-06-2017 06:46 AM
Hi,
I'm new to this forum so the question might be trivial, but...
I've a message which consist of three signals:
--data,
--counter,
--checksum.
I'm using this vi to send the data over.
It works with in while loop.
However, along with the data signal - which value of can send on demand (explicit call) - I have to send the checksum signal and counter signal EVERY frame sent (implicit calls) out from XNET.
How I can do it? How I can tell to XNET: every signal frame sent has to increment the counter in particular way?
Solved! Go to Solution.
10-09-2017 09:01 AM
If you need to send custom frame bytes (such as checksum), and it is not defined as a signal in your database, you will need to explicitly send the frame with the checksum computed in your code. There is no inherent XNET functionality for doing this as youve described.
10-09-2017 10:26 AM
You can do this with XNet but it takes some trickery. I've posted a blog post on the subject and describe how to do this with some XNet examples.
https://hooovahh.blogspot.com/2017/07/can-part-9-crcs-and-incrementing.html
Basically you can define the payload for each frame that will be sent out on a hardware timer. So you queue up a bunch of frames to be sent out, and then when the queue is getting empty, queue up a bunch more. There is also a lesser known (not fully supported) method I'm working on packaging up but isn't quite ready.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord