String commands to CAN Conversion

2 次查看(过去 30 天)
Hi there, I want to acquire can data responses from an ITECH 7900. As I parsed the manual and tested the equipend I can't find a way to send a CAN string command from the programming guide. It's easy achievable using VISA Protocol but my needs are to implement as CAN communication. As there isn't any .dbc file, I suppose that I should write raw data ""single('OUTP 1')"" and of couse I am doing something wrong. I already tried doc pack, doc canMessage :((

回答(1 个)

Venkat Siddarth Reddy
Hi Cristian,
I don't think you can directly pass the strings as mentioned above in CAN protocol. CAN is a well-defined protocol, which has a very specific way to pass in any information.
Please refer to the following documentation, to learn more about transmitting a message in CAN protocol: https://www.mathworks.com/help/vnt/ug/can.channel.transmit.html
Also the CAN (Controller Area Network) protocol and the VISA (Virtual Instrument Software Architecture) protocol serve different purposes and operate at different levels within the communication stack, making the idea of "querying" in each context quite different.
In CAN, you don't typically "query" a device in the same way you might with a command/response protocol. Instead, you send and receive messages with identifiers that indicate their priority and type.
Where as with Visa, you can send SCPI (Standard Commands for Programmable Instruments) commands or other protocol-specific queries to instruments and receive responses. This is more in line with the traditional sense of "querying" a device.
For more examples on the CAN communication, refer to the following link:
I hope it helps!

类别

Help CenterFile Exchange 中查找有关 Vehicle Network Toolbox 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by