02-10-2015 07:02 AM
Hallo,
i am having trouble in clearing my graphs in the attachment . I tried invoking property node and reinitialised to default and also tried the clear indicators option under Vi properties . Both these options clear the graphs when i run the program,but when the values are plotted they continue from the previous iteration.
Kindly help with a solution .
Thanks and best regards,
02-10-2015 09:01 AM
Try initializing the shift registers in your loop. If you don't initialize the shift register, they retain their values for as long as the VI is in memory.
02-10-2015 09:09 AM
Hallo,
Thanks a lot for your reply.
I tried initialising the shift registers to 0 and there was no graph at all .
Thanks and best regards ,
02-10-2015 09:13 AM
Hi sridps,
your loop only runs once as you wired a "1" to the iteration count terminal. So your shift register will hold just one value when you initialize them with empty arrays…
You should
- remove local variables and use more wire
- think about state machines instead of giant sequence structures
- only initialize the shift registers once at start of your measurement
02-10-2015 02:27 PM
Hallo,
Thanks for your reply .
There is an outer while loop which makes the actual iteration and i actually collect the data the required number of times. For some reason it does not collect data multiple times without a for loop and it doesnt matter whether i give the for loop number as 1 or 10 . I still get the same result .
I have no experience with state machines . Maybe i should try them . But i have no idea why my graphs behave like this now .
Thanks and best regards
02-10-2015 02:37 PM
02-10-2015 02:40 PM
Hallo,
Thank you for your reply.
Kindly find attached the whole vi in my first post .
Thanks ans best regards
02-11-2015 01:58 AM - edited 02-11-2015 02:07 AM
Which VI? Where?
(In case of difficulties in uploading VIs you should read this thread…)
02-11-2015 06:51 AM
Hallo ,
i attached it in my first post . Maybe there is a problem . Kindly find attached the full vi in this post .
Thanks and best regards
02-13-2015 06:12 AM
Hallo,
Can you find the vi in the previous post ? Any help would be grateful .
Thanks and best regards,