Counter retrigger problem

Hi, I am having a problem with counters on a USB-6211.
I'm trying to retrigger a counter (start the lowticks running again) before the highticks have finished with the current pulse.
I need to do this to allow me to position a lamp flash drive signal over a datum signal from a rotating shaft (think timing lamps and engines).
I would take the easy way out and use 2 counters to do this but I need the 2nd counter (my device only has 2) to measure the period of rotation!
I've attached an example VI to show the problem.
If you choose to put the output pulse anywhere other than over the trigger signal, it works fine. As soon as I try to position my output pulse over the trigger signal I only get an output once every 2nd rotation.
I need to tell the DAQ card to accept a trigger signal to start lowticks running before it's finished outputting highticks. I'm guessing each counter must actually be 2 counters internally (one for lowticks and one for highticks).
(You might need a scope to see the problem on the output)
Any help greatly appreciated!
Attachments:
Counter Retrigger Problem.vi ‏34 KB

Looks like there is a way to do this with the PCI-6602, but I'm not sure if it works with the USB-6211:
Using One Counter to Generate a Retriggerable Finite Digital Pulse Train with a PCI-6602 and DAQmx
http://digital.ni.com/public.nsf/allkb/4A9AF19480E50C6D862571B70058142A
www.movimed.com - Custom Imaging Solutions

Similar Messages

  • Counting lines problem. Please help!!

    Hi all,
    I just have a small problem i cannot resolve, here it is: I read through a file and i like to count the lines of the file there is before a special word.
    E.g
    My file contains:
    "hi
    how are you
    my name is john
    and i live
    britain"
    I'd like to count how much lines there are in the file before the word LIVE ==> result would be 4.
    I proceed with StreamTokenizer, but i don't knor how to specify the word. Here is my code:
         try {FileReader fr = new FileReader("test2.dat");
                   BufferedReader br = new BufferedReader(fr);
                   StreamTokenizer stk = new StreamTokenizer(br);
                   do {
                   n = stk.nextToken();
                   li = stk.lineno();
                   if (n == stk.TT_NUMBER) {
                        n = stk.nextToken();
                   if (n == stk.TT_EOL) {
                        li++;
                        n = stk.nextToken();
                   if (n == stk.TT_WORD) {
                        String str = stk.sval;
                        if ("entier".equals(str)) {
                             System.out.println(li);
                        else {
                             n = stk.nextToken();
                   while (??????????????);
    I want here to specify the word "entier" but how to do this??
    Thanks very much for your precious help....

A: Counting lines problem. Please help!!

Use LineNumberReader, which counts lines for you. Here's a complete program in 16 lines:
import java.io.*;
public class test4 {
  public static void main(String[] argv) {
    if (argv.length < 2) { System.err.println("no arg"); System.exit(0); }
    try {
      LineNumberReader in = new LineNumberReader(new FileReader(argv[1]));
      String line;
      while((line = in.readLine()) != null)
        if (line.indexOf(argv[0]) != -1)
          System.out.println("Found match at line " + in.getLineNumber());
    } catch (IOException e) {
      e.printStackTrace();
}If you want case insensitivity, you can make both lines lower-case before searching. Or you can use regular expressions.

Use LineNumberReader, which counts lines for you. Here's a complete program in 16 lines:
import java.io.*;
public class test4 {
  public static void main(String[] argv) {
    if (argv.length < 2) { System.err.println("no arg"); System.exit(0); }
    try {
      LineNumberReader in = new LineNumberReader(new FileReader(argv[1]));
      String line;
      while((line = in.readLine()) != null)
        if (line.indexOf(argv[0]) != -1)
          System.out.println("Found match at line " + in.getLineNumber());
    } catch (IOException e) {
      e.printStackTrace();
}If you want case insensitivity, you can make both lines lower-case before searching. Or you can use regular expressions.

  • Apex_application.g_fxx.count Question (problem?)

    Do the apex_application.g_fxx variables need to be shown on the page (region) in order for apex_application.g_fxx.count to return a non-zero value?
    I'm trying to figure out why I spent a day trying to get something to work, and it seems like this is what it was, though I'm not quite sure.
    In my report region, I have a column that when shown, my process works correctly, where a loop that has the form of:
    FOR i IN 1 .. APEX_APPLICATION.g_f16.COUNT
    LOOP
    This performs the statements within the loop.
    However, if that column is not shown (under Report attributes, unclick the Show box), then the process does not seem to execute the statements inside the loop.
    The only thing I can think of is that when it's marked as not shown, then the COUNT has no value, even though it seems like it should. Does COUNT only return the count of displayable items in the column, so if it's not shown, it's zero?
    It also may be how the report region is defined as well I suppose. It seems like ApEx should understand it okay, but who knows. It's simply a join of two inline views, so I can pre-populate the region with values from another table if this table didn't have any entries.
    This is Apex 2.2.1.00.04. One of these days I'll get caught up enough to upgrade to 3.0.
    Thanks,
    Bill Ferguson

    Hi Patrick,
    I suppose I also should have stated that this is a manually generated report region, using the apex_application.[item_type] syntax, where I have to specify the array (item) number. I just tested with Firebug, and if I change the number of the second column to 22, it's shown as f22 instead of f02.
    g_f16 was the next to the last column, though the one after it is a hidden column (apex_application.hidden).
    My report region is such, that g_f03 andg f16 are the only columns I can verify will actually have some data in it, as I force a value into gf16 if the second half of my union is selecting null values, so I could get around the null sorting problem (NULLS LAST didn't work, even on 10gR2, so I'm doing something else wrong).
    Anyway, I can use the values of the columns, whether they are displayed or not, it's just that apex_application.g_f16.COUNT always returned a zero when the column was hidden, even though it consisted of an array of 5 values. Trying to track it down I was able send the value of the column to a logging table, so I was able to see that I was getting the values, just not the count of values.
    Bill Ferguson

  • Character count display problem in IE

    Hi all,
    I have implemented a character counter in ADF using Javascript (referencing this http://www.oracle.com/technetwork/developer-tools/adf/learnmore/10-char-input-counter-169133.pdf).
    The problem that I am facing is: when my character counter becomes 0 (can no longer enter any text, the maxlimit of the input field is reached) then on IE browsers, it does not show the character '0'. It displays a blank. On Firefox and Chrome, however, the UI gets displayed as expected i.e. 0 characters left.
    Let me know how to fix this on IE. Have tested with IE versions 8,9. JDev version is 11.1.1.7.0.
    Thanks,
    Anu.

    Hi,
    debugging the JavaScript to see what the value of the variable really is is a good start. If it turns out that it is becoming null, then you could use a if() case in that whenever the value is null you set it to 0. If the value however is correct but just doesn't render then you can try and transform it to a character instead of a number to see if the numeric output is the problem. This is how I would address the problem
    Frank

  • OBIEE 10G count distinct problem

    Hi,
    I am really new to OBI now runs into this problem.
    I have a fact and three dimension tables as follows:
    fact:
    1. sales:
    sold_vlaue (sum)
    transactions (count distinct receipt_id)
    branch_id (foreign key)
    daykey (foreign key)
    receipt_id (foreign key)
    product_key (foreign key)
    dimensions
    1. branch
    branch_id (key)
    2. time
    daykey (key)
    3. product
    product_key (key)
    These tables are joined as star schema by keys mentioned above. sales.sold_value is aggregated by 'sum', transactions is by (count distinct receipt_id). I don't have a dimension for receipt_id since it's only for the calculation of transaction.
    So how can I set up to make the transactions correct (count distinct receipt_id)?
    I tried to set transactions as count distinct in Default aggregation rule. But the result is wrong (all 1)

    All right. I figured it out.
    The fact table should be modelled as:
    1. sales:
    physical layer:
    sold_vlaue
    branch_id (foreign key)
    daykey (foreign key)
    receipt_id (foreign key)
    product_key (foreign key)
    The underlying query is:
    select
    branch_id, daykey, receipt_id, product_key
    , sum(sold_value)
    from table
    group by
    branch_id, daykey, receipt_id, product_key
    BMM layer:
    sold_value (sum)
    transactions (count distinct receipt_id)
    branch_id (foreign key)
    daykey (foreign key)
    receipt_id (foreign key) (removed)
    product_key (foreign key)

  • Count Collisions Problem in Shooting Game

    Hi,  I am working a simple game in which a ship fires at approaching asteroids and I am having problems with the collision between the ship and the
    asteroid. In the ship movieClipI have made it glow red from frame 6 to signify the first 3 collisions and loss of life and then then for the fourth collision I
    have made a alpha tween from frame 87 inside the ship so that it disappears to signify end of game. I have used a counter as shown below but all the ship
    does is glow so never gets to frame 87. Thanks for taking time to view this.
    //import some important flash libraries.
    import flash.events.KeyboardEvent;
    import flash.events.Event;
    import flash.display.MovieClip;
    import flash.display.Sprite;
    var countCollisions:Number =0 ;
    var astArray:Array = new Array();
    var speed:Number = 10;
    //initializes variables.
    var key_left:Boolean = false;
    var key_right:Boolean = false;
    var key_up:Boolean = false;
    var key_down:Boolean = false;
    var key_space:Boolean = false;
    var shootLimiter:Number=0;
    //Checks if the player presses a key.
    var timer:Timer = new Timer(2000, 10);
    timer.addEventListener(TimerEvent.TIMER, AddAsteroid);
    timer.start();
    stage.addEventListener(KeyboardEvent.KEY_DOWN,KeyDown);
    stage.addEventListener(KeyboardEvent.KEY_UP,KeyUp);
    var ship:MovieClip = new Ship()
    var backgr:MovieClip = new Background();
    backgr.x = 0;
    backgr.y = 45;
    addChild(backgr);
    addChild(ship);
    function AddAsteroid(e:TimerEvent):void
    var asteroid:MovieClip = new Asteroid();   
    asteroid.x = 800;
    asteroid.y = Math.round(Math.random()*700);
    astArray.push(asteroid);  
    addChild(asteroid);
    asteroid.addEventListener(Event.ENTER_FRAME,asteroidmove);   
    function asteroidmove(e:Event):void
    asteroid.x--
    for(var i=0; i<astArray.length; i++)
      if(astArray[i].hitTestObject(ship))
      countCollisions++;
      ship.gotoAndPlay(6);
       if(countCollisions ==4)
       ship.gotoAndPlay(87);
      if(astArray[i].stage)
            removeChild(astArray[i]);
            removeEventListener(Event.ENTER_FRAME,asteroidmove);
    addEventListener(Event.ENTER_FRAME,backgroundmove);
    function backgroundmove(e:Event):void
    backgr.x -= 1;
    if(backgr.x < -2110)
    backgr.x = 0;
    //Lets the function main play every frame.
    addEventListener(Event.ENTER_FRAME,Main);
    //create the function main.
    function Main(event:Event){
    CheckKeys();
    //create the function KeyDown.
    function KeyDown(event:KeyboardEvent){
    if(event.keyCode == 37){  //checks if left arrowkey is pressed.
      key_left = true;
    if(event.keyCode == 39){  //checks if right arrowkey is pressed.
      key_right = true;
    if(event.keyCode == 38){  //checks if up arrowkey is pressed.
      key_up = true;
    if(event.keyCode == 40){  //checks if down arrowkey is pressed.
      key_down = true;
    if(event.keyCode == 32){  //checks if down arrowkey is pressed.
      key_space = true;
    function KeyUp(event:KeyboardEvent){
    if(event.keyCode == 37){  //checks if left arrowkey is released.
      key_left = false;
    if(event.keyCode == 39){  //checks if right arrowkey is released.
      key_right = false;
    if(event.keyCode == 38){  //checks if up arrowkey is released.
      key_up = false;
    if(event.keyCode == 40){  //checks if down arrowkey is released.
      key_down = false;
    if(event.keyCode == 32){  //checks if down arrowkey is released.
      key_space = false;
    function CheckKeys()
    shootLimiter += 1;
    if(key_left)
      setDirection(1);
      ship.x -= 5;
    if(key_right)
      setDirection(0);
      ship.x += 5;
    if(key_up){
      ship.y -= 5;
    if(key_down){
      ship.y += 5;
    if((key_space) && (shootLimiter > 8))
    shootLimiter = 0;
    var b = new Bullet();
    addChild(b);
    b.x = ship.x + 50;
    b.y = ship.y + 3;
    addEventListener(Event.ENTER_FRAME,moveBullet);
    function moveBullet(e:Event):void
    b.x +=10;
      if(b.x > 600)
       if(contains(b))
       removeChild(b);
              removeEventListener(Event.ENTER_FRAME,moveBullet);
    for(var i=0; i<astArray.length; i++)
      if(astArray[i].hitTestObject(b))
      removeChild(b);
      removeChild(astArray[i]);
      removeEventListener(Event.ENTER_FRAME,moveBullet);
    function setDirection(param) {
    if (param == 0) {
      ship.scaleX = 1;
    } else {
      ship.scaleX = -1;

    Thanks for your comments. I have amended the code but get the following error and the ship goes to frame 87 on the second collision.
    Can you tell me if I am on the right lines ?
    The supplied DisplayObject must be a child of the caller.
    at flash.display::DisplayObjectContainer/removeChild()
    at Function/<anonymous>()
    for(var i=0; i<astArray.length; i++)
      if(astArray[i].hitTestObject(ship))
      countCollisions++;
      removeChild(astArray[i]);
       if(countCollisions >= 4)
       ship.gotoAndPlay(87);
       removeEventListener(Event.ENTER_FRAME,asteroidmove);
       else
       ship.gotoAndPlay(6);
      //if(astArray[i].stage)
            //removeChild(astArray[i]);
      //MovieClip(astArray[i]).removeEventListener(Event.ENTER_FRAME, asteroidmove);
            //removeEventListener(Event.ENTER_FRAME,asteroidmove);

  • Retry count & interval problem

    I am Using OSB R4 where My Scenario is i need to place the payloads in to the JMS Queue, and route them to the Endpoint URI webservice if the service is unavailable i need to sent the notification mail and rollback the payload back in to the Queue. My problem is i receiving hundreds of notification mail when the service is down instead of one. I configured the retry count to 1 and retry interval as 15 mins for the business service URI and implemented single thread consumer in work manager. Please help me in this.....

    I am Using OSB R4 where My Scenario is i need to place the payloads in to the JMS Queue, and route them to the Endpoint URI webservice if the service is unavailable i need to sent the notification mail and rollback the payload back in to >the Queue. My problem is i receiving hundreds of notification mail when the service is down instead of one.This is a classic case for using OSB SLA alerting instead of doing it in the message pipeline. Configure a sla alert set to trigger when there are 1 or more route errors in an aggrevation interal of 30 mins and set an email alert destination. This will make sure you will get only 1 mail for all errors in that period of 30 minutes.

  • Counting values problem

    Hi,
    I've a report in the BO XI web interface.
    There is a page in the report wich contains a table with the data from the query with a simple filter on in.
    The filter sais: Type = "FM".
    It works fine.
    I've also created a count below with the following formula: =Count([Cost]) where ([Cost] = 0)
    It gives me 162. All correct.
    There is another page. With a new block with the same filer. With several fields with formula's like:
    =Count([id]) gives me 404
    =Count([id]) Where (IsNull([Problem])) gives me 320.
    All correct, but when i create the same formula as in the other page it gives me 0. I tried some other formula's but it doesn't work. I simply want the number of fields with 0 in it:
    =Count([Cost];all) gives me 1
    =Count([id];All) gives me 808
    =Count([id]) gives me 404
    =Count([Cost]) where ([Cost] = 0) gives me 0
    =Count([id]) Where ([Costs] = 0) gives me a blank field
    How can I count all the records with Costs = 0 and why does it work in the other page, but dosn't it work on this page.

    I want to do the following:
    The input query looks like:select id, description, status , type, sum(costs) from ..... group by id, description, status , type
    There is a page with a filter: type = "FM". On that page i show all the fields. When i add a count at the bottom of the opage with the formula: =Count([Cost]) Where ([Cost] = 0) it gives me 162 (correct).
    On another page i want to create an overview. I created a horizontal table with the same filter and the same formula and it gives me 0. When i use count([costs]) it gives me 1, but i'm expecting the number of records. When i use [costs] it gives me the sum of all costs, but i'm expecting all the individual records. When i add a column to the table with the id, it's all working.
    I want one field with a formula wich gives me the number of records with costs = 0.
    The solution i have now is an individual query wich looks like:
    select count(*)
    from
      select id, description, status , type, sum(costs) from ..... group by id, description, status , type
    where COSTS = 0
    and TYPE = 'FM'
    It works, but i don't think it's a nice solution.
    In my opinion it's the same as =Count([Cost]) Where ([Cost] = 0) with the filter type = "FM".

  • Counter timer problems

    Can anybody tell me how I can get around a problem I have with double counts. I am using a counter that is connected to a photocell to count objects as they past the photocell. However, I am getting several false counts that I want to eliminate, is there a way I can specify the minimum time that the counter must be high before it counts?

    DrMarty,
    Some DAQ boards (660x family, M-series) support digital filtering for counter tasks. Do you have one of these? If so, check the online help and search for examples to try to get started.
    On the other hand, do you have something more like an E-series multifunction board? That may be trickier... I don't have a specific solution in mind (yet), but there might be a way... Post back with the type of DAQ board you have.
    -Kevin P.

  • Counter input problem

    hi, i'm using a counter input to count the falling edges of a digital pulse. I need to convert this into a time based measurement (period/frequency), but am having a litle trouble doing this. If any one can help? i'd prefer it if it were as simple as possible, i.e. no fancy programming as I'm new to LabVIEW and would like to fully understand what i'm looking at!
    Many thanks in advance!
    tom

    Hi
    What version of LabVIEW are you using? If you're programming with version 7.0 or higher you can configure your counter for period or frequency measurements quite easily using the DAQ Assistant.
    Just drop down the DAQ Assistant Express VI. The Wizard that opens will ask you to choose your input type. Choose Counter Input and it list options for Edge Counting, Frequency and Period Measurement. Choose the one you want then choose the counter with which to do the measurement. When you click Finish a configuration dialog box will open up for you to configure the Input Range, the Task Timing, etc. There will also be some further information in the help section along the right of the window. When you click OK the DAQ Assistant will build your code.
    I've attached a Zip file with 2 labview programs to demonstrate this. (They're written in version 8). Connect DIO 0 to PFI 9 of your DAQ card (I'm using an M Series card. If you're using a different card let me know). Extract and run both files. The Digital Output VI generates an alternating high and low signal for each iteration of the loop. The Counter Frequency Measurement VI measures the frequency of this output. The frequency is determined my the Wait Until Next ms Multiple function so change the input to that to vary the frequency.
    Let me know how you get on with that and if you require more info.
    Good luck!
    SarahB
    NI | UK
    Sarah
    Applications Engineer | National Instruments | UK & Ireland
    Attachments:
    Frequency Measurements.zip ‏65 KB

  • Cycle count(MICN) problem at year end

    Hi folks,
    For cycle counting, if the counting date exceeds the current year, it proposes the last date of current year as the first counting date.But i do not want sap, to propose the last date of current year for counting. it should give me the correct figure as per indicator ( A- 152 days, B- 360 days ).
    if i do GR today & My indicator is A, then counting date should be after 152 days ( in 2010) . if it falls on next year, then it's ok.
    but system is proposing last date( 31/12/2009) of current year if the date falls on next year(2010).
    Plz suggect , how to solve this.
    Thanks
    pabi

    Any item has to be counted once a year. the fiscal year is controlling the inventory period.
    if you have a new material that you receive the first time at the end of the year, then you have to count it in this year the first time, and the next time after your defined number of days.
    Thats system design, you cant change it.

  • IPhoto 6, let me count the problems

    First of all, let me say I love my mac, and almost every piece of software they have made.
    iPhoto however is the exception to that adoration.
    My latest problem with iPhoto is a combination of a variety of issues.
    1. To save hard drive space i deleted a tonne of photos from my hard drive, for some reason these were still appearing partially as thumbnails in iPhoto, even though they weren't in originals or data, or any other folder. So after trying to delete them again, I couldn't even tell which were supposed to be there and which weren't, so I did a rebuild to try to purge the absent photos. This sorta worked, but what it also did was resize all of my photos to 350x240. Not too happy about that, anyone know why it did that? Most of my images I had backed up but not the past few rolls.
    2. Without fail exporting groups of photos doesn't work for me. Used to only fail when I had photos that I had rotated, but now it is doing it all the time. try exporting just to a folder and also the picasa web exporter.
    3. Why does it have copies of images in original, modified and data?
    4. Why can iTunes be so simple and so effective at organizing music, yet, iPhoto is so terrible in every way shape and form at doing the same with photos?

    I would prefer if they made a stripped down version t
    There are a tonne of simple image browsers for the Mac. Search on MacUpdate.
    is there a simple function that allows you to replace the originals with your modified.
    No, there is no way to turn off iPhoto's version control and trying to defeat it will simply damage your Library - again. If you don't require the feature then simply, don't use iPhoto.
    I am not far enough removed from my PC days and tried digging around in the file structure
    Remember: the trick to using iPhoto is to do everything in the iPhoto Window. And that means everything. If you cannot figure out how to achieve what you want then consult the help or post back on here by all means.
    iPhoto is a database. Like any db it requires that you manipulate the data via the application and not through a back door. So, when you dragged all those pics out of the Library Folder, iPhoto didn't know they were gone.
    For Instance:
    To remove pics from iPhoto and the Hard Disk. In the iPhoto Window: Get into Library View and drag the pics to the iPhoto trash. Then iPhoto Menu -> Empty the Trash.
    There are some common ways that folks try this and are annoyed to discover their library in the Finder is not getting any smaller. First, they drag pics from an Album to the trash. However, this does not remove a pic from the Library, only from the Album. You need to be in Library view. (This is just like iTunes.) Secondly, folks drag the pics to the iPhoto trash, but don't empty it. Also, folks miss the iPhoto trash and drag to the Main trash.
    The size of the files makes no difference to the operation of iPhoto. I have a 20k library that totals almost 50 gigs. I files in there that run from 1MB to 6MB in size. I have no speed issues.
    But: having a damaged db will, having an overcrowded hard disk most certainly will. And having 10gigs free on your HD is the minimum that OS X needs for normal operations. However, being unable to export is another symptom of... a damaged database.
    As is the fact that iPhoto is not managing to export rotated files.
    I'm not sure how you went about rebuilding your Library, but if you do the following, your Library will work correctly:
    To create and populate a new library:
    Note this will give you a working library with the same Rolls and pictures as before, however, you will lose your albums, keywords, modified versions, books, calendars etc.
    Move the iPhoto Library to the desktop
    Launch iPhoto. It will ask if you wish to create a new Library. Say Yes.
    Go into the iPhoto Library on your desktop and find the Originals folder. From the Originals folder drag the individual Roll Folders to the iPhoto Window and it will recreate them in the new library.
    When you're sure all is well you can delete the iPhoto Library on your desktop.
    In the future, in addition to your usual back up routine, you might like to make a copy of the library6.iPhoto file whenever you have made changes to the library as protection against database corruption.
    Regards
    TD

  • Select count distinct problem

    Hi,
    I have a tabe "M" that as messages, each message has a priority and is part of a departement. Now i wanted to create a report that count the number of messeges by departement group by priority and the total.............. something like this:
    Departement Priority1 Priority2 Priority3 Total
    A 1 2 3 6
    B 2 3 3 8
    C 1 1 1 3
    Can someboby help me please
    Than's
    Luis

    Unfortunately prior to 11g Oracle doesn't supply any means of creating cross tab queries, so any solution prior to 11g is going to rely on static views.
    However, if you don't mind having the data go down instead of accross you could use this:
    with m as (select 'high' priority, 'department A' department, 1 id_message from dual
      union all select 'medium', 'department A', 2 from dual
      union all select 'high',   'department B', 3 from dual
      union all select 'medium', 'department C', 4 from dual
      union all select 'high',   'department C', 5 from dual
      union all select 'medium', 'department B', 6 from dual
      union all select 'low',    'department A', 7 from dual
      union all select 'medium', 'department A', 8 from dual
      union all select 'low',    'department A', 9 from dual
      union all select 'high',   'department B', 10 from dual
      union all select 'low',    'department C', 11 from dual
      union all select 'medium', 'department C', 12 from dual
      union all select 'high',   'department B', 13 from dual
      union all select 'medium', 'department B', 14 from dual
      union all select 'medium', 'department B', 15 from dual
      union all select 'low',    'department B', 16 from dual
      union all select 'low',    'department C', 17 from dual
      union all select 'high',   'department C', 18 from dual
    select department, priority, count(id_message) from m
    group by rollup (department, priority)
    order by department, priority
    DEPARTMENT   PRIORITY COUNT(ID_MESSAGE)
    department A high     1
    department A low      2
    department A medium   2
    department A (null)   5
    department B high     3
    department B low      1
    department B medium   3
    department B (null)   7
    department C high     2
    department C low      2
    department C medium   2
    department C (null)   6
    (null)       (null)   18
    13 rows selectedor
    select department, priority, count(id_message) from m
    group by department, rollup (priority)
    order by department, priority
    DEPARTMENT   PRIORITY COUNT(ID_MESSAGE)
    department A high     1
    department A low      2
    department A medium   2
    department A (null)   5
    department B high     3
    department B low      1
    department B medium   3
    department B (null)   7
    department C high     2
    department C low      2
    department C medium   2
    department C (null)   6
    12 rows selected

  • Counter bar problem

    I need to write a code that creates a counter that runs between 0 and 999 and increment every 10 milliseconds. It should also have a progress bar that gives a visual indication of the count. can u help please?

    I envision a properly configured progress bar [0...999], a Timer and a
    TimerTask that updates that progress bar when it is activated by that
    Timer. When the counter reaches the value 999 (or 1000, depending
    on how you implement stuff), the Timer is canceled.
    kind regards,
    Jos

  • ....Count Record Problem

    I want to get a count of the records return by my query.
    I have a search Form through which user can search , and i want to display the Number of Records retrieved/count of records that meet the search Criteria.
    I have tried to use
    rc:= get_block_property('Blockname',QUERY_HITZ)
    it returns the value of 10. basically 10 is the number of records displayed..
    but this is not what is required.... the required thing is that we need the count of how many records return by the query.
    Anybody has ever done this..
    I mean everything is done by oracle ..
    i m not manually writing select * from .... ...
    Datablock it self return record based on
    set_block_propery('BLKname',default_where' cirteria')
    Now how to get the count.
    thnx for the reply

    Hi all
    First of all. Thnx alot for your kind input.
    Now..
    Let come to the point. i have already tried this
    get_block_property(......Query_hitz) method,
    it is definitly not working ppl
    I tell you it gives me a value of 10,
    but i for sure knows that the search yielded 54 records.
    So Mr. prasanth .. sorry your solution isnt working.
    Basically Search Forms gives you a facility to search by City Name
    Now all the employees in a particular city will be displayed, but 10employees record display at a single time and user have to scroll down.
    I just want ot give the total count so that user should know that how many records his/her search Yeileded...
    HOpe this would be much clear now.
    and sorry again i dont understand the ON_Message method...
    SOrry but i dont get it so thats why i have to write this again..
    Hope somebody have known the solution.
    thnx to all anyhow

  • Maybe you are looking for

    • Adobe Photoshop Elements 8 stopped working - says serial numbers are not valid.

      I have had Adobe Photoshop Elements 8 for several years and use it daily.  All of a sudden today, it would not open and showed me the screen to try the 30 free trial or to enter my serial number.  I entered my serial number and it gives me a red X an

    • Unable to connect to adobe servers on CC

      Hey I payed for CC a couple nights ago and have yet to be able to download and install any of the programs.  I have followed all the trouble shooting directions on the site but I still get the Download Error - Unable to reach Adobe servers. Please ch

    • How to  convert to FMX to FMB

      Hi All, As I have lost my FMB file, i wanted to convert to FMX to FMB. How do we convert FMX to FMB? Is there way to convert? Please give the steps do so. I'm using 10g forms Regards, Aparna S

    • Document uploading using Primavera Web Service

      Hi, I am using Primavera P6 r8.2 and I have linked UCM with EPPM for document management in Primavera. I am tryng to add a document to a project from content repository using Primavera Web Services. WhenI am executing the process the document is crea

    • No sound from PowerBook G4

      PowerBook G4 sound output frequently disappears. When this happens, System Preferences says "no output devices found" where it used to show internal speakers, etc. No sound through headset when plugged in either. Repairing permissions, followed by a