Hello
First of all thanks for all your precious advices.I have corrected the problem with dynamic data type. However the code is sitll not performing the desired function. Again I think it would be prudent enough to mention the goal of this program.
This program has to report pressures at 2 different locations through two sensors connected to 2 channels 0 and 1 of a SCXI-1121 module, and simultaneously write data to a file.
Now here's the catch:
When writing data it has to start according to a valve which excites itself to 1V when opened. SO I have a third channel measuring voltage at the valve. The valve gives out voltage > 1 only for a fraction of a second and again shuts of. As soon as this impulse reaches the channel The program should start writing and continue writing till stop button is pressed without concerning itself with the voltage after the impulse. But sadly that is not happening in the program. What's happening is that:
The program starts writing after voltage is greater than 1V and stops as soon as voltage falls down.
Kindly mention the faws i have, which are preventing me from getting to the result
Thanks in advance
Vaib