Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Possible to call something like SendDrvCmd from CML macro?
#1
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 Smile

Thanks
--Kill all the serial ports--
Reply
#2
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
Reply
#3
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
Reply
#4
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--
Reply
#5
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Dynamically Build Call to Variable? gReatAutomation 8 2,085 05-08-2020, 01:22 PM
Last Post: gReatAutomation
  SendWOL from Macro dlmorgan999 4 2,021 04-25-2020, 08:12 AM
Last Post: dlmorgan999
  Set value via HTTP Call simplextech 2 1,203 01-07-2020, 04:39 PM
Last Post: simplextech
  Question on Parsing a String in a CML Macro kblagron 2 1,592 06-18-2019, 06:21 PM
Last Post: Dean Roddey
  Macro is not running potts.mike 1 1,810 06-29-2017, 09:55 AM
Last Post: Dean Roddey
  CML macro editor shortcut problem dlmorgan999 3 3,438 12-19-2016, 07:35 PM
Last Post: dlmorgan999
  macro Ron Haley 10 5,236 10-26-2016, 12:40 PM
Last Post: Dean Roddey
  1-way HTML/CML Macro questions IVB 15 7,377 05-08-2016, 07:49 AM
Last Post: Dean Roddey
  Macro to trigger a relay zra 5 3,173 05-02-2016, 11:02 AM
Last Post: zra
  Telnet Macro zra 5 2,665 02-14-2016, 08:03 AM
Last Post: zra

Forum Jump:


Users browsing this thread: 1 Guest(s)