How to get the Device ID using IDL 8.6

Wednesday, December 21, 2016

Discussion:

In previous versions of IDL, users could use the LMGR function's LMHOSTID keyword to get the Device ID of the system on which it was running. This keyword is not available in IDL 8.6 and thus this method of getting the Device ID no longer works.

Solution:

A workaround to this issue is to use SPAWN and the "activate.exe" program with the "--deviceid" switch to get this information. An example how this can be achieved is shown below:

IDL> cd, "C:\Program Files\Harris\ENVI54\idl86\license_utils\bin.x86_64"
IDL> spawn, "activate --deviceid", out, err
IDL> print, out
{     "deviceID" : "JUNKJUNKJUNK",     "deviceIDType" : "FLC_HOSTID_TYPE_STRING",     "machineName" : "JUNKJUNKJUNK" } 

written by DS and reviewed by MM (12/21/2016) 

Rate this article:
5.0
Related Topics: Help Articles, IDL
Tags:

Number of views (370)/Comments (0)

1 comments on article "How to get the Device ID using IDL 8.6 "

0
0

renuka singh

1/5/2017 3:46 AM

This blog has lots of very useful information on it! Thanks for helping me.

paid link directory

Please login or register to post comments.

FEATURED HELP ARTICLE

ENVI 5.4 / IDL 8.6 Quick Start Install and Licensing Guide

12/6/2016

Below is a quick start guide to follow to download and activate your ENVI 5.4 and/or IDL 8.6 software once ... more »

MOST POPULAR



© 2017 Exelis Visual Information Solutions, Inc., a subsidiary of Harris Corporation