Sorry for the noise - again.
-------
A single sseq record from synApps could also do the job.
Alternatively, using standard records, you can use a sel record
firing one of a set of constant stringout records that all point to
the same EGU field.
SNL seems a bit too big a cannon....
~Ralph
On 26/03/2015 13:48, Arnold, Ned D.
wrote:
You could use the scalcout record from
synApps or a state notation (SNL) program ...
Ned
Hi
Below I have a few records and would like to know how I
can set value for "$(dev):trueval"'s
EGU.
This text changes according to what the range is at the
moment.
So for example, if I call "calcrange2" , I need to set
"$(dev):trueval.EGU" to "mA" or
"calcrange4"
, I need to set "$(dev):trueval.EGU" to "uA" etc....
Any help would be appreciated.
record (dfanout, "$(dev):checkrange")
{
field(OUTA, "$(dev):calcrange1 PP")
field(OUTB, "$(dev):calcrange2 PP")
field(OUTC, "$(dev):calcrange3 PP")
field(OUTD, "$(dev):calcrange4 PP")
field(OUTE, "$(dev):calcrange5 PP")
field(OUTF, "$(dev):calcrange6 PP")
field(OUTG, "$(dev):calcrange7 PP")
field(OUTH, "$(dev):calcrange8 PP")
field(SELL, "$(dev):range")
field(SELM, "Specified")
}
record(acalcout, "$(dev):calcrange1")
{
field(DTYP, "Soft Channel")
field(INPA, "$(dev):rawval")
field(INPB, "$(dev):range")
field(INPC, "$(dev):offsetR1")
field(INPD, "10.0")
field(OOPT, "Every Time")
field(DOPT, "Use CALC")
field(CALC, "B==1?((A-C)/32767.2) *
D:A")
field(OUT, "$(dev):trueval PP")
}
record(acalcout, "$(dev):calcrange2")
{
field(DTYP, "Soft Channel")
field(INPA, "$(dev):rawval")
field(INPB, "$(dev):range")
field(INPC, "$(dev):offsetR1")
field(INPD, "10.0")
field(OOPT, "Every Time")
field(DOPT, "Use CALC")
field(CALC, "B==2?((A-C)/32767.2) *
D:A")
field(OUT, "$(dev):trueval PP")
}
record(ai, "$(dev):trueval")
{
field(DTYP, "Soft Channel")
field(EGU, " mA")
}
Thanks
Amien
Cape Town
|