Counter 6321

 Hello
I use a capture card PCI-Express 6321, I measured Fréquency a way of counting (ctr0), my problem is I can not be precise enough, in fact, I measure up
to 20 000, 21000 or 23000 Hz and I wish I could more accurately ie 23 150 Hz for example. How do I do?
In my application, I used the NI-DAQ with LabView MX 8.6; Configuring the way of counting: counting with 2 High frequency counters, Unit: Hz
Thank you in advance for your reply.
@ +
Laurent 
Bonjour,
J'utilise une carte d'acquisition PCI-Express 6321, je dois mesure la Fréqence sur une voie de comptage (ctr0), mon problème vient que je n'arrive pas à être assez précis, en effet, je mesure des valeurs de 20 000, 21 000 ou 23 000 Hz et j'aimerai pouvoir plus de précision c'est à dire 23 150 Hz par exemple. Comment puis-je faire?
Dans mon application, j'ai utilisé les drivers NI-DAQ Mx avec LabView 8.6.
Configuration de la voie de comptage : comptage Haute fréquence avec 2 compteurs, unité : Hz.
Merci d'avance pour votre réponse.
@+
Laurent

Based on my reading of the data sheet for the PCI-6321 card, there are 4 counters with 32-bit resolution with 3 internal base clocks available, 100MHz, 20MHz and 100kHz.  You could specify the 100MHz base clock and then set the 23150 Hz sample rate request and then use the "get actual rate" to see what the actual rate is?
You can also feed in a clock signal from an external source, so you could use a signal generator to generate exactly 23150 Hz and use that source to sample the raw data.
Or, maybe a different idea, feed the signal you want to measure at 23150 Hz into an Analog Input and sample the input at the card's maximum sample rate of 250kS/s and post process the data?
Good Luck.

Similar Messages

  • SAP ALE connection with EDI sub-system

    We are using the SAP ALE functionality to connect to the EDI sub-system, rather than the traditional way (creating IDoc flat files). For this setup also, the RFC type is TCP/IP type. But I'm not sure of the various other details to complete the setup. Rather I guess, I don't know which is the correct program to run on the Application Server.
    Look at the error text below, and tell me if this is not working because I cannot connect to the program on the application sever?
    RFC connection type: T (TCP/IP)
    Activation type: Start on Application server
    Program: /usr/sap/D05/SYS/exe/run/rfcexec.sec
    Test connection error:
    ERROR                timeout during allocate                        
    LOCATION             SAP-Gateway on host jua-sap-dev / sapgw02      
    DETAIL               no connect of TP /usr/sap/D05/SYS/exe/run/rfcexec.sec from host jua-sa
    COMPONENT            SAP-Gateway                                    
    COUNTER              6321                                           
    MODULE               gwr3cpic.c                                     
    LINE                 5774                                           
    RETURN CODE          242                                            
    SUBRC                    0                                          
    RELEASE              640                                            
    TIME                 Thu May  3 17:01:32 2007                       
    VERSION              2

    Hi Vinodh,
    I am facing the same issue right now with GIS. Did you get the solution for this please?
    Regards,
    Deepesh Datt.

  • PCIe-6321 counter failing at high frequency

    I'm trying to use the counter on the 6321 as a frequency divider that takes an 80 MHz sin wave input and generates a 10 MHz square wave output by digitizing the output of a 50 ohm device on PFI0.  The specifications to for my board list a counter "Max Source Frequency" of 100 MHz, leading me to believe that 80 MHz should be possible.  However, in my experimenting while the counter based divider works very well at lower frequencies, it fails at about 35 MHz by missing edges.  The result is an  unstable output frequency that bounces between 8:1 division, 9:1, 10:1... depending on how many  edges are missed.
    To explore this problem further, I swapped out my 2 meter 68-pin VHDCI for a 1 meter and plugged my function generator into the break out board with a < 30 cm cable, thinking that perhaps impedance mismatch was an issue.  However, even with < 1.5 m,  the device still works at 30 MHz and fails at 35 MHz.  This suggests to me that impedance mismatch is not the problem, as the maximum frequency was unchanged even though the cable length was nearly halved.   
    Is there something else I'm missing?  Is there a faster interface than PFI?  Or someway to 50 ohm terminate the device? 

    I see what you mean, but I guarantee you can't pass a 100 MHz signal through the X Series PFI lines.  ~25 MHz is what the bandwidth of the protection circuit is specified for (it's mentioned in this KB for instance).  I'm not sure offhand about the RTSI lines though (it might be worth an experiment as the bandwidth doesn't seem to be specified anywhere, but I wouldn't be too optimistic).
    As for other NI hardware, the 6602 can take an external source up to 80 MHz on its PFI lines assuming the input signal is a clean square wave at TTL voltage levels (I've actually pushed this up to 100 MHz in the past, but your results may vary).  It is programmed in DAQmx like the 6321.
    Or you could just implement this with an external circuit (e.g. comparator + ICS542).
    Best Regards,
    John Passiak

  • Photon Counting on 6321

    I am attempting to count photons from 2 photomultiplier tubes (PMT) using Labview. I currently have written a program which will count from a single PMT. I was wondering if the manor in which I wrote the program will reliably count up to 1 MHz, which I believe the card can do, and if it is the best way to write this code. I am relatively new to LabView (esspecially counting).
    The program is designed to take a count every 10 - 100 ms and store them for analysis later. I will at somepoint require a program like this to run for up to an hour. It would also be nice if the counter reset evertime instead of reporting the summation of the counts.
    Using labview 2012.
    Thank you,
    A
    Attachments:
    Simple Count.vi ‏89 KB

    Your 6321 has a max samplerate of 250kSPS , so if you need to measure your pulse energy and assuming 5 samples per pulse you can go up to 50kHz ....
    (less since it's statistic)
    And you will need some pulse shaping .... (a 7 step RC,OP buffer chain? )
    Since it is a multiplexing card, make shure that your pulse shaping circuit has a low output impedance (more 1Ohm than 50Ohm and close to the DAQ)  (take a look at the settling time error in the spec)
    Crosstalk between the channels need to be investigated.
    Look at the examples about DAQ streaming TDMS data to file.
    Think about a producer-consumer architekture. One loop is reading (producer) and one loop is saving (consumer 1) and two more loops take copied slices of the data to make online monitoring ...
    If you just want to count the pulses, you can use the internal counter, up to 1Mhz shouldn't be a problem (again a fast pulse chaper, comparator needed)
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

  • Using AI Sample Clock to Trigger Counter Samples

    My basic question is:  Is the ai\SampleClock signal only active while an analog input task is running?
    The details are:
    I have an X-series PCIe-6321 multifunction DAQ card.  It is controlling a SCXI chassis and has a SCXI-1180 and SCXI-1302 so I can control analog inputs of the chassis as well as access the 4 counter  on the card.  My application requires that I use all 4 counters to measure a frequency input signal and synchronize the samples to the analog input signals.  I have created 5 tasks, 1 for the AI and 1 for each counter.
    I am using LabVIEW 8.6.1 with the latest NI-DAQ drivers on and 64-bit Vista OS 
    1. Are there any driver or hardware restrictions that would cause this solution not to work? 
    2. Can I use the ai\SampleClock as in input sample clock for each of the frequency tasks?  If I do this will the sampling start be syncronized?  I.e. if I start each of the frequency tasks first, will they wait until the AI task is started before they start sampling?
    3. If that doesn't work, do I need to route the sample clock from the AI task to a PFI line (PFI1) and then use that as input to the frequency task sample clock? 
    I usually do option 3 when synchronizing two cards in  PXI chassis and only use the software task start in stead of of synchronizing on a digital start, since the sample clock will control the samples anyway.  I need to know if the same behaviour works with the scenario above.
    Thanks,
    Bob
    Prolucid Technolgies Inc. 
    Solved!
    Go to Solution.

    Hi Bob,
    I can confirm that the ai/SampleClock will only be active while the AI task is running.  As far as the other questions go:
    1.  You'd have to provide more information about what you looking to do exactly, but there is no problem with routing the sample clock of the Analog Input task to be used with the Counters.  I would read through the section of the X Series User Manual that discusses sample-clocked frequency measurements (starting on page 7-16) for some more information about what is actually going on during this configuration to make sure it suits your requirements. 
    The frequency of the signal to be measured should be at least twice as fast as the sample clock of your AI task.
    2.   You can indeed route the signal to all four tasks at the same time (you can refer to the Device Routes page in MAX to double-check routing restrictions).  The sampling will be synchronized provided the four counters are started before the AI task, but the counters will be armed at different times unless you configure an Arm Start Trigger (see page 7-45 of the X Series User Manual).  I would consider using the ai/StartTrigger if you wish to do this. 
    The effect of not arming the counters at the same time would be a different number of periods to average on each counter for the very first sample (assuming averaging is enabled).  This might not be a big concern but I just wanted to point it out.
    3.  The routes are available internal to the board so external routing isn't necessary, you can just specify to use the AI Sample clock for the clock of each counter and the routes will be made for you.  If you prefer to export the signal on a PFI line and route it back in on a different PFI line this option is also available to you but shouldn't be necessary.
    I hope this helps you get started.  I'd make sure to take a look at chapter 7 of the X Series User Manual if you get a chance since it describes how all of the counter configurations work in more detail.  If you have any related questions don't hesitate to post back.
    Best Regards,
    John
    Message Edited by John P on 12-01-2009 07:52 PM
    John Passiak

  • SCOM DFS Backlog count is giving FALSE alert

    Hi  ;
    I've created a backlog count monitor using a 2 state monitor ( which I got from http://arbappy.blogspot.hk/2012/04/create-scom-2007-r2-monitor-to-alert-on.html )
    It is used to monitor 70 of our DFS servers.
    The monitor should be working under this rule :-
    1) if backlog count is greater or equal to 5000 files , status become unhealthy(critical) and alert is generated.
    2) if backlog is less than 5000 , status is healthy and no alert is generated.
    I have configured the subscription only to send critical alerts.
    Problem is that I do get alert for healthy status and it happens only to some servers.On top, it is random. Today could be X server , tomorrow could be Y . Both are healthy ( which meant having less than 5000 files.) . It seems the rule is not working really
    well. Any help is much appreciated.
    Cheers
    megat

    1. About the different time stamp, I think because the server is located on a different time zone from the RMS. The server is 2 hours earlier .
    2. Backlogcountfile is property of replicationconnection ? I guess so. Nevertheless could you advise to confirm that.
    3. Below is the XML which I managed to export.
    <ManagementPack ContentReadable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <Manifest>
        <Identity>
          <ID>RWDFSBACKLOGMONITORINGSCRIPTSMMO</ID>
          <Version>1.0.0.0</Version>
        </Identity>
        <Name>RW_DFS_BACKLOG_MONITORING_SCRIPTS_MMO</Name>
        <References>
          <Reference Alias="MicrosoftWindowsDfsReplication6063210">
            <ID>Microsoft.Windows.DfsReplication</ID>
            <Version>6.0.6321.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
          <Reference Alias="MicrosoftWindowsLibrary6172210">
            <ID>Microsoft.Windows.Library</ID>
            <Version>6.1.7221.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
          <Reference Alias="SystemLibrary6172210">
            <ID>System.Library</ID>
            <Version>6.1.7221.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
          <Reference Alias="SystemCenter">
            <ID>Microsoft.SystemCenter.Library</ID>
            <Version>6.1.7221.61</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
          <Reference Alias="Health">
            <ID>System.Health.Library</ID>
            <Version>6.1.7221.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
        </References>
      </Manifest>
      <Monitoring>
        <Monitors>
          <UnitMonitor ID="UIGeneratedMonitor61be896a832e4ffa8868c1e10c6711cc" Accessibility="Public" Enabled="false" Target="MicrosoftWindowsDfsReplication6063210!Microsoft.Windows.DfsReplication.ReplicationConnection" ParentMonitorID="Health!System.Health.AvailabilityState"
    Remotable="true" Priority="Normal" TypeID="MicrosoftWindowsLibrary6172210!Microsoft.Windows.TimedScript.ThreeStateMonitorType" ConfirmDelivery="false">
            <Category>Custom</Category>
            <AlertSettings AlertMessage="UIGeneratedMonitor61be896a832e4ffa8868c1e10c6711cc_AlertMessageResourceID">
              <AlertOnState>Error</AlertOnState>
              <AutoResolve>true</AutoResolve>
              <AlertPriority>High</AlertPriority>
              <AlertSeverity>Error</AlertSeverity>
              <AlertParameters>
                <AlertParameter1>$Target/Property[Type="MicrosoftWindowsDfsReplication6063210!Microsoft.Windows.DfsReplication.ReplicationConnection"]/ReplicationGroupName$</AlertParameter1>
                <AlertParameter2>$Target/Property[Type="MicrosoftWindowsDfsReplication6063210!Microsoft.Windows.DfsReplication.ReplicationConnection"]/ReplicatedFolderName$</AlertParameter2>
                <AlertParameter3>$Target/Property[Type="MicrosoftWindowsDfsReplication6063210!Microsoft.Windows.DfsReplication.ReplicationConnection"]/SendingMemberName$</AlertParameter3>
                <AlertParameter4>$Target/Property[Type="MicrosoftWindowsDfsReplication6063210!Microsoft.Windows.DfsReplication.ReplicationConnection"]/ReceivingMemberName$</AlertParameter4>
                <AlertParameter5>$Target/Property[Type="MicrosoftWindowsDfsReplication6063210!Microsoft.Windows.DfsReplication.ReplicationConnection"]/BacklogCount$</AlertParameter5>
                <AlertParameter6>$Target/Property[Type="SystemLibrary6172210!System.Entity"]/DisplayName$</AlertParameter6>
              </AlertParameters>
            </AlertSettings>
            <OperationalStates>
              <OperationalState ID="UIGeneratedOpStateId751249f015634144b909f400c3106b84" MonitorTypeStateID="Success" HealthState="Success" />
              <OperationalState ID="UIGeneratedOpStateId7c713b8c8aa44c518dbc05007f38b71e" MonitorTypeStateID="Warning" HealthState="Warning" />
              <OperationalState ID="UIGeneratedOpStateIdcda0005310e9480dba2726cc8fc9e1d3" MonitorTypeStateID="Error" HealthState="Error" />
            </OperationalStates>
            <Configuration>
              <IntervalSeconds>60</IntervalSeconds>
              <SyncTime />
              <ScriptName>RW-DFS-SCRIPT-MMO.vbs</ScriptName>
              <Arguments>$Target/Property[Type="MicrosoftWindowsDfsReplication6063210!Microsoft.Windows.DfsReplication.ReplicationConnection"]/BacklogCount$</Arguments>
              <ScriptBody>Set oArgs = WScript.Arguments
    numbers=oArgs(0)
    Dim oAPI, oBag
    Set oAPI = CreateObject("MOM.ScriptAPI")
    Set oBag = OAPI.CreatePropertyBag()
    Call oBag.AddValue("BackLogCountFile",numbers)
    Call oAPI.Return(oBag)</ScriptBody>
              <TimeoutSeconds>1200</TimeoutSeconds>
              <ErrorExpression>
                <SimpleExpression>
                  <ValueExpression>
                    <XPathQuery Type="String">Property[@Name='BackLogCountFile']</XPathQuery>
                  </ValueExpression>
                  <Operator>GreaterEqual</Operator>
                  <ValueExpression>
                    <Value Type="String">5000</Value>
                  </ValueExpression>
                </SimpleExpression>
              </ErrorExpression>
              <WarningExpression>
                <And>
                  <Expression>
                    <SimpleExpression>
                      <ValueExpression>
                        <XPathQuery Type="String">Property[@Name='BackLogCountFile']</XPathQuery>
                      </ValueExpression>
                      <Operator>GreaterEqual</Operator>
                      <ValueExpression>
                        <Value Type="String">100</Value>
                      </ValueExpression>
                    </SimpleExpression>
                  </Expression>
                  <Expression>
                    <SimpleExpression>
                      <ValueExpression>
                        <XPathQuery Type="String">Property[@Name='BackLogCountFile'] </XPathQuery>
                      </ValueExpression>
                      <Operator>Less</Operator>
                      <ValueExpression>
                        <Value Type="String">5000</Value>
                      </ValueExpression>
                    </SimpleExpression>
                  </Expression>
                </And>
              </WarningExpression>
              <SuccessExpression>
                <And>
                  <Expression>
                    <SimpleExpression>
                      <ValueExpression>
                        <XPathQuery Type="String">Property[@Name='BackLogCountFile']</XPathQuery>
                      </ValueExpression>
                      <Operator>GreaterEqual</Operator>
                      <ValueExpression>
                        <Value Type="String">0</Value>
                      </ValueExpression>
                    </SimpleExpression>
                  </Expression>
                  <Expression>
                    <SimpleExpression>
                      <ValueExpression>
                        <XPathQuery Type="String">Property[@Name='BackLogCountFile']</XPathQuery>
                      </ValueExpression>
                      <Operator>Less</Operator>
                      <ValueExpression>
                        <Value Type="String">100</Value>
                      </ValueExpression>
                    </SimpleExpression>
                  </Expression>
                </And>
              </SuccessExpression>
            </Configuration>
          </UnitMonitor>
          <UnitMonitor ID="UIGeneratedMonitor73d3c5593c8e43ef8ff223d94c1c1ebc" Accessibility="Public" Enabled="true" Target="MicrosoftWindowsDfsReplication6063210!Microsoft.Windows.DfsReplication.ReplicationConnection" ParentMonitorID="Health!System.Health.AvailabilityState"
    Remotable="true" Priority="Normal" TypeID="MicrosoftWindowsLibrary6172210!Microsoft.Windows.TimedScript.TwoStateMonitorType" ConfirmDelivery="false">
            <Category>Custom</Category>
            <AlertSettings AlertMessage="UIGeneratedMonitor73d3c5593c8e43ef8ff223d94c1c1ebc_AlertMessageResourceID">
              <AlertOnState>Error</AlertOnState>
              <AutoResolve>true</AutoResolve>
              <AlertPriority>High</AlertPriority>
              <AlertSeverity>MatchMonitorHealth</AlertSeverity>
              <AlertParameters>
                <AlertParameter1>$Target/Property[Type="MicrosoftWindowsDfsReplication6063210!Microsoft.Windows.DfsReplication.ReplicationConnection"]/ReplicationGroupName$</AlertParameter1>
                <AlertParameter2>$Target/Property[Type="MicrosoftWindowsDfsReplication6063210!Microsoft.Windows.DfsReplication.ReplicationConnection"]/ReplicatedFolderName$</AlertParameter2>
                <AlertParameter3>$Target/Property[Type="MicrosoftWindowsDfsReplication6063210!Microsoft.Windows.DfsReplication.ReplicationConnection"]/SendingMemberName$</AlertParameter3>
                <AlertParameter4>$Target/Property[Type="MicrosoftWindowsDfsReplication6063210!Microsoft.Windows.DfsReplication.ReplicationConnection"]/ReceivingMemberName$</AlertParameter4>
                <AlertParameter5>$Target/Property[Type="MicrosoftWindowsDfsReplication6063210!Microsoft.Windows.DfsReplication.ReplicationConnection"]/BacklogCount$</AlertParameter5>
                <AlertParameter6>$Target/Property[Type="SystemLibrary6172210!System.Entity"]/DisplayName$</AlertParameter6>
              </AlertParameters>
            </AlertSettings>
            <OperationalStates>
              <OperationalState ID="UIGeneratedOpStateIdd2ce36df64964c848bd1a155c2d3d56b" MonitorTypeStateID="Success" HealthState="Success" />
              <OperationalState ID="UIGeneratedOpStateId77f67a08c47d4d4b9677a854aef66cc9" MonitorTypeStateID="Error" HealthState="Error" />
            </OperationalStates>
            <Configuration>
              <IntervalSeconds>86400</IntervalSeconds>
              <SyncTime>07:40</SyncTime>
              <ScriptName>RW_DFS_TwoBasedLine.vbs</ScriptName>
              <Arguments>$Target/Property[Type="MicrosoftWindowsDfsReplication6063210!Microsoft.Windows.DfsReplication.ReplicationConnection"]/BacklogCount$</Arguments>
              <ScriptBody>Set oArgs = WScript.Arguments
    numbers=oArgs(0)
    Dim oAPI, oBag
    Set oAPI = CreateObject("MOM.ScriptAPI")
    Set oBag = OAPI.CreatePropertyBag()
    Call oBag.AddValue("BackLogCountFile",numbers)
    Call oAPI.Return(oBag)</ScriptBody>
              <TimeoutSeconds>3600</TimeoutSeconds>
              <ErrorExpression>
                <SimpleExpression>
                  <ValueExpression>
                    <XPathQuery Type="String">Property[@Name='BackLogCountFile']</XPathQuery>
                  </ValueExpression>
                  <Operator>GreaterEqual</Operator>
                  <ValueExpression>
                    <Value Type="String">5000</Value>
                  </ValueExpression>
                </SimpleExpression>
              </ErrorExpression>
              <SuccessExpression>
                <And>
                  <Expression>
                    <SimpleExpression>
                      <ValueExpression>
                        <XPathQuery Type="String">Property[@Name='BackLogCountFile']</XPathQuery>
                      </ValueExpression>
                      <Operator>GreaterEqual</Operator>
                      <ValueExpression>
                        <Value Type="String">0</Value>
                      </ValueExpression>
                    </SimpleExpression>
                  </Expression>
                  <Expression>
                    <SimpleExpression>
                      <ValueExpression>
                        <XPathQuery Type="String">Property[@Name='BackLogCountFile']</XPathQuery>
                      </ValueExpression>
                      <Operator>Less</Operator>
                      <ValueExpression>
                        <Value Type="String">5000</Value>
                      </ValueExpression>
                    </SimpleExpression>
                  </Expression>
                </And>
              </SuccessExpression>
            </Configuration>
          </UnitMonitor>
        </Monitors>
      </Monitoring>
      <Presentation>
        <Folders>
          <Folder ID="Folder_dcff3c90ef4740ff97397eb40d82225f" Accessibility="Public" ParentFolder="SystemCenter!Microsoft.SystemCenter.Monitoring.ViewFolder.Root" />
        </Folders>
        <StringResources>
          <StringResource ID="UIGeneratedMonitor61be896a832e4ffa8868c1e10c6711cc_AlertMessageResourceID" />
          <StringResource ID="UIGeneratedMonitor73d3c5593c8e43ef8ff223d94c1c1ebc_AlertMessageResourceID" />
        </StringResources>
      </Presentation>
      <LanguagePacks>
        <LanguagePack ID="DAN" IsDefault="false">
          <DisplayStrings>
            <DisplayString ElementID="RWDFSBACKLOGMONITORINGSCRIPTSMMO">
              <Name>RW_DFS_BACKLOG_MONITORING_SCRIPTS_MMO</Name>
            </DisplayString>
            <DisplayString ElementID="Folder_dcff3c90ef4740ff97397eb40d82225f">
              <Name>RW_DFS_BACKLOG_MONITORING_SCRIPTS_MMO</Name>
            </DisplayString>
            <DisplayString ElementID="UIGeneratedMonitor61be896a832e4ffa8868c1e10c6711cc">
              <Name>RW_DFS-R BACKLOG COUNT MONITOR</Name>
            </DisplayString>
            <DisplayString ElementID="UIGeneratedMonitor61be896a832e4ffa8868c1e10c6711cc" SubElementID="UIGeneratedOpStateId751249f015634144b909f400c3106b84">
              <Name>Healthy</Name>
            </DisplayString>
            <DisplayString ElementID="UIGeneratedMonitor61be896a832e4ffa8868c1e10c6711cc" SubElementID="UIGeneratedOpStateIdcda0005310e9480dba2726cc8fc9e1d3">
              <Name>Unhealthy</Name>
            </DisplayString>
            <DisplayString ElementID="UIGeneratedMonitor61be896a832e4ffa8868c1e10c6711cc" SubElementID="UIGeneratedOpStateId7c713b8c8aa44c518dbc05007f38b71e">
              <Name>Degraded</Name>
            </DisplayString>
            <DisplayString ElementID="UIGeneratedMonitor61be896a832e4ffa8868c1e10c6711cc_AlertMessageResourceID">
              <Name>Replication Backlog Alert</Name>
              <Description>Incident Team :- Backlog of DFS Server
    Replication Group:
    {0}
    Replicated Folders:
    {1}
    Sending member:
    {2}
    Receiving member:
    {3}
    Backlog Count:
    {4}
    Display Name : {5}</Description>
            </DisplayString>
            <DisplayString ElementID="UIGeneratedMonitor73d3c5593c8e43ef8ff223d94c1c1ebc">
              <Name>RW_DFS_Backlog_Count_TwoBasedLine_MMO</Name>
              <Description>This monitor is for Incident Team</Description>
            </DisplayString>
            <DisplayString ElementID="UIGeneratedMonitor73d3c5593c8e43ef8ff223d94c1c1ebc" SubElementID="UIGeneratedOpStateId77f67a08c47d4d4b9677a854aef66cc9">
              <Name>Unhealthy</Name>
            </DisplayString>
            <DisplayString ElementID="UIGeneratedMonitor73d3c5593c8e43ef8ff223d94c1c1ebc" SubElementID="UIGeneratedOpStateIdd2ce36df64964c848bd1a155c2d3d56b">
              <Name>Healthy</Name>
            </DisplayString>
            <DisplayString ElementID="UIGeneratedMonitor73d3c5593c8e43ef8ff223d94c1c1ebc_AlertMessageResourceID">
              <Name>RW_DFS_Backlog_Count_TwoBasedLine_MMO</Name>
              <Description>Incident Team :- DFS Backlog Files ( run at 0400 daily)
    Replication Group:
    {0}
    Replicated Folders:
    {1}
    Sending member:
    {2}
    Receiving member:
    {3}
    Backlog Count:
    {4}
    Display Name : {5}</Description>
            </DisplayString>
          </DisplayStrings>
        </LanguagePack>
        <LanguagePack ID="ENU" IsDefault="false">
          <DisplayStrings>
            <DisplayString ElementID="RWDFSBACKLOGMONITORINGSCRIPTSMMO">
              <Name>RW_DFS_BACKLOG_MONITORING_SCRIPTS_MMO</Name>
            </DisplayString>
            <DisplayString ElementID="Folder_dcff3c90ef4740ff97397eb40d82225f">
              <Name>RW_DFS_BACKLOG_MONITORING_SCRIPTS_MMO</Name>
            </DisplayString>
            <DisplayString ElementID="UIGeneratedMonitor61be896a832e4ffa8868c1e10c6711cc">
              <Name>RW_DFS-R BACKLOG COUNT MONITOR</Name>
            </DisplayString>
            <DisplayString ElementID="UIGeneratedMonitor61be896a832e4ffa8868c1e10c6711cc" SubElementID="UIGeneratedOpStateId751249f015634144b909f400c3106b84">
              <Name>Healthy</Name>
            </DisplayString>
            <DisplayString ElementID="UIGeneratedMonitor61be896a832e4ffa8868c1e10c6711cc" SubElementID="UIGeneratedOpStateIdcda0005310e9480dba2726cc8fc9e1d3">
              <Name>Unhealthy</Name>
            </DisplayString>
            <DisplayString ElementID="UIGeneratedMonitor61be896a832e4ffa8868c1e10c6711cc" SubElementID="UIGeneratedOpStateId7c713b8c8aa44c518dbc05007f38b71e">
              <Name>Degraded</Name>
            </DisplayString>
            <DisplayString ElementID="UIGeneratedMonitor61be896a832e4ffa8868c1e10c6711cc_AlertMessageResourceID">
              <Name>RW_DFS-R BACKLOG_COUNT_MONITOR_MMO</Name>
              <Description>This alert is run every one hour to see any back log. Kindly contact
    Megat for further details.</Description>
            </DisplayString>
            <DisplayString ElementID="UIGeneratedMonitor73d3c5593c8e43ef8ff223d94c1c1ebc">
              <Name>RW_DFS_Backlog_Count_TwoBasedLine_MMO</Name>
              <Description>This monitor is for Incident Team</Description>
            </DisplayString>
            <DisplayString ElementID="UIGeneratedMonitor73d3c5593c8e43ef8ff223d94c1c1ebc" SubElementID="UIGeneratedOpStateId77f67a08c47d4d4b9677a854aef66cc9">
              <Name>Unhealthy</Name>
            </DisplayString>
            <DisplayString ElementID="UIGeneratedMonitor73d3c5593c8e43ef8ff223d94c1c1ebc" SubElementID="UIGeneratedOpStateIdd2ce36df64964c848bd1a155c2d3d56b">
              <Name>Healthy</Name>
            </DisplayString>
            <DisplayString ElementID="UIGeneratedMonitor73d3c5593c8e43ef8ff223d94c1c1ebc_AlertMessageResourceID">
              <Name>RW_DFS_Backlog_Count_TwoBasedLine_MMO</Name>
              <Description>Incident Team :- Backlog of DFS Server_TwoBasedLine
    Replication Group:
    {0}
    Replicated Folders:
    {1}
    Sending member:
    {2}
    Receiving member:
    {3}
    Backlog Count:
    {4}
    Display Name : {5}</Description>
            </DisplayString>
          </DisplayStrings>
        </LanguagePack>
      </LanguagePacks>
    </ManagementPack>

  • PCIe-6321 frequency measurements

    I am trying to use a PCIe-6321 to perform a simple frequency measurement (800-2500hz).  Are there daqmx functions for frequency measurments?  I tried some of the CVI examples but they throw error messages.  Is there an example were I can measure frequency on one of the analog inputs?

    Your card have both analog inputs and counter inputs; they behave differently and for each of them there is a set of examples that explain the basic measurement types together with cabling.
    Search with the example finder (Help >> Find examples... menu item) with "counter/timer" keyword and you'll find the examples you are looking for. Also looking for "frequency" drives you to the same examples.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Error -200685 DAQmx Write Counter Frequency

    I have to generate 4 finite pulse trains with Counter Output and a X-series board (NI PCIe-6321). I know that with X-series boards only one counter is used to generate finite pulse train. I use LabVIEW 2010 sp1 and DAQmx 9.3.5.
    One task for each counter is created.
    When only one task runs, everything is ok, but, when more than one task runs, i receive "error -200685: Pulse frequency specified is not supported for this device given the Counter Timebase Rate." from DAQmx Write Counter Frequency. Error reports invalid data&colon; 0,000000
    I have checked data supplied and no zero frequency is passed to the VI. In fact, counter frequencies lower than 100 are forced to be 100 through a previous VI.
    Thanks for the help
    Attachments:
    Error.PNG ‏42 KB
    Zero frequencies avoided.PNG ‏7 KB

    OriginalP ha scritto:
     I payed attention to write non null frequencies and this is why this error sounds so strange to me.
    My last words... i found that two null frequencies (1018 and 1019 array indexes) were passed to Counter Output (see attached images "Counter Output Front Panel Data.PNG" and "Counter Output Block Diagram Data.PNG").
    It's quite strange, because VIs generating pulse train frequency data don't output these two null frequencies (see attached image "Array Output Data.png").
    This pair of null frequencies is random, but definetively the error is not in Counter Output DAQmx Write VI.
    Attachments:
    Counter Output Front Panel Data.png ‏33 KB
    Counter Output Block Diagram Data.PNG ‏21 KB
    Array Output Data.png ‏21 KB

  • Position Measurement with PCIe-6321

    Hi,
    I have PCIe-6321 card and I want to use it for linear position measurement. I have an interpolation device that provides A and B channels that I`m going to put in the counter inputs of the card. Are there any examples of using the position information with LabView (Graphing the position, using it for control purposes etc.) There are some examples in the example library of LabView but in most of the, PCI6321 isn´t on the compatible cards list although most PCI62xx cards are. Can I still use these examples? Thank you in advance.

    Hi
    You can try it with this examples, but there is another easy way. Please do not forget that you need at least the DAQmx 9.0 driver.
    1. Open the MAX and create a task  for your linear position measurement with the PCIe-6321
    2. There you can see all the connections you need and you can set all parameters fot the acquisition
    3. Save the Task
    4. Close MAX and open LabVIEW
    5. In the block diagram go to  Measurement I/O >> NI-DAQmx >> insert Task Const (DAQmx Task Name)
    6. Right click on the task constant and choose  >> Generate Code >> Configuration and Example
    7. Run your VI and have fun
    Kind regards
    Beat
    NI Germany

  • Order of delivery schedule line counter at schedule agreements from MRP run

    Currently we are using schedule agreements for our long term external suppliers, but we are facing a problem with the order of new delivery schedule lines created during MRP run.
    Because of master data settings like, lot size, rounding value, plan delivery time and planning time fence to set as firm new requirements, multiple schedule lines are created with no order for schedule line counter.
    Does anyone is aware of a BADI, user exit or customizing control to have this schedule line counter in order?
    Thank you
    Daniel Guillen
    IT
    Skyworks Inc.

    Hi,
    Pls put this query in SD fourms  and get immly help because this is technical fourms.
    Anil

  • Help Counting Vowels and Consonants using a class

    I'm currently working on a class project where I need take a user inputed string and count how many vowels and/or consonants are in the String at the user discretion. I have the main logic program working fine. However, the trouble I'm running into is how to take the string the user inputed and pass that data into the class method for counting.
    Here is the code for the program:
    package vowelsandconsonants;
    import java.util.Scanner;
    public class VowelConsCounter {
        public static void main(String[] args) {
            String input; //User input
            char selection; //Menu selection
            //Create a Scanner object for keyboard input.
            Scanner keyboard = new Scanner(System.in);
            //Get the string to start out with.
            System.out.print("Enter a string: ");
            input = keyboard.nextLine();
            //Create a VowelCons object.
            VowelCons vc = new VowelCons(input);
            do {
                // Display the menu and get the user's selection.
                selection = getMenuSelection();
                // Act on the selection
                switch (Character.toLowerCase(selection)) {
                    case 'a':
                        System.out.println("\nNumber of Vowels: " +
                                vc.getNumVowels());
                        break;
                    case 'b':
                        System.out.println("\nNumber of consonats: " +
                                vc.getNumConsonants());
                        break;
                    case 'c':
                        System.out.println("\nNumber of Vowels: " +
                                vc.getNumVowels());
                        System.out.println("Number of consonants: " +
                                vc.getNumConsonants());
                        break;
                    case 'd':
                        System.out.print("Enter a string: ");
                        input = keyboard.nextLine();
                        vc = new VowelCons(input);
            } while (Character.toLowerCase(selection) != 'e');
         * The getMenuSelection method displays the menu and gets the user's choice.
        public static char getMenuSelection() {
            String input;  //To hold keyboard input
            char selection;  // The user's selection
            //Create a Scanner object for keyboard input.
            Scanner keyboard = new Scanner(System.in);
            //Display the menu.
            System.out.println("a) Count the number of vowels in the string.");
            System.out.println("b) Count the number of consonants in the string.");
            System.out.println("c) Count both the vowels and consonants in the string.");
            System.out.println("d) Enter another string.");
            System.out.println("e) Exit the program.");
            //Get the user's selection
            input = keyboard.nextLine();
            selection = input.charAt(0);
            //Validate the input
            while (Character.toLowerCase(selection) < 'a' ||
                    Character.toLowerCase(selection) > 'e') {
                System.out.print("Only enter a,b,c,d or e:");
                input = keyboard.nextLine();
                selection = input.charAt(0);
            return selection;
    class VowelCons {
        private char[] vowels;
        private char[] consonants;
        private int numVowels = 0;
        private int numCons = 0;
        public VowelCons(String str) {
        public int getNumVowels() {
            return numVowels;
        public int getNumConsonants() {
            return numCons;
        private void countVowelsAndCons() {
            for (int i = 0; i < total; i++) {
                char ch = inputString.charAt(i);
                if ((ch == 'a') || (ch == 'A') || (ch == 'e') || (ch == 'E') || (ch == 'i') || (ch == 'I') || (ch == 'o') || (ch == 'O') || (ch == 'u') || (ch == 'U')) {
                    numVowels++;
                } else if (Character.isLetter(ch)) {
                    numCons++;
    }The UML given to me by my instructor calls for the counting method to be private. Being that I'm not too familiar with Java syntax I did not know if that may cause a problem with passing the user's input into that method.

    Well the only compilers i get are due to the code:
    private void countVowelsAndCons() {
            for (int i = 0; i < total; i++) {
                char ch = inputString.charAt(i);
                if ((ch == 'a') || (ch == 'A') || (ch == 'e') || (ch == 'E') || (ch == 'i') || (ch == 'I') || (ch == 'o') || (ch == 'O') || (ch == 'u') || (ch == 'U')) {
                    numVowels++;
                } else if (Character.isLetter(ch)) {
                    numCons++;
        }However, that is due to the fact that i have no data for those variables to use. I'm pretty much stuck on how to get the string the user inputs into that method shown above so the code can perform the task of counting the vowels and consonants.
    If i comment out the code within that function the program compiles and will allow me to enter the string and use the options but since i can't figure out how to pass the input to the counting method the program returns 0 for everything.

  • How to count number of Characteristics' with the same value?

    Hello, Everybody,
    In InfoCube I have data:
    person ID (characteristic), points (key figure), gendre (characteristic), org.unit (characteristic)
    1313; 10; F;5001
    1313; 10; M;5001
    1313; 12; F;5001
    1313; 6; M;5001
    1515;20;F;5001
    Report,  with data from this InfoCube, should look like this:
    org.unit/number of employees, 6 points, 10 points, 12 points, 20 points
    5001, 1, 2, 1, 1
    Could you give me a suggestion how I can count the number of employees?
    Thanks in advance!
    Best Regards,
    Arunas Stonys

    Arunas,
    you can crate 4 CKF one each for employee points, and in each of the CKY have a data function value =1 if <your condition is satisfied>. This way the CKY will have a value of 1 if point is 6 for the first CKY and similarly for the rest and use exception aggregation based on person ID to count the no. of employees with that particular point in the Org unit. Use org unit in the rows and these 4 CKY in the columns and you should be able to get the report.
    hope this helps.
    Regards,
    Aashish
    Edited by: Aashish Kalra on Jan 6, 2009 12:31 AM

  • After using "consolidate library" to move my media to a NAS the items counts do not match.  How do I find what is different the easiest way??

    I wanted to move my itunes media on my imac to a NAS drive.  I used the advance preferences to change the folder to the folder on the NAS.  I then went to the "organize library" setting to consolidate.
    When I compare the two folders, the music folders are different (807 items in the old to 798 items in the new), mobile applications are different (143 in the old to 153 in the new), Movies are different (321 items in the old, 324 in the new).
    I think I already had the entire folder organized the way itunes wanted it.  I'm not sure why the count would increase or to easily make sure I'm not missing any info.
    Any suggestions?
    Thanks.

    Actually, a little off on the situation as I originally described.
    Compared the old items counts to the new item counts:
    1. The music folder increased in item counts.
    2.  Books is identical.
    3.  Mobile apps decreased by 10 on the new.
    4.  Movies decreased by 3.

  • Increase counter frequency performanc​e

    Hello,
    I want to increase the frequency performance for my period counter. I'm using a USB-6210 board and I have the vi that is attached - period measurement.
    The problem is that I want to measure the period for a 8MHz signal (I know that is a lot, I would be happy even with 4MHz). The source freq for the counter is 80Hz. If the frequency is high, the accuracy is not very critical for me.
    1. I get most of the time the error: "Buffer overwritten". I've seen that I can get rid of it if I decrease the frequency, but I don't want to do that . I think that another solution would be to increase the number of points that are read. I noticed that the maximum buffer size is around 9000 points (I've read it with DAQmxRead Property Node).
    2. Another fact that I've noticed is that in the While loop where I'm doing the Data Reading I should have no other operations or delay. Is this true, or just a coincidence?
    3. There is a strange behavior: if I start the acquisition and I have at the input high frequency, I get the error (Buffer overwritten) almost instant. If I start acquisition at low freq I can increase it even at high freq.
    4. There is another strange behavior: if the input frequency is high the frequency and the measured period increase and decrease togheter. I think that this is caused by alias. Where can I find some more information about the board limits?
     If you can give me some other advice/hints/links/pdfs I would be very thanksful.
    Maybe there are some small mistakes in the VI. I made it only to get a feeling of what I'm doing. I didn't chek it with the hardware.
    Regards,
    Paul
    Attachments:
    example.vi ‏32 KB

    Paul,
    I  have added some comments to your answer.
    Regards,
    Jochen 
    KPanda wrote:
    Jochen,
    thanks for this information. This was what I was looking for some while.
    I still have a question related to this topic: I've read that the maximum size of FIFO is 1024 samples. What does it mean?
    [JK:] The FIFO is the hardware buffer on the board. In general the PCI-bus or the USB should have enough bandwidth to transfer the data as fast as they are acquired by the device, but in fact there are sometimes some latencies that require some local memory on the board. That's what is called FIFO in this context.
    This FIFO is the same with the: Available Samples Pro Channel from Read Property node?
    [JK:]  No. This value refers to the buffer in the PC's memory that is allocated for the acquisition operation.
    I've noticed that when the value for this property is passing 9000 I get the error with Overwritten Buffer. If it is like this why do I reach more than 9000 samples pro channel? Please take a look at the attachement (test1.png - screenshoot with the values / speed_test_x - the VI that I used for this measurement).
    [JK:] The buffer size is not limited to 9000 values. NI-DAQmx allocates memory automatically by default. If you like you can increase the buffer size manually.
    Which is the relation between maximum numbers of sample that can be read with the Counter 1D Read NSamples? In my VI there are N=250 samples. Can I increase it in order to avoid the error? If yes, which should be the maximum limit, 1024 ?
     [JK:] You can increase the number of values to read up to the size of the buffer (not of the FIFO). A reasonable value is up to 50% of the buffer size, but this is not a strict rule. Anything between 10% and 90% could make sense, depending on the timing requirements of your application.
    Paul
    PS: I've hope that I translated the LabView terms in the right way. I have my LabView in german (but I don't know german, so it is a nightmare for me )

  • Jython error while updating a oracle table based on file count

    Hi,
    i have jython procedure for counting counting records in a flat file
    Here is the code(took from odiexperts) modified and am getting errors, somebody take a look and let me know what is the sql exception in this code
    COMMAND on target: Jython
    Command on source : Oracle --and specified the logical schema
    Without connecting to the database using the jdbc connection i can see the output successfully, but i want to update the oracle table with count. any help is greatly appreciated
    ---------------------------------Error-----------------------------
    org.apache.bsf.BSFException: exception from Jython:
    Traceback (innermost last):
    File "<string>", line 45, in ?
    java.sql.SQLException: ORA-00936: missing expression
    ---------------------------------------Code--------------------------------------------------
    import java.sql.Connection
    import java.sql.Statement
    import java.sql.DriverManager
    import java.sql.ResultSet
    import java.sql.ResultSetMetaData
    import os
    import string
    import java.sql as sql
    import java.lang as lang
    import re
    filesrc = open('c:\mm\xyz.csv','r')
    first=filesrc.readline()
    lines = 0
    while first:
    #get the no of lines in the file
    lines += 1
    first=filesrc.readline()
    #print lines
    ## THE ABOVE PART OF THE PROGRAM IS TO COUNT THE NUMBER OF LINES
    ## AND STORE IT INTO THE VARIABLE `LINES `
    def intWithCommas(x):
    if type(x) not in [type(0), type(0L)]:
    raise TypeError("Parameter must be an integer.")
    if x < 0:
    return '-' + intWithCommas(-x)
    result = ''
    while x >= 1000:
    x, r = divmod(x, 1000)
    result = ",%03d%s" % (r, result)
    return "%d%s" % (x, result)
    ## THE ABOVE PROGRAM IS TO DISPLAY THE NUMBERS
    sourceConnection = odiRef.getJDBCConnection("SRC")
    sqlstring = sourceConnection.createStatement()
    sqlstmt="update tab1 set tot_coll_amt = to_number( "#lines ") where load_audit_key=418507"
    sqlstring.executeQuery(sqlstmt)
    sourceConnection.close()
    s0=' \n\nThe Number of Lines in the File are ->> '
    s1=str(intWithCommas(lines))
    s2=' \n\nand the First Line of the File is ->> '
    filesrc.seek(0)
    s3=str(filesrc.readline())
    final=s0 + s1 + s2 + s3
    filesrc.close()
    raise final

    i changed as you adviced ankit
    am getting the following error now
    org.apache.bsf.BSFException: exception from Jython:
    Traceback (innermost last):
    File "<string>", line 37, in ?
    java.sql.SQLException: ORA-00911: invalid character
    here is the modified code
    sourceConnection = odiRef.getJDBCConnection("SRC")
    sqlstring = sourceConnection.createStatement()
    sqlstmt="update tab1 set tot_coll_amt = to_number('#lines') where load_audit_key=418507;"
    result=sqlstring.executeUpdate(sqlstmt)
    sourceConnection.close()
    Any ideas
    Edited by: Sunny on Dec 3, 2010 1:04 PM

Maybe you are looking for

  • How many iphone devices can be on one itunes account

    I already have an iphone and ipod touch on my one laptop and have the one itunes on the laptop. I am wondering if I can put another iphone onto the laptop and sync it to the itunes without whipping anything off the computer or the iphone and ipod tou

  • Qn: Getting Around Windows File Lockup Property -- use FileHandling in Java

    I am encountering a problem in developing a software for my business. The task I am trying to achieve is that, I need to update a file (.txt) while that file is being constantly accessed by another program. The ultimate setting is this: I will have a

  • Two Admin Accounts - How to delete one?

    Hi All In fixing another problem I have ended up with two Admin accounts. One is my main admin account and the other a short term fix. Trouble is I can't delete the second admin account from any account. When I try to delete the second account the 'm

  • Crash on login 7.4.0.102 / Win7

    Yesterday Skype appeared to be working just fine.  This morning after an OS update the version of skype that I had (at least 7.3.0.101 or later).   I crashed on login 3 times.   Came to the forums to look up information. Updated to the latest version

  • How to send notification in the Portal UWL from WD application

    Hi,   My requirement is user will submit Leave application form from one of the WD application then the Workflow has to send notification in the Protal for the HR.When HR see this request in his UWL it has to display the user entered leave details. T