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".

Similar Messages

  • Counter value jumps on occasion (PXI 6255)

    I am using a PXI 8108 controller (Windows) with a PXI 6255 AI card. A pulse generator (1 KHz) is incrementing the hardware counter of that AI card in order to have an external reference clock, i. e. having a timestamp for each AI sample value.
    I am reading 1000 AI values from several channels  (together with 1000 counter values) via DAQmx blocks with a higher frequency than the external clock's 1 KHz (e.g. AI Rate 5 KHz-> reading every counter value approx. 5 times). Every now an then I am losing counter values, e. g. counter value 6789 is followed by 6823.
    Shouldn't be the PXI card's counter buffer independant of Window's CPU load? Getting 1000 values from the card buffer, the jumps are even located in the middle of the 1000 values. Maybe there's a problem with atomicity while reading from the buffer, so that I get 500 values from the buffer, (pause), and 500 more values from a later point in time. Is this possible?
    I am sure, I can not blame the digital pulse generator (from Hameg Instruments) for dropping pulses.
    Attachments:
    counter-daq.png ‏20 KB

    Hello,
    If the first scan only places 4 samples in the AI FIFO (2 less than the number of channels requested), then I would expect this loop to run forever in aiex1.cpp (I added some debugging prints to make it easier to see the channels that should be getting returned).
           while ( m < numberOfChannels )
            if(!board->AI_Status_1.readAI_FIFO_Empty_St())
                value = board->AI_FIFO_Data.readRegister ();
                aiPolynomialScaler (&value, &scaled, &scale);
                printf ("Channel %d: %e,\n", m, scaled);
                m++;
        printf("\tEnd of Sample %d\n", n);
    How is the example able to proceed past this loop?
    I have checked the code for FIFO flushes and resets between aiStartOnDemand (board); and when the FIFO gets read.  I have also run the example with 6 channels, this time on Windows.
    To proceed we would need these items:
    1) We would need the exact output (with my added debug prints).
    2) A complete dump of all registers accessed during the example.
    Steven T.

  • XSL recursion losing value problem.

    I've created an XSL stylesheet that i'm using to create a pie chart in svg. Each slice of the pie is done in a recursive call to the draw function. The slice number is passed to each recursive call with the value of counter + 1.
    This seems to be pretty straight forward and working fine until I hit a for-each loop in the template. For some reason the for-each is setting the counter back to 1.
    for example:
    counter is now 2
    <xsl:for-each select=...>
    counter is now 1 for some reason
    <xsl:call-template with param counter + 1
    </xsl:for-each>
    So the result is whenever the for-each is enter, counter has a value of 1.
    attached is the actual stylesheet and a sample xml. I'm using oraxsl to do the transform.
    <xsl:stylesheet version="1.0" type="text/xsl"
    xmlns:xsl ="http://www.w3.org/1999/XSL/Transform"
    xmlns:Mayura ="http://www.mayura.com/"
    exclude-result-prefixes="Mayura">
    <xsl:include href="CoolColors.xsl"/>
    <xsl:include href="math.xsl"/>
    <xsl:output standalone="yes" doctype-system="svg-19990812.dtd"
    media-type="image/svg" indent="yes"/>
    <xsl:template match="/">
    <xsl:apply-templates select="/graph"/>
    </xsl:template>
    <xsl:template name="drawPie" match="graph">
    <xsl:param name="x_origin" select="0"/>
    <xsl:param name="y_origin" select="0"/>
    <xsl:param name="gWidth" select="800"/>
    <xsl:param name="gHeight" select="600"/>
    <g id="pie chart" transform="translate({$x_origin}, {$y_origin})">
    <xsl:variable name="count1" select="sum(values/value/@amount)"/>
    count1 = <xsl:value-of select="$count1"/>
    num_values = <xsl:value-of select="count(values/value)"/>
    <xsl:call-template name="drawSlice">
    <xsl:with-param name="x_origin" select="0"/>
    <xsl:with-param name="y_origin" select="0"/>
    <xsl:with-param name="gWidth" select="$gWidth"/>
    <xsl:with-param name="gHeight" select="$gHeight"/>
    <xsl:with-param name="counter" select="1"/>
    </xsl:call-template>
    </g>
    </xsl:template>
    <xsl:template name="drawSlice">
    <xsl:param name="counter" select="1"/>
    <xsl:param name="x_origin" select="0"/>
    <xsl:param name="y_origin" select="0"/>
    <xsl:param name="gWidth" select="800"/>
    <xsl:param name="gHeight" select="600"/>
    <xsl:param name="rotateMe" select="0"/>
    DRAWSLICE1: <xsl:value-of select="$counter"/>
    <xsl:for-each select="values/value">
    DRAWSLICE2: <xsl:value-of select="$counter"/>
    <xsl:if test="position()=$counter">
    <xsl:call-template name="drawSlice">
    <xsl:with-param name="counter" select="$counter + 1"/>
    <xsl:with-param name="x_origin" select="$x_origin"/>
    <xsl:with-param name="y_origin" select="$y_origin"/>
    <xsl:with-param name="gWidth" select="$gWidth"/>
    <xsl:with-param name="gHeight" select="$gHeight"/>
    </xsl:call-template>
    </xsl:if>
    </xsl:for-each>
    </xsl:template>
    </xsl:stylesheet>
    some xml for it is:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <graph width="600" height="400" type="PIE">
    <legend font_size="14"/>
    <title font_size="30" font_color="red" fill_color="red">Monthly PIRs</title>
    <title2 font_size="20" font_color="red" fill_color="red">2001</title2>
    <values>
    <value name="JANUARY" amount="25">
    <graph width="600" height="400" type="PIE">
    <title> JANUARY</title>
    <values>
    <value name="ENGINEERING" amount="3"/>
    <value name="NEW BUSINESS/PROGRAMS" amount="2"/>
    <value name="OPERATIONS" amount="16"/>
    <value name="QUALITY" amount="3"/>
    <value name="SAFETY" amount="1"/>
    </values>
    </graph>
    </value>
    <value name="FEBRUARY" amount="14">
    <graph width="600" height="400" type="PIE">
    <title> FEBRUARY</title>
    <values>
    <value name="ENGINEERING" amoun t="4"/>
    <value name="HUMAN RESOURCES" amount="1"/>
    <value name="INFO SYSTEMS" amount="1"/>
    <value name="OPERATIONS" amount="7"/>
    <value name="QUALITY" amount="1"/>
    </values>
    </graph>
    </value>
    <value name="MARCH" amount="5">
    <graph width="600" height="400" type="PIE">
    <title>MARCH</title>
    <values>
    <value name="ENGINEERING" amount="1"/>
    <value name="HUMAN RESOURCES" amount="1"/>
    <value name="INFO SYSTEMS" amount="1"/>
    <value name="OPERATIONS" amount="1"/>
    <value name="QUALITY" amount="1"/>
    </values>
    </graph>
    </value>
    </values>
    </graph>
    I've deleted alot of stuff out of it. The important lines are the DRAWSLICE.
    The expected output would have each value of DRAWSLICE1 = DRAWSLICE2, however if you run it you'll see that DRAWSLICE2 is always = 1.
    Any help appreciated,
    Jeff

    The problem is related to the fact that a call-template does not change the current node or the current node list, while a for-each does.
    When you recursively invoke call-template from within a for-each, you've changed the current node to I believe your <xsl:for-each select="values/value"> won't be finding what it thinks it will be finding.
    I hope this working stylesheet gets you going in the right direction. Given your "jeff.xml" file, it produces the output:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <root>
    <graph>
    <slice name="JANUARY" amt="25" rel-id="1" abs-id="1">
    <slice name="ENGINEERING" amt="3" rel-id="1" abs-id="2"/>
    <slice name="NEW BUSINESS/PROGRAMS" amt="2" rel-id="2" abs-id="3"/>
    <slice name="OPERATIONS" amt="16" rel-id="3" abs-id="4"/>
    <slice name="QUALITY" amt="3" rel-id="4" abs-id="5"/>
    <slice name="SAFETY" amt="1" rel-id="5" abs-id="6"/>
    </slice>
    <slice name="FEBRUARY" amt="14" rel-id="2" abs-id="7">
    <slice name="ENGINEERING" amt="4" rel-id="1" abs-id="8"/>
    <slice name="HUMAN RESOURCES" amt="1" rel-id="2" abs-id="9"/>
    <slice name="INFO SYSTEMS" amt="1" rel-id="3" abs-id="10"/>
    <slice name="OPERATIONS" amt="7" rel-id="4" abs-id="11"/>
    <slice name="QUALITY" amt="1" rel-id="5" abs-id="12"/>
    </slice>
    <slice name="MARCH" amt="5" rel-id="3" abs-id="13">
    <slice name="ENGINEERING" amt="1" rel-id="1" abs-id="14"/>
    <slice name="HUMAN RESOURCES" amt="1" rel-id="2" abs-id="15"/>
    <slice name="INFO SYSTEMS" amt="1" rel-id="3" abs-id="16"/>
    <slice name="OPERATIONS" amt="1" rel-id="4" abs-id="17"/>
    <slice name="QUALITY" amt="1" rel-id="5" abs-id="18"/>
    </slice>
    </graph>
    </root>The stylesheet looks like:
    <xsl:stylesheet version="1.0" xmlns:xsl ="http://www.w3.org/1999/XSL/Transform">
    <xsl:output indent="yes"/>
    <xsl:template match="/">
    <root>
    <xsl:apply-templates select="/graph"/>
    </root>
    </xsl:template>
    <xsl:template match="graph">
    <graph>
    <xsl:apply-templates select="values/value" mode="drawSlice"/>
    </graph>
    </xsl:template>
    <xsl:template match="value" mode="drawSlice">
    <slice name="{@name}" amt="{@amount}"
    rel-id="{position()}" abs-id="{count(preceding::value)+count(ancestor::value)+1}">
    <xsl:apply-templates select="graph/values/value" mode="drawSlice"/>
    </slice>
    </xsl:template>
    </xsl:stylesheet>I wasn't sure if you were trying to get the slice numbers to be relatively numbered to their siblings or absolutely numbered in document order, so I show both here.

  • Connect by Level using count value from record collection

    Hello:
    PROBLEM:
    ) y,(select rownum MonthNo from dual connect by level <= Cnt)
    Causes ORA-00904 Invalid identifier. Why can’t I use “Cnt” from my main query as using a constant works?
    The count value is determined for each date range in How can I return the records I need?
    Thanks, Sidney
    BACKGROUND:
    I need to be able to display a list of tax returns to my users and the status of those returns. Physical returns do not exist so it is necessary to create the data records dynamically using appropriate selects. This is not difficult and I thought I could then just use a connect by level to give me the date information so I could calculate and display the individual returns. However oracle is giving me an ORA-00904 when I try to send the “Cnt” value to connect by level. Everything works fine when I provide a constant instead of “CNT”. The “CNT” value is determined by a complex process that computes the start and stop dates for multiple return types, etc. as well as the number of periods and filing frequency. The data has to be dynamically generated using a master record which then yields the coding history from which my basic record collection is selected. Here is the result of that process:
    TaxpayerNo,TaxClass,TaxCode,FilingFequency,StartDate,StopDate,Cnt,Frequency
    10 S 1 M 6/1/2007 11/30/2008 18 12
    10 S 2 M 11/30/2008 9/30/2009 10 12
    10 S 2 Q 11/30/2010 8/18/2011 3 4
    10 L 8 A 6/1/2007 9/30/2009 3 1
    10 L 8 A 11/30/2010 8/18/2011 1 1
    From this data, I need a record for each individual month,quarter,etc. ie:
    10 S 1 M 6/1/2007 11/30/2008 18 12 6/1/2007
    10 S 1 M 6/1/2007 11/30/2008 18 12 7/1/2007
    10 S 1 M 6/1/2007 11/30/2008 18 12 8/1/2007
    10 S 1 M 6/1/2007 11/30/2008 18 12 9/1/2007
    10 S 2 M 11/30/2008 9/30/2009 10 12 11/30/2008
    10 S 2 M 11/30/2008 9/30/2009 10 12 12/30/2008
    etc.
    DOES NOT WORK
    select y.*,MonthNo,Add_Months(StartDate,MonthNo*Frequency) from (
    select x.*,
    (case when FilingFrequency = 'M' then Ceil(Months_Between(StopDate,StartDate))
    when FilingFrequency = 'Q' then Ceil(Months_Between(StopDate,StartDate)/3)
    when FilingFrequency = 'A' then Ceil(Months_Between(StopDate,StartDate)/12)
    else 0
    end) Cnt,
    (case when FilingFrequency = 'M' then 1
    when FilingFrequency = 'Q' then 3
    when FilingFrequency = 'A' then 12
    end) Frequency
    from (
    ... complex code to calculate the values of the start and stop dates needed above...
    ) x
    ) y,(select rownum MonthNo from dual connect by level <= Cnt)
    ERROR MESSAGE
    This returns ORA-00904: "CNT": Invalid Identifier. I don't get an error if I use a constant:
    WORKS USING A CONSTANT BUT MUST HAVE THE ACTUAL CNT VALUE
    ... Same code to generate data ...
    ) y,(select rownum MonthNo from dual connect by level <= 3)
    How can I get this to work using the "CNT" value instead of a constant?

    A technique like this should fix your problem.
    TUBBY_TUBBZ?with data (col1, cnt) as
      2  (
      3    select 1, 3 from dual
      4      union all
      5    select 2, 2 from dual
      6  )
      7  select
      8    d.col1,
      9    t.column_value
    10  from
    11    data  d,
    12    table(cast(multiset(select level from dual connect by level <= d.cnt) as sys.OdciNumberList)) t;
                  COL1       COLUMN_VALUE
                     1                  1
                     1                  2
                     1                  3
                     2                  1
                     2                  2
    5 rows selected.
    Elapsed: 00:00:00.00
    TUBBY_TUBBZ?As opposed to what you have now, which is basically this
    TUBBY_TUBBZ?with data (col1, cnt) as
      2  (
      3    select 1, 3 from dual
      4      union all
      5    select 2, 2 from dual
      6  )
      7  select
      8    d.col1,
      9    level
    10  from
    11    data  d
    12  connect by level <= d.cnt;
                  COL1              LEVEL
                     1                  1
                     1                  2
                     1                  3
                     2                  2
                     1                  3
                     2                  1
                     1                  2
                     1                  3
                     2                  2
                     1                  3
    10 rows selected.
    Elapsed: 00:00:00.00
    TUBBY_TUBBZ?

  • Perturbation of counter value with NI 9401

    Hello,
    I send this message because I have a problem with a counter on an NI 9401on cDAQ-9178.
    I measure an angular position with two pulse signals (increment on channel A and decrement  on channel B). There is one signal and it is a relay that directs the signal to channel A or B.
    You can see details on the attached file.
    I purchased a sample of the counter every 10ms.
    Everything works fine except when an AC motor of the machine starts or stops.
    When the AC motor starts or stops the counter value change by an offset (see attached file). If the counter is counting, I observe a negative offset. If the counter is counting down, I see a positive offset.
    If they are electrical noises, why will not offset in the direction of signal?
    How to fix the problem?
    Thank you for your help.
    Bonjour,
    J'envoi ce message car j'ai un problème sur un compteur avec une carte NI 9401 sur un cDAQ 9178.
    Je mesure une position angulaire avec deux signaux impulsionnels (Incrémentation sur la voie A et décrémentation sur la voie B). Il y a un seul signal et c'est un relai qui oriente le signal vers la voie A ou B.
    Vous pouvez voir les détails sur la photo jointe.
    Je fais une l'acquisition d'un échantillon du compteur toutes les 10ms.
    Tout fonctionne très bien sauf quand un moteur asynchrone de la machine démarre ou s'arrête.
    Au démarrage ou à l'arrêt du moteur assynchrone le compteur prend un offset (voir fichier joint). Si compteur est en comptage, j'observe un offset négatif. Si le compteur est en décomptage, j'observe un offset positif.
    Si ce sont des parasites, pourquoi l'offset ne va pas dans le sens du signal?
    Comment corriger le problème?
    Merci pour votre aide.

    Bonjour,
    le sujet est en cours de résolution à l'adresse suivante :
    http://forums.ni.com/t5/Discussions-de-produit-de-NI/Perturbation-de-la-valeur-du-compteur-avec-NI-9...
    Bonne programmation à tous !
    MathieuT
    NIF AE
    Mathieu_T
    Certified LabVIEW Developer
    Certified TestStand Developer
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    LabVIEW Tour
    Journées Techniques dans 10 villes en France, du 4 au 20 novembre 2014

  • Disturbance of counter value with NI 9401

    Hello,
    I send this message because I have a problem with a counter on an NI 9401on cDAQ-9178.
    I measure an angular position with two pulse signals (increment on channel A and decrement  on channel B). There is one signal and it is a relay that directs the signal to channel A or B.
    You can see details on the attached file.
    I purchased a sample of the counter every 10ms.
    Everything works fine except when an AC motor of the machine starts or stops.
    When the AC motor starts or stops the counter value change by an offset (see attached file). If the counter is counting, I observe a negative offset. If the counter is counting down, I see a positive offset.
    If they are electrical noises, why will not offset in the direction of signal?
    How to fix the problem?
    Thank you for your help.
    Bonjour,
    J'envoi ce message car j'ai un problème sur un compteur avec une carte NI 9401 sur un cDAQ 9178.
    Je mesure une position angulaire avec deux signaux impulsionnels (Incrémentation sur la voie A et décrémentation sur la voie B). Il y a un seul signal et c'est un relai qui oriente le signal vers la voie A ou B.
    Vous pouvez voir les détails sur la photo jointe.
    Je fais une l'acquisition d'un échantillon du compteur toutes les 10ms.
    Tout fonctionne très bien sauf quand un moteur asynchrone de la machine démarre ou s'arrête.
    Au démarrage ou à l'arrêt du moteur assynchrone le compteur prend un offset (voir fichier joint). Si compteur est en comptage, j'observe un offset négatif. Si le compteur est en décomptage, j'observe un offset positif.
    Si ce sont des parasites, pourquoi l'offset ne va pas dans le sens du signal?
    Comment corriger le problème?

    Think you John,
    After some modifications, the problem has evolved. Now the offset signal (noise) is only on the signal connected.
    I'm downloading the NI-DAQmx version 9.40 to apply digital filtering on counting.
    The filter should be set in MAX or in LabVIEW? (my program uses Labview tasks set in Max).
    Could you give me more details on the configuration of the filter on the counter. (on image, the configuration of my task with DAQmx 9.2.3
    Best Regards
    Après quelques modifications, le problème a évolué. Maintenant l'offset de signal (le bruit) est seulement sur le signal connecté.
    Je télécharge la version Ni-DAQmx 9.40 pour pouvoir appliquer un filtrage numérique sur le comptage.
    Le filtrage doit-il être paramétré dans MAX ou dans Labview ? (mon programme Labview utilise des taches configurées dans Max).
    Pouvez-vous me donner plus de détails sur la configuration du filtrage sur le comptage. (en image, la configuration de ma tache avec DAQmx 9.2.3

  • DAQmx+6009: Reading the current counter value is too slow

    I have a thread that runs a software loop that I need to run as fast as possible. One of the things I need to do is poll the current counter value from my 6009, and branch if it's changed from the last time I read it. Over 90% of the time spent in my 1.2ms loop is doing this read. My goal is to get the loop under 50us.
    What I really need here is an accurate timestamp (20us or better) for every time the counter changes (up to 1kHz). When I detect a change, I currently get the timestamp by calling QueryPerformanceCounter().
    Here's how I create the task:
        DAQmxErrChk( DAQmxCreateTask("",&taskHandle) );
        DAQmxErrChk( DAQmxCreateCICountEdgesChan( taskHandle, line, "", DAQmx_Val_Falling, 0, DAQmx_Val_CountUp ) );
        DAQmxErrChk( DAQmxStartTask(taskHandle) );
    And here's the line of code that goes so slow in my loop:
        DAQmxErrChk( DAQmxReadCounterScalarU32( taskHandle, 10.0, &count, NULL ) );

    I updated a robot control from a Mac Powerbook with a PCI expansion chasis running Mac OS9, Labview 5 and DAQ to a Mac Mini (intell) with 6009 and 6501 USB cards  running Mac OSX, Labview 8.5, and DAQmx-base.  I have connected wheel encoders (pule train and direction) to a 6009 and a 6501.  It all seems to work, except the tuning of velocity control loops is not as good as before, indicating some delays.  The loops run every 100msec (10Hz update) so I expected a synchronisation problem rather than latency.  I did some measurements today and found that reading the 2 counters and the 2 digital inputs takes over 20msec.
     I get better performance from VISA with a serial to USB converter.  I have a program reading 25byte packets every 20msec.  Although I did run into the USB latency problem with another serial application.  I have a serial device that requires a response t changing CTS (clear to send) in less than 1.2msec, and VISA was taking 1.5msec.
    On the same machine I am reading 1024 samples from an analog input every 100msec with out any timing issues - (once I got the incredibly slow start and stop vis outside the loop - they take about 200msec each.  Taking the start and stop vis outside the loop reduced my loop time from 450msec (approx) to 100msec.  The only problem is that to do this I have to run in continuous mode and can't  use an external trigger (it has to restart on every trigger, so the start and stop vis have to be in the loop).
    So it appears that I have updated my technology by 10 years only to find that USB is incredibly slow - something that is not in any of the NI doccumentation that I can find.  Does NI have any documentation on what to expect in terms of performance from these USB devices and any suggestions on how to get better performance, apart from buying more expensive hardware?
    Thanks 

  • How to get counter value from Historian

    Hi Experts,
    We have got a scenario to keep the number (counter) to see how many time a value of tag have been changed.
    For Example:
    If the values change from 1 to 0 and  0 to 1 for 25 times in a minute. We would like to get this number (25) from Historian (Wonderware).
    Currently we are not using any Pco to fetch the value from Hisotrian since we are able to fetch the tag values from Historian database through SQLConnection.
    I would like to know if we introduce Pco, will that help us to get this counter value.
    We are working on MII 15.0 version.
    Any help of this very much appreciated.
    Thanks
    Shaji

    Hi Shaji,
    PCo OPC DA does not support  PCoQuery TagAggregateMode as it only has access to Current Values of OPC Tags, because OPC DA only provides Current Value access.
    I know it is possible to execute SQL queries against the Wonderware Historian to retrieve counts aggregates, but don't have the details handy. Recommend that you deploy the InSQLPCo Data Server in MII and try using the PCoQuery TagAggregateMode method to retrieve the Counts aggregate first.
    Regards, Steve

  • How to get counter values from pci 6221 card?

    Hii
     I am using PCI 6221 card .. In that i am using the ctr o .. In my application i am using Linear encoder to measure the Lift movement.. so from software how to access the counter values i.e how much mm it moves... 

    Measure Angular Position.vi in the LabVIEW examples will be a good starting point. Adapt it to Linear Encoder by clicking on the selector below DAQmx Create Channel.vi.
    You can also create a corresponding DAQmx Global Channel (or task) in MAX and then use it in your code.
    Feel free to post back if you need further help.
    Message Edité par JB le 10-31-2008 02:15 PM

  • Rounding off value problem in sales order

    Hi All,
    This is related to a rounding off value problem in sales order.
    The problem is described by an example which is as follows -
    Selling Price of Material A = Rs. 176.76
    Excise charged = Rs. 21.80
    Total Price = Rs.176.76 + Rs.21.80 = Rs. 198.56
    On this total Trade Discount (ZDTD) having access sequence,is calculated  at the rate of 4% = Rs. 7.94
    But the condition base value after the discount is showing Rs.198.60 instead of Rs.198.56
    I want the system to reflect the value as Rs.198.56 intact and it should not round up to the nearest value i.e. Rs. 198.60
    Why is this happening? Is it possible to reflect the exact value? If yes what is needed to be done?
    The commercial round off is activated for the DIFF Condition Type.
    Looking forward to some valuable suggestions.
    Thanks & Regards
    Priyanka Mitra

    Hi Ramesh,
    Thanks for your suggestion but the problem has been solved by me.
    Regards
    Priyanka Mitra

  • How to get seeburger work bench counter value

    hi all,
    i want to get the current counter value in the seeburger workbech counter.
    i used the following function suggested in one of the threads in forum, but its giving the below error
    func used:
    try {
    VariableBean be=VariableFactory.getVariableInstance("");
    return be.getStringVariable(variableName);
    } catch (Exception e) {
    throw new RuntimeException(e);
    error:
    RuntimeException in Message-Mapping transformation: Exception:[java.lang.RuntimeException: java.lang.RuntimeException: VariableBeanServlet: Could not call getVariable() method of the Servlet. Cause=java.lang.ClassCastException]
    i guess this above function is to get variable value and not counter value. can any body give me code to get counter value.
    Thanks a lot in addvance
    Regards,
    Rashmi
    Edited by: Rashmi H S on Aug 12, 2009 2:30 PM

    use getCounter
       //write your code here
    try {
    CounterBean be=CounterFactory.getCounterInstance();
    return ""be.getCounter("counterName_"b"_"a );
    } catch (Exception e) { 
        throw new RuntimeException(e.getMessage()); 
    will return the same counter what you have ,I also had same scenario what you are facing recently
    HTH
    Rajesh
    Edited by: Rajesh on Aug 13, 2009 7:49 PM

  • Idoc to file scenario which involves accessing a persistant counter value

    Hi,
    Presently Iam dealing with an idoc to file scenario in which I need to map the idoc info and also a persistant counter value to a flat file. So in how many ways can we maintain a persistant counter value(either by variable/file/database)? Please can any one help me in overcoming this scenario by providing any implemented example.

    Hi,
    Please see the following links , you can use database is best.
    /people/prasad.illapani/blog/2006/10/25/how-to-check-jdbc-sql-query-syntax-and-verify-the-query-results-inside-a-user-defined-function-of-the-lookup-api
    /people/michal.krawczyk2/blog/2005/09/15/xi-rfc-mapping-lookups-from-bc-to-xi
    /people/morten.wittrock/blog/2006/03/30/wrapping-your-mapping-lookup-api-code-in-easy-to-use-java-classes
    /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
    /people/alexander.schuchman/blog/2005/09/29/ipc-customization--add-additional-subtotals-and-include-rebate-conditions
    Regards
    Chilla..

  • XI Adapter Illegal count value 0

    Hi all,
    When configuring the PI Adapter to connect for outbound messaging from MDM, we are receiving the following error:
    Illegal Count Value 0
    This error is in the Component Monitoring.
    Looking in the logs, this seems to be occuring because of the error here:
    Catching java.lang.Exception: Illegal count value 0.
    at com.sap.mdm.xiadapter.util.MdmUtil.getPortProperties(MdmUtil.java:98)
    at com.sap.mdm.xiadapter.AbstractMdmAdapter.start(AbstractMdmAdapter.java:214)
    at com.sap.mdm.xiadapter.MdmSender.start(MdmSender.java:46)
    at com.sap.mdm.xiadapter.jca.XIConfiguration.channelAdded(XIConfiguration.java:160)
    at com.sap.aii.af.service.administration.impl.AdminManagerImpl.notifyChannelActivationStateChanged(AdminManagerImpl.java:796)
    at com.sap.aii.af.service.administration.impl.cluster.ClusterManager.eventReceivedSync(ClusterManager.java:426)
    at com.sap.aii.af.service.event.impl.worker.sync.SyncLocalWorker.work(SyncLocalWorker.java:52)
    at com.sap.aii.af.service.event.impl.worker.sync.AbstractSyncWorker.startWork(AbstractSyncWorker.java:40)
    at com.sap.aii.af.service.event.impl.EventManagerImpl.sendEventAndWaitForAnswer(EventManagerImpl.java:484)
    Could anyone provide any advice on this?  The error occurs even if the Port is deliberately configured incorrectly, but only occurs when the Remote System is correctly configured.  Changing the user seemed to make no difference.
    We are using 7.1 SP05
    Thanks in advance,
    David
    Edited by: David Apthorpe on Jul 21, 2010 3:54 PM

    Hi David,
    The error "Configuration Error:illegel count 0" will be fixed MDM 7.1 SP05 Patch06 (bulid 7.1.05.87) which is planned to be released by beginning CW 32 2010.
    This issue only  occured for only Prior to created Communcation Channel SPO5.
    If you create Communcation Channel After Upgarde SP05 ,The messages successfully processed t
    o MDM server(Ready folder).
    Regards,
    Ramesh

  • DB adapter retry count value

    Hi gurus,
    I am using a db adapter for polling options. The option used is 'Delete the row(s) that were read' .
    Here the retry count by default is set to unlimited. Is this the recommended one? In normal db adapter options i see the retry count as '4'
    the property value seen in composite.xml is shown below
    <property name="jca.retry.count" type="xs:int" many="false" override="may">2147483647</property>
    Will this lead to any performance issues? Or what could be the correct retry count value?
    Please let us know.

    Hi,
    We have used the polling options using Logical delete vastly in our project and never faced any performance issues with respect to this property value being set to 'unlimited'.
    I believe there should not be any performance issues with respect to the 'Delete the row(s) that were read' option as well.
    According Oracle documentation:
    In the Auto-Retries section, specify the value for auto-retry incase of time out. In case of a connection related fault, the Invoke activity can be automatically retried a limited number of times. You can specify the following values in the fields in this section:
    To retry indefinitely, type unlimited in the Attempts field.
    Interval is the delay between retries.
    Backoff Factor: x allows you to wait for increasing periods of time between retries. 9 attempts with a starting interval of 1 and a back off of 2 leads to retries after 1, 2, 4, 8, 16, 32, 64, 128, and 256 (28) seconds.
    Thanks,
    Deepak.

  • How to dynamically set Min count and Max Count values in Adobe Print Form?

    How to set the Min Count and Max Count values dynamically in a Print Form?
    The values when set should over ride the values set in Binding Tab.
    This is all needed to print multiple Material Number labels on a single page - and the number of labels to be printed needs to be under user control - something like an Avery Address labels
    Please advise.
    Thanks,

    Here is a work around that works for me and may not be an intelligent solution .
    I kept the Min Count to 1 on the subform binding properties.
    Per the number of labels required, I appended the same item to the internal table so many times and passed it to the label.
    it works fine for my requirement.
    However - leaving out the post for a while to see if this can be done at the form level via scripting.
    Thanks,

Maybe you are looking for

  • ITunes wont open at all since incomplete update

    Tried to install latest update and rec'd an error code.  Ever since then (2 days ago) itunes wont open at all.  I tried to install again via the Apple website..  Still wont open.  Should I uninstall and reinstall?  Will my library remain stored?  

  • Payment Document Number

    Hi everybody. I am fairly new to Oracle Financial. My user is currently creating multiple document names (e.g. Check, Check-1, Check-2, etc.) in Payment Documents for the different physical check books that they receive from the bank. My user was ask

  • Newbie here having input problems

    Hi, I'm still very new to Java and I'm basically learning it on my own right now. I think my current problem is with the way I'm reading in the input. Since my entire program right now is over 100 lines, I'll only post how I'm reading input in, and h

  • System preferences freezes

    When i open my system preferences, it freezes. i have done a force quit, restart, shut down still freezes. When it opens all it says is loading images.

  • Flash cs4 trial uninstall - wont uninstall

    When I looked at the forum list - i saw no option or forum for installation issues - adobe search results were worse than google's - so i'm posting here in hopes of a human response.... Adobe support has not responsed for the last five days - so i gu