Hello,
I'm a student who is doing thesis about electrical vehicle monitoring system in labview. I'm collecting analog measurement data from usb-6009, transfer it over daq assistant and use state machine inside while loop to do monitoring process.
So, I have one state which determines sampling frequency of the loop cycle, and I've made able to change this rate in values of 0.1, 1 and 5 Hz. I've realised it with Elapsed Time Express VI which is in loop but outside case structure for states. I'm setting frequeny rate in Elapsed Time "Time Target" input, And the boolean "Time has elapsed" output goes to the case structure, which changes to the next state when the time runs out. In the next state it resets the Elapsed Time and the cycle starts from the beginning.
So, everything works fine until I see in my log file (txt file where I save the measurement values) that it made on the frequency of 5 Hz only 3 or maximum 4 samples per second.
I have pretty good computer with i7 processor and 8 gb of ram.
What could be the problem?
In the picture below it can be seen how I realised this with timer.
Thank you in advance.
Matej