XMC python modules used in example scripts
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎10-16-2018 05:36 PM
Hello,
often in the XMC example scripts functions from the module "xmclib" or "device" are used.
Is there a documentation what functions are included, what parameters can be send and what returnvalues can be used?
If there is no documentation, is there a way to access the source code to find out what the functions can do?
It would be helpfule to use the existing code and not do reinvent the access to functions like "logger"
Here an example from XMC:
#@MetaDataEnd
from xmclib import emc_vars
from xmclib import logger
from xmclib import cli
from device import api
Best regards
Stephan
often in the XMC example scripts functions from the module "xmclib" or "device" are used.
Is there a documentation what functions are included, what parameters can be send and what returnvalues can be used?
If there is no documentation, is there a way to access the source code to find out what the functions can do?
It would be helpfule to use the existing code and not do reinvent the access to functions like "logger"
Here an example from XMC:
#@MetaDataEnd
from xmclib import emc_vars
from xmclib import logger
from xmclib import cli
from device import api
Best regards
Stephan
Regards
Stephan
21 REPLIES 21
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎10-18-2018 03:43 AM
Hello Bharathiraja,
thank you for your answer. I am familiar with the XMC scripting tool and tasks and I know the content of the example scripts.
My question concerns the modules used in these examples. Especially the xmclib and the device module (the post above). In modules you can wrap function and classes to reuse these in other scripts.
The example scripts use these modules and I would like to use these, too. Therefore I have to know what functions are available and how can I use these functions (parameters and return values).
Best regards
Stephan
thank you for your answer. I am familiar with the XMC scripting tool and tasks and I know the content of the example scripts.
My question concerns the modules used in these examples. Especially the xmclib and the device module (the post above). In modules you can wrap function and classes to reuse these in other scripts.
The example scripts use these modules and I would like to use these, too. Therefore I have to know what functions are available and how can I use these functions (parameters and return values).
Best regards
Stephan
Regards
Stephan
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎10-18-2018 02:29 AM
Hi Sh,
I am not sure if this is your question.
1) select the script from task and if you go to content tab where we can see the complete code of script.
2) Some of the basic scripts are available in github under Netsight.
3) XMC help tab has steps for scripting and how to create and run.
Thanks,
Suresh.B
I am not sure if this is your question.
1) select the script from task and if you go to content tab where we can see the complete code of script.
2) Some of the basic scripts are available in github under Netsight.
3) XMC help tab has steps for scripting and how to create and run.
Thanks,
Suresh.B
