LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data Acquisition from multiple sources at different rates

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.

0 Kudos
Message 1 of 3
(1,406 Views)

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

0 Kudos
Message 2 of 3
(1,376 Views)

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.

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 3 of 3
(1,329 Views)