nuSolve documentation page 70 last line says
"config.useDelayType = CFG.VD_GRP_DELAY;"
But "Table 8.7: Properties of metaobject CFG." list "VlbiDelayType", and not "useDelayType". Which one is correct?
Experimenting, it seems it should be "useDelayType" and "useRateType"; trying with "VlbiDelayType" or "VlbiRateType" returns "undefined". So I suspect the table 8.7 is wrong?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Eskil,
"useDelayType" is a member of "config", it can take values of type "VlbiDelayType" which are VD_NONE, VD_SB_DELAY, VD_GRP_DELAY and VD_PHS_DELAY (as they are listed in the table).
So, you can write in a script:
config.useDelayType = CFG.VD_GRP_DELAY
or
config.useDelayType = CFG.VD_SB_DELAY
and so on.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I understand. But the problem was another thing, in documentation. Sorry I was unclear.
Problem is: documentation table Table 8.7 writes "VlbiDelayType". But it should be "useDelayType"
Right?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
No. VlbiDelayType is a type, like int, char or enum, that can get the values from the table.
useDelayType is a member of "config" object. This member is of type "VlbiDelayType". So it is ok to write config.useDelayType = CFG.VD_SB_DELAY, or something like that. The table 8.2 lists members of CFG (they are called "properties" as in Java script) and their types.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Experimenting, it seems it should be "useDelayType" and "useRateType"; trying with "VlbiDelayType" or "VlbiRateType" returns "undefined". So I suspect the table 8.7 is wrong?
Eskil,
"useDelayType" is a member of "config", it can take values of type "VlbiDelayType" which are VD_NONE, VD_SB_DELAY, VD_GRP_DELAY and VD_PHS_DELAY (as they are listed in the table).
So, you can write in a script:
config.useDelayType = CFG.VD_GRP_DELAY
or
config.useDelayType = CFG.VD_SB_DELAY
and so on.
I understand. But the problem was another thing, in documentation. Sorry I was unclear.
Problem is: documentation table Table 8.7 writes "VlbiDelayType". But it should be "useDelayType"
Right?
No. VlbiDelayType is a type, like int, char or enum, that can get the values from the table.
useDelayType is a member of "config" object. This member is of type "VlbiDelayType". So it is ok to write config.useDelayType = CFG.VD_SB_DELAY, or something like that. The table 8.2 lists members of CFG (they are called "properties" as in Java script) and their types.
Ah, I see. Thank you for explaining.