Calculate RPM using NI 9402

I'm looking for my first simple Labview DAQ project, if I am more comfortable with Signal Express.

My torque sensor has a +/-5V, output speed 60 pulses/turn. The speed will be up to 200 rpm, so I myself turned to a NI 9402 module high speed IO digital for my CompactDAQ chassis. When I used DAQ Assistent to configure the meter, he said that there is no device supported found. Is there a code that is easy to calculate shaft rpm with the 9402 configured as a digital input?

Thank you

You use a cDAQ-9172 chassis?  If so, your NI 9402 must be in the location 5 or 6 to use any feature of the meter.  This restriction does not exist for the new chassis.  Try to move the module to one of these slots.  You should now be able to select channels of meter using the DAQ Assistant.

Tags: NI Software

Similar Questions

  • Calculate the use of operating rooms

    I received this question in an e-mail.

    I will post it here, as well as my own answer-, so that other people with the same problem can find and learn, and that responses can be given (here there are smart people who might have alternative solutions of large .)

    Here's the post with the question:

    ------------------------------------------

    Hi Kim,

    I'm stuck in a SQL query.

    I want to calculate the use of operating rooms. follwing is my data structure

    create the table room_usage
    (in_time DATE,
    out_time DATE,
    mr_no VARCHAR2 (15).
    room_no, NUMBER (3));

    insert into room_usage
    values
    (to_date('11-Feb-15 8:33:00 AM', 'dd-mon-rr hh:mi:ss am'),
    to_date('11-Feb-15 10:17:00 AM', 'dd-mon-RR hh:mi:SS am'),
    '00052740',
    733);
    insert into room_usage
    values
    (to_date('11-Feb-15 10:56:00 AM', 'dd-mon-rr hh:mi:ss am'),
    to_date('11-Feb-15 12:36:00', 'dd-mon-RR hh:mi:SS am'),
    '00111780',
    733);
    insert into room_usage
    values
    (to_date('11-Feb-15 12:56:00 PM', 'dd-mon-rr hh:mi:ss am'),
    to_date('11-Feb-15 2:46:00 PM', 'dd-mon-RR hh:mi:SS am'),
    '00111777',
    733);
    insert into room_usage
    values
    (to_date('11-Feb-15 3:02:00 PM', 'dd-mon-rr hh:mi:ss am'),
    to_date('11-Feb-15 6:12:00 PM', 'dd-mon-RR hh:mi:SS am'),
    '00052713',
    733);
    insert into room_usage
    values
    (to_date('11-Feb-15 6:51:00 PM', 'dd-mon-rr hh:mi:ss am'),
    to_date('11-Feb-15 7:57:00 PM', 'dd-mon-RR hh:mi:SS am'),
    '00052760',
    733);
    insert into room_usage
    values
    (to_date('12-Feb-15 8:51:00 PM', 'dd-mon-rr hh:mi:ss am'),
    to_date('12-Feb-15 9:57:00 PM', 'dd-mon-RR hh:mi:SS am'),
    '00082760',
    733);

    Select IN_TIME, OUT_TIME, (OUT_TIME - IN_TIME) * 24 * 60 stay, MR_NO, ROOM_NO
    of room_usage
    When trunc (IN_TIME) between February 11, 15 'and 12 February 15'
    order of in_time


    in_time out_time stay_min mr_no room_no

    11 February 15 08:33 11 February 15 10:17 104 00052740 733
    11 February 15 10:56 11 February 15 12:36 100 00111780 733
    11 February 15 12:56 11 February 15 14:46 110 00111777 733
    11 February 15 15:02 11 February 15 18:12 190 00052713 733
    11 February 15 18:51 11 February 15 19:57 00052760 733
    12 February 15 20:51 12 February 15 21:57 00082760 733

    But I also want to get time slots to USE NOT. This is the result I want

    in_time out_time stay_min mr_no room_no

    11 February 15 12:01:00 AM February 11, 15 08:32 511 no use of 733
    11 February 15 08:33 11 February 15 10:17 104 00052740 733
    11 February 15 10:18 11 February 15 10:55 37 no use of 733
    11 February 15 10:56 11 February 15 12:36 100 00111780 733
    11 February 15 12:37 February 11, 15 12:55 18 no use of 733
    11 February 15 12:56 11 February 15 14:46 110 00111777 733
    11 February 15 14:47 11 February 15 15:01 14 no use of 733
    11 February 15 15:02 11 February 15 18:12 190 00052713 733
    11 February 15 18:13 February 11, 15 18:50 37 no use of 733
    11 February 15 18:51 11 February 15 19:57 00052760 733
    11 February 15 19:58 11 February 15 23:59 241 no use of 733

    How can I get that.

    A problem like this is easy to solve with the model clause:

    Select in_time, out_time, round ((out_time-in_time) * 24 * 60) stay_min, mr_no, room_no
    of room_usage
    model
    partition (room_no, trunc (in_time) d)
    dimension (row_number() on rn (partition room_no, trunc (in_time) order of in_time))
    measures (in_time, out_time, mr_no)
    rules iterate (1000) until (presentv (in_time [iteration_number + 1], 1, 2) = 2)
    (in_time [iteration_number + 0.5] = presentv (out_time [iteration_number], [iteration_number] out_time, trunc (in_time [iteration_number + 1])) + interval minute '1'
    , out_time [iteration_number + 0.5] = presentv (in_time [iteration_number + 1], in_time [iteration_number + 1], trunc (out_time [iteration_number] + 1))-'1' minute of interval
    , mr_no [iteration_number + 0.5] = 'no use '.
    )
    order of in_time

  • How to test the stability of the communication and to calculate ber using the CVI?

    Our Chief Engineer gave me a task yesterday. He asked me to make testing of software and to calculate the error rate binary we would like to know our stability of communication.

    However, I never touched this aspect of knowledge. I know a bit about the CVI and I want to write code with CVI bit error rate. So I could test the stability of the communication.

    But I don't know how to analyze and judge the receivers codes, whether they are good or bad.

    We use the Modbus communication protocol and receive data via a port series, so I want to back up all the data and record the total number of datas, marking as M.

    then, save the eligible data and save the number marking as N. Thus, the error rate is binary/m (M - N).

    If it's doable? Or you have a good idea. Thank you very much.

    unsigned char in_data[100]; 
    
     inqlen = GetInQLen (comport);
     for(i=0;i
    

    Above is my code that receives all the data I want to save the data [] array in_data and save the number.

    switch(inqlen)
    {
     case 19:
     {
       crc=usMBCRC16(in_data,inqlen );
       if((in_data[1] == 0x03)&&(crc==0)&&(in_data[0]==device_addr))
        {
    
        }
     }
    

    Above is the judgment of condition who receive eligible data which mark as N number.

    I know there is a prerequisite that I filter all the bad data. However, I don't know any good idea. I'd appreciate if someone could help me.

    Thank you very much.

    Best regards.

    xiepei


  • PowerCLI Script required to identify all clusters in a data center and all hosts within each cluster and calculate it using cpu and ram, avg, min, and max.

    Hi all

    I'm new to powercli and try to create a script to list all clusters in a data center and all hosts in a cluster and calculate min, max and avg cpu usage and ram by the host and cluster. So far, I have tried the below but I can't publish the results of my script.

    $Function = @)
    ForEach ($DataCenter Get-Data Center)
    {
    ForEach ($cluster in ($DataCenter |)) Get - Cluster)) - need help to post the information here and confirm if this is correct or not.
    {
    ForEach ($hosts in ($cluster |)) Get - VMHost))
    {
    ForEach ($vms to ($hosts |)) Get - VM)) - do not know if I called you here functions properly
    {
    $allvms = @)
    $allhosts = @)
    $hosts = get-VMHost
    $vms = get - Vm

    {foreach ($vms in $hosts)
    $hoststat = "" | Select the host name, MemMax, MemAvg, MemMin, CPUMax, CPUAvg, CPUMin
    $hoststat. Host name = $vmHost.name

    $statcpu = get-Stat-entity ($vmHost) - start (get-date). AddDays(-30)-Finish (Get-Date) - MaxSamples 10000 - stat cpu.usage.average
    $statmem = get-Stat-entity ($vmHost) - start (get-date). AddDays(-30)-Finish (Get-Date) - MaxSamples 10000 - stat mem.usage.average

    $cpu = $statcpu | Measure-object-property value - average - Maximum - Minimum
    $mem = $statmem | Measure-object-property value - average - Maximum - Minimum

    $hoststat. CPUMax = $cpu. Maximum
    $hoststat. CPUAvg = $cpu. Average
    $hoststat. CPUMin = $cpu. Minimum
    $hoststat. MemMax = $mem. Maximum
    $hoststat. MemAvg = $mem. Average
    $hoststat. MemMin = $mem. Minimum
    $allhosts += $hoststat
    }
    }
    }
    }
    }

    $Function | Select the host name, MemMax, MemAvg, MemMin, CPUMax, CPUAvg, CPUMin | Export-Csv "c:\Function.csv" - noTypeInformation

    Any help on this is much appreciated.

    [Ordered] casting was introduced in v3 PowerShell.

    For PowerShell v2, you can use

    $vms = get - VM

    $stat = 'cpu.usage.average ','mem.usage.average '.

    $start = (get-Date). AddDays(-31)

    $report = get-Stat-entity $vms - start $start - Stat $stat - ErrorAction SilentlyContinue |

    Group-object - property {$_.} @entity.name} | %{

    $cpu = $_. Group | where {$_.} MetricId - eq "cpu.usage.average"} | Measure-object-property value - average - Maximum - Minimum

    $mem = $_. Group | where {$_.} MetricId - eq "mem.usage.average"} | Measure-object-property value - average - Maximum - Minimum

    New-object PSObject-property @ {}

    Datacenter = Get-Datacenter - VM $_. Group [0]. Entity | Select the name of ExpandProperty-

    Cluster Cluster Get - VM = $_. Group [0]. Entity | Select the name of ExpandProperty-

    VMHost = $_. Group [0]. Entity.Host.Name

    Name = $_. Group [0]. @entity.name

    CpuMin = $cpu. Minimum

    CpuAvg = $cpu. Average

    CpuMax = $cpu. Maximum

    MemMin = $mem. Minimum

    MemAvg = $mem. Average

    MemMax = $mem. Maximum

    }

    }

    $report | Sort-Object-property Datacenter, Cluster, VMHost name |

    Export Csv report.csv - NoTypeInformation - UseCulture

  • Calculate speed using acceleration < accelerometer iPhone >

    I'm working on an application where I need to find the speed and Distance without using GPS. I did some R & D on the accelerometer and the Framework.but movement could not be any idea my job. Any suggestions are welcome.

    Ask Mr. Newton. You must integrate the accelerometer of entry (in the mathematical sense of the term) to get the speed and integrate to get the distance.

  • How to calculate memory used by each database in a server

    We have 7 databases running on a server.

    Operating system: solaris

    I want to add a new database on this server. So I want to find if we have enough memory to add a new database. How to find?

    There is a script called omemuse.sh that does exactly that, and you can find it easily enough. There are two versions of the script; that the one you use depends on your version of Solaris.

    Also note that the amount of memory that your use of DBs depends on the SGA and the total PGA. The latter varies according DB activity over time, it should be taken into account.

  • How to calculate the use of the memory of the objects in Oracle/Collections

    Hi all
    Our application uses a large hierarchical object to store customer information and dependents. I am looking to display the amount of memory used to contain all the embedded objects and collections when filled with data.

    Please advice!

    Thank you

    PL/SQL collections are stored in the PGA. For example, you can monitor the use of the PGA of the meeting (s) to see how much PGA they use.

    SELECT sid, name, value
      FROM v$statname name
           JOIN v$sesstat using (statistic#)
     WHERE name.name in ('session pga memory', 'session pga memory max' )
    

    This will show, for each session, the current PGA consumed by the session and the high tide of the consumption of the PGA by this session. You can join V$ SESSION and add additional predicates to narrow things down to specific sessions you are interested in.

    Justin

  • Display object attribute transitional (calculate amount) using groovy problem

    Hello

    I have a read-only view object named 'ConnectionVVO '. And there the database field name ' points of "(type is number)."»
    Now, I need to take the sum of the points.

    For this, I did the following.

    View free object added to the same view as a view accessor named 'ConnectionVVO1 '.
    Created a transitional attribute named "TotalPoints".
    Added after groovy as an expression of the value of the transient above attribute.
    adf.object.ConnectionVVO1.getRowSet().sum("points")
    After that, when I run the module the application and run the view object that is extremely slow. In fact nothing had appeared. After I changed the sql statement and added a clouse where clause to select a few lines.
    Then he was appeared without delay.

    The table has about 11 million documents.

    Could you please provide a tip or any other way to do this (get the sum of the points).

    Help, please.

    Published by: benoit on March 9, 2011 14:56

    The problem is that you browse through all the data to summarize all the point values. Do this to 11 million lines takes time (lots of db back and forth). This is the reason why you must use a new VO with a query like

    select sum(points) from yourtable
    

    When you run this VO the sum is constructed in the comic book, using caches generate with one trip to the db and the DB. This should give you much better performance.

    The solution you found in the blog is only good for small data sets.

    Timo

  • calculate age using sysdate and 3 combobox

    Hello.. Im having a problem on how I remove sysdate to my 3 combobox [value of 1 day (1-31), 2 months (JAN, FEB etc.), value 3 years value (2009,2007 etc.)]
    IM thinking to put my codes in when-validate-item trigger on each combobox... or shud I use the change list? IM using oracle 9i

    Hello
    You can use the WHEN-LIST-CHANGE, but before that you must convert values selected in date then you can perform arithmetic functions. As.

    
    DECLARE
      vDateSelected DATE;
    BEGIN
      vDateSelected:=TO_DATE(:COMBOBOX1||'-'||:COMBOBOX2||'-'||:COMBOBOX3,'DD-MON-YYYY');
      :FORM_AGE_FIELD:=(ROUND(SYSDATE-vDateSelected))/365;  -- You can remove the round on ur requirement.
      :FORM_AGE_FIELD:=ABS(MONTHS_BETWEEN(SYSDATE,vDateSelected))/12;
    END;
    

    Copy the following code in WHEN-CHANGED the list of the last selected field. Assume that the user will select the last year field so create the trigger in this area and use the code above.

    -Clément

    Published by: Hannah on May 9, 2010 17:44

  • How to calculate the total memory used by oracle under Linux?

    Hi all

    In one of my server have 148 GB of total physical memory and 12 databases are running. For capacity planning, I need to know how the Oracle server use.

    How to calculate the use oracle database? I was perplexed because Yop out his show off 148 gb 128 GB are used.

    Below for your reference:
    ++++++++++++++++++++
    == > back to top
    top - 09:52:32 up to 151 days, 15:20, 3 users, load average: 6.11, 6.00 6.05
    Tasks: 7 running, 1314, 1321 total sleep, stopped 0, 0 zombie
    CPU: 37.8%us, 1.4%sy, 0.0%ni, 55.0%id, 5.6%wa, 0.1%hi, 0.2%si, 0.0%st
    MEM: 148290444 k total, 129368792 k used, 18921652 k free, 1450292 k buffers
    Swap: 50331632 k total, 1296188 k used, 49035444 k free, 114733336 k cached


    The memory allocated to each instance is: sga total == > 34 pga = > 48 GB gb
    +++++++++++++++++++++++++++++

    SGA PGA
    4 GB 4 gb
    4 GB 4 gb
    2 GB, 4 GB
    2 GB, 4 GB
    2 GB, 4 GB
    2 GB, 4 GB
    2 GB, 4 GB
    3 gb 4 gb
    3 gb 4 gb
    4 GB 4 gb
    3 gb 4 gb
    3 gb 4 gb

    Thank you

    Try this - http://www.pythian.com/news/29703/oracle-instance-memory-usage/ for each of your instances.

    As far as I know, different instances may share only the binary code oracle and using libraries, so you should be able to easily understand the amount of memory of all instances of 12.

    Lordane Iotzov
    http://iiotzov.WordPress.com/

  • Integrate the acceleration to get speed using time domain mathematical

    I'm trying to do something simple, but have not found the answer to my problem.

    I have a loop that couple as input and calculates the acceleration; See attachment.

    I'm trying to calculate speed using acceleration.

    I used the function of continuous integration of time mathematical field, acceleration plugged as a signal, but the speed that it displays is not correct.

    If the acceleration is 1 / s ^ 2, the calculated speed is tens of thousands in / s in the second. This is not true.

    What I am doing wrong?

    Thank you

    Looks like I posted this in the wrong place. Don't know how to delete it well.

  • How to measure the frequency of NOR-DAQmx RPM tasks

    Hello

    I'm trying to measure the frequency using the NI DAQmx task and then convert it to a RPM if possible.

    I have the following material available to me.

    I have a block SCXI-1327 terminal, as well as a 6289 PXI multifunction data acquisition Module SCXI 1126.

    I wired in a mag ai7 sensor on my 1126 and then of the passage of an object metal I get a range of 6-8, so I am able to read the mag sensor.

    What I'm trying to do is somehow convert this analog measurement a RPM using the NI DAQmx task only.

    Any help would be appreciated.

    Hi, smooth,

    Yes, you would select linear, then put in the result of this calculation of the slope.

    The Manual recommends a minimum frequency of at least 15 Hz for setting low range. This card is not really designed to measure the frequency for a single pulse over a long period of time.

    The number of LAPS down (assuming one pulse per turn) that we recommend that you measure with the 1126 is so 900 RPM. If you need measure low revs, and you cannot increase the number of impulses per turn, you could consider either read the signal as an analog waveform, or if it's a digital pulse, using a counter to basic task. In this way, you can use any method you want to handle the situation where there is only a single pulse in a long time.

  • Calculation of frame rates of acquisition image using the 7 Format

    So I finally got my Basler firewire (IEE1394b) camera to capture images at his rate max (120 fps).

    But to do this, I need to use the '7' Format.... which is a bit confusing to me.  When I use the '7' Format, I can't specify the frame (frames per second) rate.  Apparently, you only specify the parameters (length, width, color / mono) of the image and the size of the packets and a few other things.

    So, how can I calculate speed?  I need to know exactly how much time elapses between each image.  And it must be constant.  I can't have a different frame rate.

    NEITHER told I can calculate the frame rate using this equation:

    That comes from this article.

    But I am skeptical because the article also says:

    Please note that the time to transfer an image is slightly faster than the time it takes to acquire an image.

    People out there can clarify this for me?  Is the frame rate constant?  And then I actually calculate when using size 7?

    The rate will be constant.  It won't change from image to image.  The difficult part is to find what it is.

    Basler camera manual will tell you how to calculate the frame rate.  There are three different calculations, and gives you the slower pace is one you use.  These calculations are accurate enough, I think.

    Another possibility is to measure the frame rate, but that requires several seconds (or minutes) for a measurement precise.  The simplest method is to start a life-long and save a frame in time at the beginning, wait several seconds (or minutes) and save the time of another framework.  Subtract the chassis numbers, subtract the time and divide to get the frame rate.  With a wait of several minutes, it's extremely accurate.  To get the acquisition time, read an image whose value "Next Image", then save the chassis number and read the msec timer immediately after reading.  Using a flat sequence structure is probably the best to ensure that everything happens in the desired order.  If you loop playback, you will see real cadence cadence converge slowly.  Stop it when it is pretty accurate.

    In a program I wrote, I controlled the pace by setting the shutter exposure time.  I used the derived formula of the Basler manual for cadence and reversed to calculate the shutter speed.  This only works if you have another way to adjust the brightness levels (opening, lighting, etc.).

    Bruce

  • How to make Vista use less RAM?

    OK, here's the deal... I got this computer from October 17, 2008. RAM is juicy until the past few days. I started noticing almost ALL the time my OS uses a total of 75 to 86% of RAM. It does not reflect the performance.

    Also, the Windows Task Manager says I on 65 running processes. I show processes from all users, and I can't just equal up to 800 megabytes.

    My computer has 1 gigabyte but reads 980Mb. So my question, how is using up to 86% during normal operations, while I'm only about calculate 56% use?

    OK, gotcha now. Looks like that you see right SuperFetch works like it's supposed to... "SuperFetch is trying its best to use as much RAM as possible, because if you have it you could thus make use." ;-) William Keener | Blog
    You are looking for an "easy button?"
    Join our Facebook group

  • Programs and features: frequency of use of program

    I remember in Windows XP, the programs and features Control Panel had a feature that let the user know how many times a program has been used ("seldom", "occasionally" or "frequently") in order to help the user to decide which programs to remove. However, it does not appear to be such a feature in the programs and features Control Panel in Windows 7. Is this true? And if not, how to validate such a device?

    No, it was deleted because it was inadequate.  A few details about how it calculates information used last is here: http://blogs.msdn.com/b/oldnewthing/archive/2004/07/09/178342.aspx

    This little special (last used) was more difficult to determine reliably.

Maybe you are looking for