====== Get_Sysinfo routine ====== ==== Description ==== Retrieves critical system information, such as the OpenInsight serial number, the station ID, and the maximum number of users, from Open Engine. ==== Syntax ==== Get_Sysinfo(//)// ==== Returns ==== The following information is returned, in a tab delimited variable if using the [[receiver|System Receiver property]] of an edit box, or separated by commas if run from the System Monitor: ^Field Number^Description^ |1|Database ID| |2|Username| |3|User level| |4|OpenInsight Serial Number| |5|OpenInsight Version| |6|CPU Type| |7|Math Coprocessor (0 = none, 1 = coprocessor installed)| |8|n/a| |9|n/a| |10|Network Identifier| |11|Station ID| |12|Maximum number of users| Note: Since Get_Sysinfo() is a routine, the result is not returned directly to the calling routine. However, by setting the System Receiver property of an edit box, the result can be returned in a window context. See the example below. ==== See Also ==== [[serial|Serial()]], [[rti_getnetworkusername|RTI_GetNetworkUserName()]], [[receiver|Receiver property]] ==== Example: ==== Returning System Information Using the System Monitor: Enter the following: RUN GET_SYSINFO This will display system information delimited by commas. Returning System Information from a Window: /* Create a window with an edit box named EDITBOX_RESULTS. If you don't want the edit box to display, uncheck the visible property. Then create a button and place this code in the CLICK event of the button. The code below will save system information as a field mark delimited array in an operating system file named C:\SYSINFO.TXT.\ */ Set_Property ("SYSTEM", "RECEIVER", @window: ".EDITBOX_RESULTS") Set_Property (@window: ".EDITBOX_RESULTS", "TEXT", "") get_sysinfo() system_info = Get_Property (@window: ".EDITBOX_RESULTS", "TEXT") convert char(9):char(13):char(10) to @fm in system_info OSWRITE system_info on 'C:\sysinfo.txt' * reset the receiver property to null. Set_Property ("SYSTEM", "RECEIVER", "")