Hi all, I am working on a project for work, basically I am attaching a DAQ (Data Acquisition System) we designed with 4 ADCs that communicate with raspberry pi over I2C communication protocol. This all seems to work fine so far, I am able to communicate with each of the ADCs and collect data very well without any issues.
The issue I am seeing is when I try to plot live data on a chart, I am using this project https://www.b4x.com/android/forum/threads/https-github-com-knowm-xchart.147329/#post-938242 for the charts. When I add the chart I start noticing that although the data from the ADC is being collected the chart doesn't render the data immediately, and it is very slow, I am only polling around 1024 samples per second from the ADC, so I don't think that is the issue, the chart is supposed to update the data every 1 second, but in some cases it takes even ~40 second for the data to be updated on the chart.
Not sure if this is an issue because it is running on a raspberry pi 4, if I run the program on my PC by generating random data it works just fine.
Does anyone have any experience with running B4J apps on a raspberry pi and have any suggestions or advice on how what to optimize to make the programs run smoother and faster please let me know.
Thanks,
Walter
The issue I am seeing is when I try to plot live data on a chart, I am using this project https://www.b4x.com/android/forum/threads/https-github-com-knowm-xchart.147329/#post-938242 for the charts. When I add the chart I start noticing that although the data from the ADC is being collected the chart doesn't render the data immediately, and it is very slow, I am only polling around 1024 samples per second from the ADC, so I don't think that is the issue, the chart is supposed to update the data every 1 second, but in some cases it takes even ~40 second for the data to be updated on the chart.
Not sure if this is an issue because it is running on a raspberry pi 4, if I run the program on my PC by generating random data it works just fine.
Does anyone have any experience with running B4J apps on a raspberry pi and have any suggestions or advice on how what to optimize to make the programs run smoother and faster please let me know.
Thanks,
Walter