Posts: 719
Threads: 64
Joined: Jan 2013
02-28-2013, 04:43 PM
(This post was last modified: 02-28-2013, 04:46 PM by bbrendon.)
I'm trying to set the default value of a variable in the variable driver using a CML macro, but it seems this class MEng.System.CQC.Runtime.CQCDriverBase isn't available? Any ideas?
I see there is SendDrvCmd using actions, but I don't like actions... well, except for the RunMacro action
Thanks
--Kill all the serial ports--
Posts: 40,483
Threads: 491
Joined: Aug 2002
Not currently. It's near the top of the list and in the group of fairly small things to try to slip in at some point here between larger things. Also user action triggers as well.
Dean Roddey
Explorans limites defectum
Posts: 40,483
Threads: 491
Joined: Aug 2002
Oh, wait, what am I talking about? The SimpleFldClient class allows you to send a driver command, and to query driver text.
Dean Roddey
Explorans limites defectum
Posts: 719
Threads: 64
Joined: Jan 2013
I finally went back to this. Money!
m_FldIO.SendDrvCmd("varDrv","SetFldDefault",FieldName);
I think you mentioned or I read somewhere that the defaults won't be noticeable in the GUI (variable browser) until the CQC service restarted, which based on my tests is true.
THanks for the tip!
--Kill all the serial ports--
Posts: 40,483
Threads: 491
Joined: Aug 2002
Well, not the service restarted, just the next time that the client interface is loaded. It's just that the client interface doesn't get told about this configuration change (as opposed to field value change) when it's made behind his back.
Dean Roddey
Explorans limites defectum