Jump to content
  • 0

Universal Library Version


Question

Posted

Hello,  

Is there a python method to return the version number of installed Universal Library. I'm using a Windows environment.  

Thanks 

1 answer to this question

Recommended Posts

  • 0
Posted

Hi @TonyD,

To return the UL version number in Pythn, you use the get_config() library call.

Download this version of the UL Help:  https://www.mccdaq.com/pdfs/manuals/Mcculw_WebHelp/ULStart.htm

Click on Contents of not already selected.

Then go to Universal Library Function Reference >> Python for Windows  >> Configuration functions  >> get_config()

there you will find the Prototype:

get_config(info_type, board_num, dev_num, config_item)

info_type = GLOBALINFO

board_num = 0

dev_num is ignored

config_itenm = VERSION

Returns the specified configuration item.  so you'll need to preface the function call with something akin to:

my_version = get_config( GLOBALINFO, 0, 0, VERSION)

Regards,

Jeffrey

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...