Experimental Physics and Industrial Control System
|
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.
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
<2014>
2015
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
<2014>
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|
ANJ, 17 Dec 2015 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|