String commands to CAN Conversion
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 :((
0 comentarios
Respuestas (1)
Venkat Siddarth Reddy
el 16 de Feb. de 2024
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:
https://www.mathworks.com/help/vnt/examples.html?category=can-matlab-communication&s_tid=CRUX_topnav
I hope it helps!
0 comentarios
Ver también
Categorías
Más información sobre Vehicle Network Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!