12-05-2006 02:03 AM
12-05-2006 02:36 AM
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
12-05-2006 03:22 AM
i would like 2... but there r simply to many files... lol... there r many sub vi attached 2 it... so i'm not sure if u can open it... mayb i can simplify the problem n hope u can visualise it.. hahaha...
ok... the main problem is i need 2 clear my loop when the button returns to false so that the array wont remain the same... if not i'll b saving the same data all the time... i wont get the latest update when i press the button... i understand from other post that shift register is needed 4 it 2 work... can u teach me how does this shift register work?? and is it possible 2 directly clear the data in the Array Subset that stored all my data??
thanx 4 helping out... ![]()
12-05-2006 03:57 AM
12-05-2006 04:03 AM
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
12-05-2006 05:25 AM
12-05-2006 05:59 AM
12-05-2006 01:03 PM
12-05-2006 07:50 PM
devchander:
sorry.. i am unable to open the vi as i am using 8.0... the example you gave me is in 8.2... anyway, still thanks for the help... ![]()
titou:
i've attached a screenshot of my vi... its rather messy.. hope you don't mind... i've added some comments to make it clearer too... hope it helps... anyway, just a brief of what i want to do... retrieve reading from sensor, loop through a single channel (for the time being 1 channel is enough...) to get the readings of all the sensors available.. put them all into an array and add them into SQL... on the right side is the calculation of the readings (dont need to bother about it..) gotten from the left array ... after that it'll be saved into another SQL table... after that the button will return to false... and when i press it again, the process will repeat... the problem i found out is from the top left hand loop... after saving the required data, it doesnt clear... so when i press the save button the second time, it adds on to the array (Example, first loops retrieves 250 readings... when i press the save button the second time, instead of starting from 0, it starts from 250.. making the size 500 instead of the intented 250...)... making it pass a false value on the bottom Case Structure (it only becomes true when the array size is 250, according to the example i said above)... thanks for all your time
... sorry for posting so late
...
becktho:
point taken note... i'll use proper english in this forum... sorry for any inconvenience caused...
12-05-2006 10:50 PM