How to get cpu id in labview

how can i get cpu id as a string in labview.
actually i am trying to make my VI computer specific .
so i need help is getting tthe cpu id in my vi
regards
Regards

thanks for the reply .....
but i can some one tell me how to get processor ID or mac adderss or hard disk serial number anything whihc i can use to make my vi run to sepcific computer
regards
Regards

Similar Messages

  • How to get CPU usage in the app?

    Is there any api that can get CPU usage through the code in an iphone app, thanks.

    Maybe you could use getloadavg():
    double la[3];
    getloadavg(la, 3);
    NSLog(@"%f - %f - %f", la[0], la[1], la[2]);

  • How to get CPU status in Java program

    Is there any way by which we can get CPU status in a java program ?
    Whats the load on the cpu, whats the max it can handle ? and stuff like that.
    Thanks in advance

    It's not that there's "no way" to do it in Java, nor that native code is required. However, it's a non-portable solution. If you find a solution that works on Linux (e.g. read the cpu info from /proc), it probably won't work on any other OS. Typically, these problems are solved by:
    1) Executing an external program and parsing the results
    2) Finding the required information in /proc (not on Windows, though)
    3) Writing some kind of JNI interface (again, OS-specific)
    Brian

  • V$osstat and V$SYS_TIME_MODEL - how to get CPU time from instance

    Hi there !
    I have a function osstat, which take stats from the os using v$osstat (credits for the procedure to a person, I regret to say, that I cant remember his name). But since we have 9 databases on the same server (and we dont have access to the server os itself (outsourcing stinks), we often would like to know more about cpu, waits etc. And one of the procedures we use is the osstat.
    I have tried to combine it with V$SYS_TIME_MODEL in oder to se how much of the OS CPU time comes from the instance I am on at the moment, but I'm not able to figure out how to do it exaclty.
    This is my code:
    DROP TYPE OSSTAT_RECORD;
    CREATE OR REPLACE TYPE osstat_record IS OBJECT (
      date_time_from TIMESTAMP,
      date_time_to TIMESTAMP,
      idle_time NUMBER,
      user_time NUMBER,
      sys_time NUMBER,
      iowait_time NUMBER,
      nice_time NUMBER,
      instance_cpu_time NUMBER
    DROP TYPE OSSTAT_TABLE;
    CREATE OR REPLACE TYPE osstat_table AS TABLE OF osstat_record;
    CREATE OR REPLACE FUNCTION osstat(p_interval IN NUMBER default 5, p_count IN NUMBER default 2, p_dec in number default 0)
       RETURN osstat_table
       PIPELINED
    IS
      l_t1 osstat_record;
      l_t2 osstat_record;
      l_out osstat_record;
      l_num_cpus NUMBER;
      l_total NUMBER;
      l_instance NUMBER;
    BEGIN
      l_t1 := osstat_record(NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
      l_t2 := osstat_record(NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
      SELECT value
      INTO l_num_cpus
      FROM v$osstat
      WHERE stat_name = 'NUM_CPUS';
      FOR i IN 1..p_count+1
      LOOP
        SELECT systimestamp, sum(decode(stat_name,'IDLE_TIME', value, NULL)) as idle_time,
               sum(decode(stat_name,'USER_TIME', value, NULL)) as user_time,
               sum(decode(stat_name,'SYS_TIME', value, NULL)) as sys_time,
               sum(decode(stat_name,'IOWAIT_TIME', value, NULL)) as iowait_time,
               sum(decode(stat_name,'NICE_TIME', value, NULL)) as nice_time
        INTO l_t2.date_time_to, l_t2.idle_time, l_t2.user_time, l_t2.sys_time, l_t2.iowait_time, l_t2.nice_time
        FROM v$osstat
        WHERE stat_name in ('IDLE_TIME','USER_TIME','SYS_TIME','IOWAIT_TIME','NICE_TIME');
        select value/100000
        into l_t2.instance_cpu_time
        from  V$SYS_TIME_MODEL
        where stat_name = 'DB time';
        l_out := osstat_record(l_t1.date_time_from, systimestamp,
                               (l_t2.idle_time-l_t1.idle_time)/l_num_cpus/p_interval,
                               (l_t2.user_time-l_t1.user_time)/l_num_cpus/p_interval,
                               (l_t2.sys_time-l_t1.sys_time)/l_num_cpus/p_interval,
                               (l_t2.iowait_time-l_t1.iowait_time)/l_num_cpus/p_interval,
                               (l_t2.nice_time-l_t1.nice_time)/l_num_cpus/p_interval,
                               ((l_t2.instance_cpu_time-l_t1.instance_cpu_time)/100));  --- >>  Should I divide by no of cpus here as well???  Or ???
        l_total := l_out.idle_time+l_out.user_time+l_out.sys_time+l_out.iowait_time+nvl(l_out.nice_time,0);
        if l_out.user_time > 0 then
           l_instance := (l_out.instance_cpu_time*100)/l_total;   ->> instance in percent of the total cputime
        else
           l_instance := 0;
        end if;
        if i > 1 then
        PIPE ROW(osstat_record(l_t1.date_time_to, systimestamp,
                               trunc((l_out.idle_time/l_total*100),p_dec),
                               trunc((l_out.user_time/l_total*100),p_dec),
                               trunc((l_out.sys_time/l_total*100),p_dec),
                               trunc((l_out.iowait_time/l_total*100),p_dec),
                               trunc((l_out.nice_time/l_total*100),p_dec),
                               trunc(l_instance,p_dec)));
        end if;
        l_t1 := l_t2;
        sys.dbms_lock.sleep(p_interval);
      END LOOP;
      RETURN;
    END;
    /I get ie a USER CPU Time of 15% fo a given interval of 5 mins - and a cputime for the instance of 50 - and others are 5% and 1%.
    My brain has stopped working now .... I'm stuck
    Mette

    mettemusens wrote:
    Hi there !Duplicate thread:
    Re: v$osstat and V$SYS_TIME_MODEL question
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • How to get CPU type?

    How do i determine the CPU type of a local computer?
    I am trying to launch a runtime process, but the executable is tuned for the cpu. the executables are tuned for the cpu from the gcc docs:
    http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html
    What would be the best way to approach this situation? As far as i know java doesnt have any way of returning a CPU type

    perfect. thank you guys a bunch.
    this is my code so far to get the Family and Model which so far works in linux and windows.
    any suggestions for mac? i'm going to test out the system environment variables but i doubt it will be there
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.util.Map;
    public class CPU {
        private final String os = System.getProperty("os.name");
        public static void main(String[] args) {
            CPU c = new CPU();
            System.out.println("Family: " + c.getFamily());
            System.out.println("Model: " + c.getModel());
        public int getFamily() {
            if (os.startsWith("Windows")) {
                Map<String, String> env = System.getenv();
                String pid = env.get("PROCESSOR_IDENTIFIER");
                return Integer.parseInt(pid.substring(pid.indexOf("Family ") + 7, pid.indexOf(" Model")).trim());
            } else if (os.equals("Linux")) {
                String[] command = {
                    "cat",
                    "/proc/cpuinfo"
                ProcessBuilder pb = new ProcessBuilder(command);
                try {
                    Process p = pb.start();
                    BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream()));
                    String line = br.readLine();
                    while (line != null) {
                        if (line.startsWith("cpu family")) {
                            return Integer.parseInt(line.substring(line.indexOf("cpu family\t: ") + 13).trim());
                        line = br.readLine();
                } catch (IOException e) {
                    e.printStackTrace();
            return 0;
        public int getModel(){
            if (os.startsWith("Windows")) {
                Map<String, String> env = System.getenv();
                String pid = env.get("PROCESSOR_IDENTIFIER");
                return Integer.parseInt(pid.substring(pid.indexOf("Model ") + 6, pid.indexOf(" Stepping")).trim());
            } else if (os.equals("Linux")) {
                String[] command = {
                    "cat",
                    "/proc/cpuinfo"
                ProcessBuilder pb = new ProcessBuilder(command);
                try {
                    Process p = pb.start();
                    BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream()));
                    String line = br.readLine();
                    while (line != null) {
                        if (line.startsWith("model")) {
                            return Integer.parseInt(line.substring(line.indexOf("model\t\t: ") + 9).trim());
                        line = br.readLine();
                } catch (IOException e) {
                    e.printStackTrace();
            return 0;
    }

  • M30X-118: How to get CPU temperature?

    Hi,
    I'd like to ask how can I get a cpu temperature reading within Windows XP.
    I've tried some utilities like MotherBoard Monitor and MobileMeter but they show nothing. In MobileMeter I get only the cpu Frequency and HDD temp.
    Any ideas?
    Thanks in advance

    well.. diapointment..
    after some thinking and observing I found out that the temperature cpucool reads is HDD temperature.. NOT cpu temperature..
    it seems there is no sensor for CPU..
    PC Wizard 2005 confirms that sensor readout is HDD sensor..

  • How to get cpu and memory information by Java?

    I'm trying to write a java program to get the CPU and memory information and statistic of a desktop computer. Is it possible to capture this kind of information by Java, if yes, which classes are used?
    Thanks a lot.

    You can get memory info about the VM and not about the OS.
    These things are inherently OS-dependent. Chances are bad there is a (pure) Java solution for this.

  • Need instructions on how to get Quanser working with LabView 7.1

    I need information on what LabView modules or addins to install in order to run Quanser (QNET Experiments release 2.2).  LabView 7.1 is loaded but we also have LabView 7.0 if needed.

    Hello JND,
    The Quanser website indicates that the QNET products are fully
    compatible with LabVIEW and NI Elvis. However, I could not find more
    information on any drivers they provide for LabVIEW, so I suggest you
    contact them directly about this. If they have drivers written for
    LabVIEW, that should be enough to communicate with the board from
    LabVIEW. In order to communicate to NI Elvis, you need to install
    NI-DAQmx and NI ELVIS drivers available at this page.
    Good luck and best regards,
    Shakhina P.
    Applications Engineer
    National Instruments

  • How to get a windows-created labview file to work on a mac

    I'm trying to open a pretty simple data acquisition vi that was written on Labview 2009 for Windows, using the USB 6211 hardware. I've installed Labview 2010 for Mac OS X (full) with NIDAQMX-base for MAC. The problem is that none of the DAQMX sub-vi's are opening properly. I think it's because they have different names, e.g. in windows labview "DAQmx Create Channel" now becomes "DAQMXbase create channel" or something like that. What is the problem? Have I installed the wrong DAQMX for Mac OS X? 
    Solved!
    Go to Solution.

    Hello oilyfingers,
    As other users have posted, DAQmx Base and DAQmx are two different drivers.  It is recommended that Windows users install DAQmx on their PC.  However, a version of DAQmx Base is also available for the Windows environment.  Your VI should need less changes after installing this driver.
    NI DAQmx Base 3.4: http://joule.ni.com/nidu/cds/view/p/id/2126/lang/en
    If you do not want to install DAQmx Base on the Windows PC, there is a conversion utility which should help automate the conversion of your VI from DAQmx Base to DAQmx code.  This can be found in the link below:
    Conversion Utility: http://joule.ni.com/nidu/cds/view/p/id/446/lang/en
    As smercurio_fc suggested, submit your interest for and update DAQmx version of Mac OS X in the Ideas Exchange.  In LabVIEW 2010, over 10 different user suggestions were implemented from the Ideas Exchange.
    Regards,
    George T.
    Applications Engineering Specialist
    National Instruments UK and Ireland

  • How to get CPU and HD information of host computer in run-time

    Are there any vis that will return the information of the CPU and Harddisk information of the host computer? I would like to acquire the information when the program is running. thanks

    Look here
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • AIR getting CPU usage

    Does anybody knows how to get CPU Usage from AIR?
    I got it by Native Process listening to a Console Executable that gets info from WMI, but this process consume 25% from my CPU!!!
    Any help will be welcome.

    You can use >sar<
    Usage:
    $sar 2 10
    where 2 means it will check cpu usage every 2 seconds and 10 means it will check the CPU usage 10 times.
    So this query will run for 20 seconds......
    and if you want to see the CPU usage at a particular time by different ORACLE modules like buffer gets, physical reads etc...... then run statspack it will show all the details

  • Get CPU and Hard Disk nuber

    Hi Friends,
    How to get CPU number it mean Mother bord nuber and Hard Disk number..?
    Plz any body know then tell me.
    Thank you,

    JNI = Java Native Interface
    Using JNI you can call platform-specific code, for example code written in C or C++ in a Windows DLL. You'll have to write some C or C++ code that does the things you want ("get the harddisk number, motherboard number, ...") and call that C or C++ code from your Java code via JNI.
    How you get the "harddisk number" or "motherboard number" in your C/C++ code is a different question that you have to consult the documentation of your operating system for.
    Ofcourse you'll need a C/C++ compiler to compile your C/C++ source code into a library that can be called via JNI.

  • How to get data from a USB-UIRT device using Labview?

    How to get data from a USB-UIRT device using Labview?
    I'm trying to get data from a USB-UIRT device, is it posible with Labview?
    I really appreciate your help, 
    thanks

    You may want to contact the developer of the device for the API and DLL.
    http://65.36.202.170/phpBB2/viewforum.php?f=3

  • I want to use Get Panel Image in Labview 5.0.1 and need details on how to save the BMP data generated

    I am trying to generate an application that saves a copy of its front panel on completion. This is easy to do using an invoke node with Print VI to HTML but this does not work in an .exe format. I have seen elsewhere that you have to use the Get Panel Image method, but no details are supplied in LV 5.0.1 documentation of how to use the "image" data (1-D Unsigned Byte array) that is generated. I want to save this in a format that can then be read as a bitmap in any standard graphics package. Any assistance?

    Hi,
    If you'd upgrade to LV5.1 or 6 you could use the 'standard' vi's for this.
    You need a VI called "Write BMP File.vi". It's not shipped with LV5.0.1.
    This vi only uses 3 subVI's, so perhaps someone at NI can convert it and
    send it to you (sorry, I won't, it's copywrited).
    If you cannot get this VI anywhere, you'll need to figure out the BMP file
    format yourself. It's not too complicated, but still could take some days.
    Perhaps someone figured it out before LV5.1 was released.
    Regards,
    Wiebe.
    "RDK" wrote in message
    news:[email protected]..
    > I want to use Get Panel Image in Labview 5.0.1 and need details on how
    > to save the BMP data generated
    >
    > I am trying to generate an application that saves a copy
    of its front
    > panel on completion. This is easy to do using an invoke node with
    > Print VI to HTML but this does not work in an .exe format. I have seen
    > elsewhere that you have to use the Get Panel Image method, but no
    > details are supplied in LV 5.0.1 documentation of how to use the
    > "image" data (1-D Unsigned Byte array) that is generated. I want to
    > save this in a format that can then be read as a bitmap in any
    > standard graphics package. Any assistance?

  • How to get computer ID programmatically in LabVIEW

    Hi all,
    I wish to know how to get the unique computer ID of a PC using LabVIEW. I need to acquire it to provide some kind of securinty to my labview based application. Please help.
    Regards,
    Giridhar Rajan
    Automation Engineer, Design
    Cruiser Controls
    Mumbai, India

    There are many threads here already on this subject.
    Search for the term 'Mac address' you will get over 122 results most of them on the subject of security.
    and try the following specific post
    http://forums.ni.com/ni/board/message?board.id=170&message.id=102353&query.id=23683#M102353
    look for the notes by Enrique
    You could of course buy a hardware key as well....

Maybe you are looking for

  • Is there a way to create a temp table each time someone hits a procedure?

    I am creating a procedure in Oracle 10g to take data from Oracle to be put in a cognos report. The problem with creating a perminent table is that several people will be running this report at the same time, which means the procedure will be run each

  • Error while running pw_agent_util.sh -create on golden gate instance

    ./pw_agent_util.sh -create Please create a password for Java Agent: Exception in thread "Thread-2" java.lang.NoClassDefFoundError: java.util.concurrent.TimeUnit at com.goldengate.wallet.PasswordMasker$StreamMasker.run(PasswordMasker.java:204) at java

  • Error while posting Goods issue for the reservation

    Hi, I am getting an error while trying to post the Goods Isuue for the reservation using MIGO transaction. The error is 'Level AR belongs to cash position (source symbol PSK)'. Please help me in solving this if anyone has any idea, let me know what a

  • Half day processing of Leave raised from ESS

    Hi , We have the a problem in leave request  from ESS EP7 (ERP2005) How to allow half a day processing of leave request? even if i enter 4 hours in the duration field the system takes 8 hours but when i do the same from PA30 it is ok. kindly give you

  • Parameters not saving

    Just purchased new machine with Snow Leopard.  Now parameters are not being saved, e.g.:  window placement, mail preferences, safari bookmarks, and on and on.  Anyone have ideas?