EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: How to perform Loop in VDCT
From: "Dalesio, Leo" <[email protected]>
To: priya tiwari <[email protected]>, "[email protected]" <[email protected]>
Date: Thu, 13 Nov 2014 12:38:47 +0000
Look at the operations that can be done in a CALC record. There is a C "?" operation. You can use that as an if/then/else to get the condition. YOu can use an output record to stop the loop from running - or a disable of the root record.


From: [email protected] [[email protected]] on behalf of priya tiwari [[email protected]]
Sent: Thursday, November 13, 2014 1:51 AM
To: [email protected]
Subject: How to perform Loop in VDCT

How to perform "for loop" in VDCT?
I want to try this  program in VDCT .
float avg;
int sum=0;int i,j;
for (i=0;i<20;i++)
{
for(j=0;j<10;j++)
{
if(j%2==0)
{
sum=sum+100;
}
else
{
diff=-100;
}
avg=(sum+diff)/10;
printf("%f",avg);
}
}

what type of record and field is used for this program in VDCT?
please provide me solution?
Thanks in advance......


References:
How to perform Loop in VDCT priya tiwari

Navigate by Date:
Prev: How to perform Loop in VDCT priya tiwari
Next: autosave fdbrestore Pearson, Matthew R.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: How to perform Loop in VDCT priya tiwari
Next: RE: How to perform Loop in VDCT Mooney, Tim M.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 17 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·