Dear LabVIEW users,
Greetings for everyone. I am a beginner of LabVIEW and I have a problem, which I have solved partially. I would really appreciate your help and suggestions as I searched for days without any luck. The problem is as following:
I am acquiring AI voltage (continous) from 4-8 accelerometers. At the same time, I am sending a digital output signal each time when the sample rate is clicked (i.e. 1000, 2000, 3000, .... if sampling rate is 1000). In other words, trying to send a digital output signal (at some frequency 'n' Hz) at regular 1 second interval (according to hardware level). So that the digital output signal will blink an LED at every one second. Further, I need to write the AI (voltage) signals, and LED blink PC (software) timestamps separately. All the above said steps are followed in my .vi program but the real hardware/software level operations are killing my timestamps. In other words each LED blink timestamps are not accurate when I use LabVIEW measurement file express VI (difference is not atleast to the third decimal place). In addition, the timestamping is somewhat OK when I disable the LVM file write VI. Onemore thing I noticed is that, physically LED blinks every two second once, I suspect this is due to the shift register and loop delay of second. Is there a way to control the blink speed (i.e. boolean state has to change at every 500ms without delaying the inner while loop).
Results and observations:
LabVIEW 2011 .vi, timestamp files with and without LVM file generator (express VI) are all attached. Please note that there is a considerable amount of drift in consecutive timestamps when LVM file generator is used, on the other hand there is 0.001 ms drift when LVM file generator is not used. The reason for PC timestamps are to roughtly align different measurements or observations or events in global time scale.
Please give me any suggestions or help me to make it atleast accurate for milliseconds within the witten VI. Lastly, is there any relatively inexpensive USB DAQ module which can send a pulse to directly from pulse channel to digital output channels when sample rate of 'n' Hz is achieved by hardware level which could be every accurate, so that software delay is fully minimized. Although there are highly sophistiated hardwares from NI, but our goal of this project is to build and test cost effective system.
Thank you and I really appreciate your inavluable time and effort. Have a great weekend!