Reputation: 3004
I need to control a complex CAN simulator written in CAPL for CANalyzer from an external application (in java, if that matters).
The simulator is already written and it has some buttons performing the functions I need.
What I need now is to modify this simulator so it accepts commands from a custom application, presumably via socket connection (but I'm open to other IPC means).
I should be able to send a message to Simulator and it should act as-if one of the interface buttons had been pushed.
Can such a thing be (easily) done? If so: where can I find relevant documentation?
Upvotes: 1
Views: 5643
Reputation: 19
If you are using COM server, you will be able to make your application interact and exchange messages with CANalyzer. There is an application note document (pdf) at http://vector.com/portal/medien/cmc/application_notes/AN-AND-1-117_CANoe_CANalyzer_as_a_COM_Server.pdf describing the details. And you will find a sample configuration in the installation path of your CANalyzer under \CANwin Demos\Demo_CAN_CN\MoreExamples\COM_Automation for visual basic script.
Upvotes: 1
Reputation: 3004
It turns out CANalyzer does not (currently) have socket interface (CANoe does).
Preferred interfacing method is via COM server (both CANalyzer and CANoe act as CAN server by default). See: https://www.vector.com/portal/medien/vector_cantech/faq/ProgrammingWithCAPL.pdf
Upvotes: 0