Hi,
I wrote a program which works as follows.
A Temperature Acquisition Hardware sends me information via RS232 at exactly 4Hz.
An MRI scanner sends me a sync pulse every 3 seconds to coordinate my software with the MRI, via a 4350 Digital I/O card.
My program records all the temperature data, the time of each sync
pulse, and the value of a slider bar controller by a user (using
keystrokes 1 and 3) and writes it to file.
Here is my program:
http://www3.sympatico.ca/labuda/PhaseII.llb
I don't expect anyone to understand what is going on, but can anyone
tell me why this program sometimes works, and sometimes acts really
sluggish, and therefore misses some of the sync pulses from the scanner
(which are 1 second long, 3 seconds apart). The system resources are
always 99% allocated to Labview, even though this program is not very
complicated. The temperature data are buffered, so i get all of them,
but the timing between them varies. Sometimes the buffer piles up for a
few seconds and then gets recorded quickly.
The computer in question is a new Toshiba (1 month old), running only
labview 7.1. So there should be absolutely no hardware limit.
As a test, I made a VI with one while loop and a stop button. Simple,
but labview then hogs 99% of the cpu processing. Is this normal?
Can anyone tell me if there is anything immediately obviously wrong
with my program? Any suggestions on solving this problem would be very
appreciated.
Thanks
Aleks.