06-15-2012 03:19 PM
I am trying to figure out how to implement a HS Can message that has one byte that is a rolling counter using labview and any NI HS Can hardware. I am trying to simulate a vehicle HS Can bus and some of the signals are counters that count up to a number then start over. Say the message is sent every 5ms.
06-15-2012 03:42 PM
What have you tried so far?
Are you using NI-XNET or NI-CAN?
One basic way to do this is to just set up a loop and transmit each message on demand. Just keep updating the Data field in the frame.
06-15-2012 03:43 PM
Have you looked at the CAN examples that ship with LabVIEW? Which CAN hardware do you plan to use? It makes a difference - newer PCI boards support NI-XNET; older boards and USB devices use the older NI-CAN interface. In either case it's pretty simple both to send a CAN message and to increment a value every 5 ms (although you may not achieve perfect 5ms timing on Windows). If you provide your code and an explanation of the the problem or error you've encountered, it will be easier to help you.
06-18-2012 06:53 AM
I am using the latest National Hs Can hardware and XNET/Labview. Everyone has pretty much answered my question I think. National still does not have a the ability to create real time HS Can messages or smart messages, like rolling counters and such that are hardware controlled or the control is not affected by windows timing. I am trying to not use Vector because of cost but I guess you get what you pay for. I have implemented network management with National instruments HS Can in the past with Labview and it worked pretty good but test systems need to be flawless and predictable. I guess I am still in the hunt for a 100% relieable National solution. Onboard micro controlled HS Can messaging that is not affected by Windows.
06-18-2012 06:53 AM
thanks
06-18-2012 07:54 AM
@DHAGG wrote:
I am using the latest National Hs Can hardware and XNET/Labview. Everyone has pretty much answered my question I think. National still does not have a the ability to create real time HS Can messages or smart messages, like rolling counters and such that are hardware controlled or the control is not affected by windows timing. I am trying to not use Vector because of cost but I guess you get what you pay for. I have implemented network management with National instruments HS Can in the past with Labview and it worked pretty good but test systems need to be flawless and predictable. I guess I am still in the hunt for a 100% relieable National solution. Onboard micro controlled HS Can messaging that is not affected by Windows.
The highlighted statement is not correct.
The NI 8513 has hardware timed messages and you can queue up Frames to simulate a rolling counter.
Another alternative would be to use an RT system.
06-18-2012 09:13 AM
That is what I was looking for, confirmation with out doing a lot of experimentation that NI8513 is hardware queued. I was having trouble understanding if the queues were onboard or computer memory queues. I will try setting up the queues hopefully today.
Thanks. I will re-read some of the documentation and start experimenting.