09-25-2020 05:11 PM
Hello,
So I am trying to read multiple sensor readings at different rates and upload into a database. I have a sensor running at 1Hz and the other at .25Hz. The database should reflect 1 entry from sensor 2 for every 4 entries from sensor 1. This is not the case; the entries are 1:1. The baud rate is the same from each sensor, 9600. I think that the issue starts at how many bytes I am searching for at the terminal in my serial read, but what do I know.
This is my first post here, and I do not know if my subVIs will be contained in the file below. However, I do not think that they are necessary for my question.
09-25-2020 07:57 PM
Put all of your VIs and subVIs in a single folder (if you are using LabVIEW Project to organize your code, it may already be this way). Compress this folder and attach the resulting .zip file. There are various ways to handle acquisition at various rates, and various ways to write the data to files. Explain more (and better) and attach all of your code.
Bob Schor
09-28-2020 05:50 AM
From my experience you will run into synchronisation problem if not all of your devices are not stricly synchronised.
Each device run his own clock .. some faster , some slower... so sooner or later you run out of sync.
This holds for devices that are configured to send messages continously, or that work close at theire update rate.