Problem in getting raw data using c program

Frequent questions asked online, offline, in forums are answered here
Post Reply
bo-lo
Posts: 1
Joined: Tue Apr 14, 2020 2:19 pm

Problem in getting raw data using c program

Post by bo-lo »

Hi

I'm trying to use the c program to retrieve the raw data of IMU and distances. The modem is connected in COM1. When I tried to use the c program with port COM1, I got massage said that there is no port available "see the attached pictures " .

Can you help in solving this problem.
Attachments
dash.png
C code.png

smoker77
Posts: 322
Joined: Sat Feb 06, 2016 4:03 pm

Re: Problem in getting raw data using c program

Post by smoker77 »

Hello,

You can't run program for work with COM1 while dashboard using COM1 is running.
But you can close dashboard and run the program.

Also, you are trying not right program for getting data, try this one:
http://www.marvelmind.com/pics/2018_03_15_C_example.zip
It can be used for getting data from modem or mobile beacon.
From mobile beacon you can get 100 Hz IMU data but from modem only about 8 Hz (at system update rate).
And you should enable 'IMU via modem' option in 'Interfaces' section of mobile beacon's settings to get IMU data from modem.

Post Reply