String commands to CAN Conversion

2 visualizzazioni (ultimi 30 giorni)
Cristian
Cristian il 26 Gen 2024
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 :((

Risposte (1)

Venkat Siddarth Reddy
Venkat Siddarth Reddy il 16 Feb 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:
I hope it helps!

Community Treasure Hunt

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

Start Hunting!

Translated by