LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ActiveX Callback Performance Problem

Hi all


I have an USB 2 CAN Converter which I controll with an activex Container element.

The Converter has to access an ECU via the CAN Calibration Protocol (CCP; Point to Point)

That means I send via the converter an 8 byte CAN message to the ECU and the ECU sends me an adequate message back. For the sending I have to use use an activex Invoke node.
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.

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(via Property node; Status 1). Then I have to setting back the property node to Status 0. Now it is possible to process the displaydata.
And so on. I send a message wit for the receive......


So far so good. Everything works fine just very slow. With other USB to CAN hardware (peak system technik, esd electronics) this works for about ten times faster. But there I work with a dll. My experience with activex is very poor. So im not sure is there a possibility to increase the speed of my labview code.

For to spell the problem out you here is a picture.
or http://www.labviewforum.de/download.php?id=2167


Thanks in advance

Baesi

0 Kudos
Message 1 of 2
(2,457 Views)

See the same message in a different thread:

http://forums.ni.com/ni/board/message?board.id=170&message.id=184603

0 Kudos
Message 2 of 2
(2,454 Views)