Hello,
I want to remote control a CANalyzer measurement with a MATLAB script via COM objects and stock while trying to get signals from CAN.
What I already have (working):
CANalyzer = actxserver('CANalyzer.Application');
CANalyzer.Open('someCANalyzerConfig.cfg');
CANalyzer.Measurement.Start;
Technical References from Vector says, that "Signal" is part of "Bus" which is part of "Application". So I type in the command window
and the answer is
simSetup = CANalyzer.Configuration.SimulationSetup;
buses = simSetup.buses;
bus = buses.Item(1);
signal = bus.GetSignal(1,'ACU_Send_Signals_4','ACU_Bass_St');
disp(signal.Value)
but there is already a error message in the first line:
Invoke Error, Dispatch Exception: Nicht implementiert
Does anyone has an idea, how to solve this invoke error?
It seams as some objects are not present on the interface.
A simple .vbs-script with the 3 lines
Set App = CreateObject("CANalyzer.Application")
Set EngSpeed = App.Bus.GetSignal(1, "Engine", "EngSpeed")
MsgBox "The current value is " & EngSpeed.Value, vbSystemModal
is doing the job perfectly and shows me the actual value of the specific CAN signal.