How to continuously write data into ThingSpeak when using Vehicle Network ToolBox?

Hi,
I am using Vehicle Network Toolbox to retrieve vehicle speed from my vehicle, then I wish to send the vehicle speed continuously to ThingSpeak for data analysis.
May I know how can I do that?
Thank you.

4 comentarios

Vinod
Vinod el 3 de Dic. de 2020
Editada: Vinod el 3 de Dic. de 2020
thingSpeakWrite enables you to write data from MATLAB into a ThingSpeak channel.
One question you will want to think about is -- how frequently do you sample your vehicle speed?
With a paid license of ThingSpeak, you can update a channel once every second. With a free license, you can update your channel once every 15s. If your vehicle speed sampling rate is faster than your ThingSpeak license allows you to update your channel, your ThingSpeak channel may not have all the data.
Hi Sir, thanks for the reply.
My project title is vehicle speed monitoring system, where the system will monitor the vehicle speed when the user is driving his car. Then I will use Vehicle Network Toolbox to get the vehicle speed, and if the vehicle speed is more than 70km/h, the system will send an email to the user.
My first plan is try to use ThingSpeak to do the analysis but seems like I can't update the speed continuosly. So, is there any alternative solution for me? May I know can I do the speed comparision locally in the Matlab, so when the vehicle speed is exceeding 70km/h, Matlab will send an email to the user.
Thank you.
Is the system that is monitoring the vehicle speed in the car? If that system is running MATLAB and is connected to the internet, you might be able to use sendmail to send an email without ThingSpeak.
You could also use the ThingSpeaks alert service. There is a code template in MATLAB analysis that shows you how to send a mail based on a channel threshold.
You can calculate the average velocity locally and send it at regular intervals to ThingSpeak.
Hi, thanks for replying :)
Yes! I am developing the system that is monitoring the vehicle speed. I am using NI-XNET 8052 to get the signal from the vehicle with the help of Vehicle Network Toolbox. So far, I have identified the Standard CAN ID for the vehicle speed, as we can see from the picture below, the red box highlighted the vehicle speed. For now, I am not sure how to read the bit value only. If you happen to know the way, can you share it with me? Thanks.

Iniciar sesión para comentar.

Respuestas (0)

Comunidades de usuarios

Más respuestas en  ThingSpeak Community

Categorías

Más información sobre ThingSpeak en Centro de ayuda y File Exchange.

Productos

Versión

R2020b

Preguntada:

el 2 de Dic. de 2020

Comentada:

el 10 de Dic. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by