02-08-2012 06:35 AM
Hello,
Now, I am building a Canopen GUI, which should be able to check heartbeats from 50 devices.
But it seems like I have to build 50 parallel loops to do this.
If I want to do it serial, then it take too much time for checking all the devices.
if anyone know some smarter way to checking heartbeats from 50devices?
Waiting for you antwort.
jining
Solved! Go to Solution.
02-14-2012 07:34 AM
Hi Jining,
are you using the NI-Industrial Communication for CANopen or an old library to develop your GUI?
Thanks RMathews
02-14-2012 01:41 PM
Hello,mathew
I am using the NI communication CANopen VI, the small green one.
jining
02-15-2012 09:30 AM
Well CANopen is a sequential serial bus so your only chance is to do the heartbeat sequentialy in a loop. The heartbeat VI call only takes a couple of microseconds so you should be able to read 50 meaasges from 50 devices in a 100 ms cycle. You might have to vary your cycle and Factor based on whether you use and RT system or a non determinictic OS.
See the attached example that uses a 100 ms cycle for 10 devices. You might need additional SDO code to enable the heartbeat on your devices and NMT code to operate the CANopen state machine.
By the way there is an IndCom Forum Board that might answer this type of question faster and better.
DirkW
02-16-2012 01:56 AM
Thank you !!!!!!! DirkW
02-16-2012 02:10 AM
Hello Dirkw,
my labview version is labview2010,later than you version, I can not open it.
Can you please post pictures of both panels? then, at least , i can have a look.
Please......
Thank you!!!!
jining