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  2014  2015  <20162017  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  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: testAsynPortDriver questions
From: Mark Rivers <[email protected]>
To: Silver <[email protected]>, tech-talk <[email protected]>
Date: Tue, 17 May 2016 03:35:25 +0000
> I found in testAsynPortDriver.cpp file, there is a function like this:
> void simTask(void *drvPvt) ,but I can’t find where is called?  what's the usage of this function?

That function is the background thread that runs the simulation.  It is called from the constructor in this call:

    /* Create the thread that computes the waveforms in the background */
    status = (asynStatus)(epicsThreadCreate("testAsynPortDriverTask",
                          epicsThreadPriorityMedium,
                          epicsThreadGetStackSize(epicsThreadStackMedium),
                          (EPICSTHREADFUNC)::simTask,
                          this) == NULL);

> Another question, there is a parameter named as “Vert gain”, seems it’s used to convert volt’s unit to mv, am I right?
> thanks a lot for your help.

It is used to set the gain of the vertical signal, like setting what type of scope probe (1X, 10X, 100X) is used on a real scope.  However, I just noticed that changing this value does not change the display until you then process the VoltsPerDivSelect PV.  You can select the same VoltsPerDivSelect menu choice, then the display will change to reflect the current VertGainSelect.

Mark



________________________________
From: [email protected] [[email protected]] on behalf of Silver [[email protected]]
Sent: Monday, May 16, 2016 10:16 PM
To: tech-talk
Subject: testAsynPortDriver questions

hi,

I found in testAsynPortDriver.cpp file, there is a function like this:
void simTask(void *drvPvt) ,but I can’t find where is called?  what's the usage of this function?
Another question, there is a parameter named as “Vert gain”, seems it’s used to convert volt’s unit to mv, am I right?
thanks a lot for your help.




________________________________
Best wishes
Geyang 2016-05-17




References:
testAsynPortDriver questions Silver

Navigate by Date:
Prev: testAsynPortDriver questions Silver
Next: Call for contributions to talk on EPICS v4 White, Greg
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: testAsynPortDriver questions Silver
Next: Call for contributions to talk on EPICS v4 White, Greg
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 15 Jul 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·