From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
05-12-2006 09:22 AM
05-15-2006 04:27 AM
05-15-2006 06:41 AM
05-15-2006 10:11 AM
hi there
you wrote "The reception of an ECU message is just possible via event callback. For that I first register an activex event callback at the start of my program. I pass a reference to the displaydata(Anzeigedaten) as a user parameter of the callback.
Ok!
then: "After sending the message to the ECU I wait inside a while loop as long as the state of my displadata is receiving a CAN message".
why do you use a while loop for polling status when there is a callback function? maybe thats causing the poor performance. can you please post some code?
05-16-2006 01:53 AM
05-17-2006 05:43 AM
05-18-2006 06:30 AM
hi there
ah, i see, sorry, it was my mistake: i thought you are polling the status of ActiveX property, but you are polling a control. that should be ok. but anyway: i would try to use an event structure as you mentioned. or have you tried to add a simple "wait ms"- function in the polling while loop?
05-29-2006 09:10 AM
05-30-2006 03:08 AM
hi there
well, you could use a good ole occurence or fire an user event inside your callback vi. when you register the user event you can catch it with a event structure (using dynamic events). or have you thougt about a queue? then you could buffer the callback events data and read it in a parallel loop.
let us know!