12-12-2006 09:34 AM
hi Centrelbolt,
Actually first time I wrote the program using timed-loop and haven’t got chance to run it, but the program loop is identical from another successfully run program . OK I will try not to writing same I/O from different loop , why I did so because to stop fans when neither “Auto” nor “Manually” option is chosen (i.e. OFF condition) and at this stage I wanted to suppressed running condition of fans (even if wait to msec delay just starts counting) . ok I will try to do it differently.
Other thing is to avoid local and shared variable , yes I know I used a lot , and I really did not want it , but any trick to avoid this ? because in field point hard ware I have one 16-input DI-301 , one 8-input AI-100 , 2 8-channel RLY-421 relay out put modules. So there are lots of system status I have to monitor in the host program running on the host pc , and I have to generate alarm conditions depending on the temperatures or DI-301 values , that’s why I used shared and local variable , any tricks to avoid these variable or minimize atleast? This is my first project actually and I don’t have enough experience that’s why these silly problems are in my program.
You still have not replaced the "Wait mSec" vi with a sub vi that uses a timed loop.
Your mean I should not use timed-loop for calling VI and only sub VI should be timed loop? , if I used a while loop can I write several time within the loop?
Error clusters definitely I have to insert , but I thought in the beginning that once I will write this small program I should insert it. But I will do it right away ,
I could not test my program because the system is already running and I could not get chance to try this program.
I can send you sub-VI (the complete project if u want , but I wanted you to check the way I wrote the program is close to standard ? or the priority loop that I set is ok?
Once again thanks for taking out time. I will try to change program according to yr recommendations , any further suggestions in order to make it proper?
Regards
Fayasoft
12-13-2006 11:50 AM
Would you please take a look on the attached VI , Do you think so this one is better this time?
Other thing is If I have to transfer data from target (field point) to host VI , then to use shared variable should I insert another While loop with this one or I can use same while loop? Or what would u recommend to transfer data?
Can u suggest? What would u pick for deterministic loop in Reat time target VI , use a single timed loop or use a normal while loop with sub-VI as timed loop?
12-18-2006 07:02 AM
12-18-2006 04:26 PM
Hi Centrebolt ,
Thanks for reply. after i changed program according to your previous suggestions it is working better than before.
Thanks again
Fayasoft