some Perfmon counters

Hello

I am trying to learn how I can test some aspects of memory in the performance monitor. So I chose this option for excersise.

pagefault 1s I get this in the section of report in perfmon when I'm on the internet at 6.700,020 1.963,053

first of all, I want to know this number 1.963,053 or 6.700,020 is the number of pages read on writing to memory?

Secondly, I have 8 GB memory and 8 GB of virtual memory, so up to what number (I mean the indicated result) it's okay and which number, this indicates a problem. I do not know the % 1.963,053 how it is!

I'm also testing the use of virtual memory, so I add that option in perfmon.

1-swap: bytes of memory the number here is 332.324.864,000 I think it's the number of bytes of memory swap totaal

2-swap memory: residential bytes 274.845,368,000 I think it's the amout of memory swap right now

2-swap: memory allocation 266.306,000 I think that it is attributed to taking place now. so now, I do not understand

I have 8044 MB of virtual memory, but why swap memory: bytes is 332.324.864,0000 this number is not equal to 8044 MB? or there is another explanation for this option!

answers very short wil suffice

Thank you

Johan

Hi Johan,.

Thank you for your response.

If you want some advanced knowledge, you can download process monitor of TechNet.

http://TechNet.Microsoft.com/en-in/Sysinternals/bb896645.aspx

It will be useful.

Tags: Windows

Similar Questions

  • Understand the Perfmon counters - someone at - he really understands?

    I looked online, after referring to the perfmon technet articles and try to find articles by others, it seems that person - even the technical support engineers I talk on the phone - have no idea how to read Microsoft Perfmon counters. Nobody knows what it means data. For example,.
    I have the Server 2008 box that shows that I get over 600 + connection (TCPv4) failures in perfmon. How can I tell what is considered as bad, and what is considered good? Does anyone know without referring me to an article that explains nothing?

    Specifically, is any information that can tell you what specific numbers are in fact 'BAD' and who is 'GOOD' for the performance of the meters in general or specific models which are indicative of the verb questions?

    Who knows of a detailed explanation of this topic which has in-depth information and Portico?

    Connection failures - over 600 +.

    Connections - medium 63

    Active connections

    Hi JLOONER,

    Thanks for posting in the Microsoft Community. The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums.

    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer

    Hope the helps of information. If you need help, please reply. We will be happy to help you.

  • Problems with PerfMon - cannot add counters

    Hello everyone.  I registered just to ask this question, which I couldn't find after a long time consult Google.  I come to you in the hope that when Google has failed, you will not!

    I use a program that some of you may be familiar, called Samurize (http://www.samurize.com/modules/news/), who does a lot of things; what I use for most allowed, in a blink of an eye, discern my CPU usage, RAM usage, information network, availability, hard disk space and my schedule on the calendar, among other things.  I know it is an old program and I know that it was designed for Windows 2000/XP, but it worked without a hitch (not including this one) on Vista and Windows 7.

    Recently, however, the ability to monitor CPU, RAM, upload and speed of download and availability has disappeared; all of them give me a flatline, statement I use no internet at all or my computer also (with the exception of availability, which reports that I have been on my computer for 49 days, 17 hours, 2 minutes and 47 seconds... he refuses to go to the top!).  Initially I thought it was a problem with the program.  It is not; It has something to do with Perfmon.  When I load perfmon.exe through the box run, it loads up with an error that says:

    "Cannot add these counters:

    \Memory\Available MB
    \Memory\% committed bytes used
    Defects of \Memory\Cache/s
    Defects of \Memory\Cache/s
    Time to \%Idle \PhysicalDisk (*)
    \PhysicalDisk (*) \Avg disk queue length
    \Network interface (*) \Bytes Total/sec.

    This isn't me accidentally say the same thing twice... it says what I typed on verbatim. [Edit:] Just remembered: other system monitors are perfectly fine.  Of course the Task Manager works well, but gadgets seem to work fine in my use of RAM and CPU, as well as my download balance sheet and download speeds. [/ Edit]

    It's pretty much the sum of my progress on the problem.  I found this page (http://support.microsoft.com/default.aspx/kb/300956), which seems like it might solve the problem... but being a lazy man boned, I hope that there is a simpler solution than that, those who are not "reformat".

    Any other relevant information:

    Windows 7 x 64 professional
    Updated with all official updates
    Recently spent Wi - Fi cable (apart from that, I can't thing of any change that I did with my computer)

    Thanks in advance!

    Hello SensaiOpti,

    I had the same problem. A level that your pointers to the perfmon counters are damaged, you must re-create these with LODCTR from an elevated command prompt:

    Click Start, type cmd click right cmd.exeand select run as administrator.
    At the prompt, type lodctr /r and press ENTER. This allows to repair the pointers (those that are stored in the registry).


    C:\Windows\System32>lodctr/r

    Info: Rebuilt successfully setting from system backup store performance counter

    After this action, it is possible that some providers are disabled. You can check the status with lodctr/q.

    C:\Windows\System32>lodctr/q
    Performance counter ID queries [PERFLIB]:
    Based index: 0 x 00000737 (1847)
    Last counter text ID: 0 x 00001560 (5472)
    Last help text ID: 0 x 00001561 (5473)

    [.NET CLR data] Performance counters (activated)
    DLL name: netfxperf.dll
    Open the procedure: OpenPerformanceData
    Collect the procedure: CollectPerformanceData
    Close the procedure: ClosePerformanceData
    First counter ID: 0 x 00001080 (4224)
    Last counter ID: 0x0000108C (4236)
    First help ID: 0 x 00001081 (4225)
    Last help ID: 0x0000108D (4237)

    etc.

    If she says (disabled) next to a provider, you can activate it with lodctr/e:. Use for the string between the [] at the beginning of the entry.

    Success

  • Windows 2008 R2 PerfMon latency do not match ESXTOP

    Hi all

    I was faced with performance problems for my SharePoint SQL Server. I tried to find the bottleneck, and I was see some latency of less-than-desirable numbers in PerfMon. He is the guest of Windows 2008 R2 x 64 running on ESX 4.0 (build 294855) on vCenter 4.1 (build 258902). I see often numbers physique\Longueur disk s/reading for a medium disk above 10ms but often jumping more than 20 ms and sometimes much higher. 10 to 20 ms isn't bad, I know. HOWEVER, these numbers do not match what I see in ESXTOP and on the back-end storage. I have an IBM XIV, and his monitor disk latency is very close to that reported by the virtual machine in ESXTOP. That tells me that the Cisco MDS is not adding much to the latency. BTW, we are double FCoE (round robin) to Cisco 5010 s, which has so many paths of 4 GB to MDS, which has so many paths to the XIV. But ESXTOP reports usually 1/2 or better Perfmon. If the virtual machine will show, for example, a GAVG/cmd of, say, 3 ms, but PerfMon will show 9 Ms. ESXTOP will display 10 ms and PerfMon will show 20 +. LVAD/KMOY/GAVG metrics could be essentially flat, but they are bouncing up and down in PerfMon.

    Someone has an idea of what might happen? I understand that CPU and memory PerfMon counters are not very useful in the comments, but I have never read anything about the number of I/O, err. This would be another case where PerfMon is not reliable? However, the prompt is smart enough (this is SQL Server) to understand these metrics and will change its behavior accordingly. If SQL think lack of resources so his will react accordingly. Or, is it something in the virtualization layer to actually add 10 + ms of latency in the virtual machine? The disk is PVSCI and I think to change to LSI Logic SAS. I wonder if PVSCSI adds latency. Because he comes to Windows 2008 R2, the disks are already lined up.

    I'm afraid that the virtualization layer (or some other misconfiguration) adds latency of disk on the virtual computer, which in turn slows down the environment, which in turn causes the sales organization to shout in my direction. Any advice would be greatly appreciated. Thank you!

    Brian Laws, VCP4

    The problem with comments counters is not exact step is not specifically related to the CPU or memory.  On the contrary, it is related to a metric which is measured in a unit of time.  Thus, for example, what is measured in increments of seconds (average disk read/s, etc) could potentially be inaccurate.  This is because the virtual machines have complete access to a CPU to 100% of the time, so their perception of how long 1 second is actually might not be quite accurate.  It becomes more pronounced the more widely used the vCPUs of the guest are so how busy the ESX host is himself.

    I wouldn't trust the numbers coming from ESXTOP because they are not influenced by the present and are more accurate.  If you can also look at the numbers on your storage array and make sure they are near ESXTOP so you can probably ignore the data you receive in the comments.

    Matt

    My blog: http://www.thelowercasew.com

  • Performance counters are missing in .blg files

    Dear all,

    I installed the perfmon counter to collect the performance of my windows 2008 R2 server and I added the counter of our application to check its performance, but when I check the .blg file I see these application counters are missing. PerfMon counters for this has not saved.

    Interestingly, I added my application 10 counters and out of which 3 are missing. Can anyone explain me about this.

    Thank you

    Abhishek

    Hi Abhishek,

    Welcome to the Microsoft Community and thanks for posting your request.

    Since then, the issue is with windows 2008 server R2, it would be better suited by contacting Microsoft TechNet forum, we have a dedicated team with advanced tools and permissions to help you with such questions. Follow the link below to view the same query in the Microsoft TechNet forum for more help on this issue.

    https://social.technet.Microsoft.com/forums/Windows/en-us/home?category=w7itpro%2Cwindowsvistaitpro%2Cwindowsxpitpro%2Cwindowsserver%2CWindows10ITPro&filter=AllTypes&sort=lastpostdesc

    If you need help with Windows, let us know and will be happy to help you.

  • event ID 3007

    Log name: Application
    Source: Microsoft-Windows-search
    Date: 2010-06-20 03:55:41
    Event ID: 3007
    Task category: Gatherer
    Level: error
    Keywords: Classic
    User: n/a
    Computer: Acer
    Description:
    Performance monitoring cannot be initialized for the Gatherer object, because the counters are not loaded or the shared memory object cannot be opened. This only affects availability of the perfmon counters. Restart the computer.

    Context: Application, catalog creates

    The event XML:
    http://schemas.Microsoft.com/win/2004/08/events/event">
     
       
        3007
        0
        2
        3
        0
        0 x 80000000000000
       
        66295
       
       
        Application
        Acer
       
     

     
       

    Context: Application, catalog creates

     

    Here's what you need to know about the event 3007, and how to solve this problem (if it needs fixing):http://technet.microsoft.com/en-us/library/dd364637 (WS.10) .aspx.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • help with a completely useless applet

    Hello

    It's my second applet (first was an hour ago) please go easy on me.  Earlier today, I watched a great webex and I got a little too excited about EEM, especially now I don't have to learn some TCL.  I still have a script TCL unopned bible on my shelf I brought just never pick me up!

    I'm trying to understand the use of 'while/end' and ' if/else' statements.  I created a completely useless applet that tells me off every time I have stop the loopback100 on my router interface.  It worked perfectly, and I even managed to get the e-mail accounts of the variable name based on who is connected.

    What I want to do now, is to send an e-mail if the user persists and closed at the interface of loopback100 3 times.

    Event Manager environment _email_server X.X.X.X

    Event Manager environment company @company.com
    environment events counter manager 3

    no event manager applet lo100protector
    Event Manager applet lo100protector
    event model syslog 'Interface Loopback100, state change down administratively' period 1

    Action 1.0 all $counter gt 0
    command action 2.1 cli 'enable '.
    Action 2.2 cli command "view".
    Action 2.3 regexp ' [a - z] +------. " "[a - z] +" "$_cli_result" username! RegExp relavent not particularly
    Action 2.4 syslog msg "Hello $username".
    Action 2.5 syslog msg "Please do not stop loopback100!"
    cli command measure 2.6 'enable '.
    Action 2.7, «config t» cli command
    "action 2.8, command cli" int lo100 ".
    action 2.9 cli command 'no shut '.
    Action 3.0 cli command "quit".
    Action 3.1 cli command "quit".
    Action 3.2 subtract $counter 1
    Action 3.3 puts $counter! I put this to "solve" the problem (if you can call it that).  Always returns a value of 3
    3.4 action ended
    command cli action 4.0 'enable '.
    action 4.1 cli command ' see the race | hostname Inc.
    4.2 action '[a-z]+_[a-z]+[0-1]_f[0-9]_[a-z]+[0-1]' regexp ' $_cli_result ' hostname! Neither is this one.
    e-mail action 5.0 Server "$_email_server" "company of $$username ' of ' company of $$hostname" subj "this email was generated by EEM on $hostname" body "Please stop you by train to stop the loopback100 interface!  It's not big or clever. "source-int vlan1
    Action 5.1 syslog msg 'email sent to $username.
    game action 6.0 counter 3

    so.  The first problem I have is that my $counter variable never seem to decrement.

    The second problem I have is that it seems to be a loop statement.  I see the statement "Please do not stop loopback100!" several times.  Although it seems don't last forever, only a few times.

    I tested it without one while loop in it and everything seems to be good.  Someone would be nice enough to put me in the right direction please?

    A few other random questions.

    Is it possible that I can put a charater directly after a variable?  For example in action 2.4, I seem not to be able to put a "!" after the $username without a space variable has ' ' Hello $username!

    Server mail action 5.0 command struck roughly of the charater line limit.  Is it possible that I can break the order into its components?

    Thank you very much in advance

    A bit too excited, Alex

    Thank you for attending the webinar.  I'm glad that you found it informative.

    Congratulations on your first applet.  What you want to do is possible, but you cannot set environment variables locally.  Those who cannot be defined that turning in the configuration mode t and their reset.  There are some other counters that you can use, however.  One idea is to use a meter of EEM.  Should be a different policy, but you can accomplish what you want with what follows.

    event manager applet lo100protector

    event syslog pattern "Interface Loopback100, changed state to administratively down" period 1

    action 1.0 counter name lo100cnt op dec 1

    action 1.1 if $_counter_value_remain gt 0

    action 2.1  cli command "enable"

    action 2.2  cli command "show users"

    action 2.3  regexp "[a-z]+\.[a-z]+" "$_cli_result"   username

    action 2.4  syslog msg "hello $username"

    action 2.5  syslog msg "Please don't shutdown loopback100!"

    action 2.7  cli command "config t"

    action 2.8  cli command "int lo100"

    action 2.9  cli command "no shut"

    action 3.0  cli command "end"

    action 3.4 else

    action 4.1  info type routername

    action 5.0  mail server "$_email_server" to "$username$company"  from  "$_info_routername$company" subj "This email was generated by EEM  on $_info_routername"  body "Please will you stop trying to shutdown the  loopback100  interface!  It's not big or clever." source-int vlan1

    action 5.1  syslog msg "email sent to $username"

    action 6.0 end

    event manager applet lo100counter

    event counter name lo100cnt entry-op le entry-val 0 exit-val ge exit-val 0
    action 1.0 counter name lo100cnt op set value 3

    Applet variable treatment is fairly primitive.  So, you will not be able to keep some names of variables with certain characters.  The '!' is such a character.  You will need a space.

    About the length of the command, at some point you will need to exit this Tcl book :-).  The applets are powerful, but that you begin to build more complex applications and larger, you will need a more fully functional programming language.

  • you know a widget for muse or a code (html or javascript) that serve as a visitor counter?

    Hello.

    I'm looking for a widget for adobe muse or an html or javascript code which serve as a visitor counter . I need to be in many pages of the same site, but each of them making a independent metering. I found a javascript script code, but If a put option it on all my pages to the site of the count, share therefore the same show number on each page.

    I know that if I google , I can find some free counters, but always, they have the name of the author and I can't change the code ....

    Nobody knows How can I fix it or some kind of solution?



    Thank you

    Usually visitor tracking code such as google analytic, statcounter, etc. wants to appear towards the end of the HTML body so they can more accurately track visitors who load the entire HTML page and not follow those who begin to load the page and then cancel it. If you paste your statcounter embed HTML in Muse and then place the element of HTML page as a result at the bottom of the page, which should work fine.

    In case you are using Business Catalyst to host your website, you can check reports of backend without the use of widget site visitor.

    Thank you

    Sanjit

  • VMFS datastore and advised LUN (IO queue)?

    Hello

    I have a few quick questions regarding best practices SAN LUNS and VMFS data warehouses.

    Assumptions:

    1 iSCSI SAN (single storage processor)

    2. 2 disk pools (2 x RAID5 @ 3 discs/RAID5)

    3 4 LUNS (LUN/Disk 2 pool)

    4 LUN size: 500 GB/LUN for a toal of 2 TB of storage

    Question:

    1. on what data store VMs would have a larger disk performance?

    A. Datastore1 created on LUN0 on disk pool 1 and Datastore2 on LUN1 on disk pool OR 1

    B. Datastore1 created the LUN0 on disk pool 1 and Datastore2 created the LUN0 on disc 2 of pool?

    I guess what I'm trying to ask here is to have LUNS on clusters of separate drives faster than to have all the LUNS on the same disk pool? If A VM hard exists on Datastore1 of B above, setting hard of VM B on Datastore2 of B above would improve the overall performance for both virtual machines? On the other hand, respectively, capping A VM and hard of B VM on Datastore1 and Datastore2, of A above still an effective option? This brings me to question 2.

    2 - is data on separate warehouses LUN fracture the queue of e/s of SAN LUNS on all LUNS? In other words, the SAN will access all LUNS at the same time, thereby increasing the performance vs having all VMs on a single LUN shared with a single e/s queue?

    Thank you

    Steve

    In General, you're trading the guaranteed 90 IOPS / sec per IOPS VMDK / s maximum 180, but shared between 2 VMDK.

    This seems to be an entirely theoretical question and sometimes almost philosophical, whether for trade this broad for this.

    If you think about it more later, it is quite similar to place vCPUs and VMs on ESX host - is it better to share some CPU more Rapids (= more expensive systems) or gives a processor dedicated Basic (= more material)?

    If I stick my neck, I would say that the difference between the aforementioned buildings is visible only marginally and you could probably be very happy with a flat 6 pin R5 datastore as well.

    But the specific difference between 2 R1s and an A10 with 2 LUNS or even a R10 with 1 LUN but 2 VMDK worth thinking.

    As I've already said:

    If speed and performance is a problem (MSSQL IOPS requirements) then you're already wrong with the SATAs and plan instead to study in an array of more powerful than to try to get the last bits of your SATAs.

    Don't get me wrong, surely SATA can do miracles in the small environment, but especially if I notice a 50 GB DB MSSQL for P2V I would first collect some perfmon data and plan my storage as a result even more than I would normally do in SMB environments.

    You will not get a PRIUS to take the load of a SUV, no matter how long and diligent, you plan to distribute the load.

  • 51 in VM system error?

    Hi all

    Not sure if this is corect forum but I'm sure someone will put me right.

    I have a Windows Server 2003 SP2 running on a San connected to my very small ESX3.5 server supporting six virtual servers. Two of the servers have been moved on the SAN while the other remain on the local storage of the ESX host.

    One of these servers is configured as follows: Server 2003 SP2 32-bit, 2048 RAM with 2 GB SCSI disks 50 mg hard confgiured Basic versus dynamic inside Windows.le server disks host several small SourceSafe databases, but also a new software used by our QA department. This software contains a large number of small files stored in its own local database format. I'm not sure if this software is the culprit in my scenario.

    What I see is a small number of system error 51 s generated in the event log system on this server at random times during the day. Googling this error against VMs comes with questions and answers from 2005 to 2008 to virtualize SQL servers with a large amount of disk i/o. I wonder if I see the same thing, if it's really a question or if I can do some other configuration changes to help solve the problem?

    Kind regards

    Gordon

    Hello

    In regard to the remark of MS and not performing VM enough, it is interesting to note that MS has this kind of comments so that their own product (Hyper-V et al.) are powerful enough to properly support the MS SQL in a virtual environment. I would chalk up to MS FUD.

    in any case, I guess it of mud slinging and not very relevant to the discussion.

    For a more relevant counterargument, take a look at this article from VMware performance group:

    http://blogs.VMware.com/performance/2008/05/100000-IO-Opera.html

    Or for a report of no vmware, take a look at this study of Brocade:

    http://www.Brocade.com/downloads/documents/white_papers/WP_VMWareSQLServerBenchmark-00.PDF

    Using virtualization and bays of external storage, you can stagger out better as simply assigning the entire machine to SQL Server, and assuming that you get the same scaling performance upward. So by applying good configuration you can actually get more performance from your hardware in the VMS as using physical hardware.

    With regard to SQL2000, SQL2005 vs. I do not know your application and SQL 2005 is if I remember correctly - that's all right now-backward compatibility with SQL 2000 almost everything. I'm a database developer, but use about any server SQL, not only the products of Ms.

    The reason why I mentioned, it's that I don't think that even Microsoft still supports SQL 2000, so if you can improve it, would be nice. With respect to the resolution of the 51 system error report, I also don't think that this will solve, but don't really know. I can't test/check here because I have no more SQL 2000 configurations.

    Now, back to your syslog error event. Personally, I doubt it is a serious mistake and that a report of an absence of cache, but for now, I'm having trouble to back up this statement. If it's a mistake that occurs every day, then you might be able to set up some performance counters to check if the host is trading at the time of such a report.

    If I look at the log of my current VM system, I also see an error 51 error, but it's for my floppy drive.

    An error was detected on device \Device\Floppy1 during a paging operation.

    Consider that your report is for the physical hard drive? He also has the part "paging operation"?

    You have only a single mounting of hard disk with this virtual machine?

    --

    Wil

  • Can I put some PFI ports on the same line for use with counters and leave the rest as static DIO? (USB-6218-USB)

    I only need a port of each line for the use of the PFI and want to use the rest for the digital I/o. Before you complete the design of the circuit and test it myself, I would like to check it out. I can't find the answer in the textbooks, either.

    Thank you

    Ben

    Hello Ben,

    If you use all the PFI lines you can use the rest as DI/O. PFI0, 1, 2, 3, 8, 9, 10, 11 are entered digital and PFI 4,5,6,7,12,13,14,15 outputs digital. Another technique you can use is to create a spot on the measurement and Automation Explorer, if it allows you to create it, then it is possible.

    Best regards

  • Missing Perfmon.exe?

    Good so I'm went to access my resource monitor, and every time I tried a mistake would show saying Perfmon.exe are missing.

    I'm not very tech savvy, so if someone can give me some solutions to this I would be more than grateful!

    Hello

    Thanks for posting your question on the Microsoft community.

    We need more information about the issue so that we can help you better.

    You made any hardware or software changes to your calculation before the show?

    Thank you for details on the issue.

    "Perfmon.exe" is the process behind the 'Windows performance monitor' which is a tool to display visually integrated in real-time or through historical data performance counters. We can use this tool to analyze how programs affect the computer's performance. You must be a member of the local administrator group in order to use all the functions of the "Windows performance monitor.

    This problem may occur because of damaged or missing Windows files.

    I suggest you run the system file checker (SFC) and see if it helps.
    Reference:
    Use the System File Checker tool to repair missing or corrupted system files
    https://support.Microsoft.com/en-us/KB/929833

    System File Checker is a Windows utility that allows users to find corruptions in Windows system files and restore the damaged files.

    I hope this information helps.

    Please let us know if you need more help.

    Thank you

  • How can I use two counters simultaneously to pulse width measurment

    Hello, everyone!

    I'm new to Labview. I currently have some cDAQ9171 and width measurment with 9401 impulses. My understanding is that the 9401 was 4 meters, which means that I can use these meter separately. However I have the following problem.

    1. I use ctr 0 and ctr 1 (PFI 1 and PFI5) to measure two different impulses. However, it seems that there is an interference between two counters. How can I make two counters working simultaneously and separately?

    2. I first try a pulse width measurment counter in Labview signalExpress. My pulse width is about 0.4ms. However, I can't get the right result, if I choose the starting edge is on the rise (the results always around 20ns. Only if I revise my pulse and pick the starting edge is down, I can get reliable results.

    I'm confused about these issues for about 3 weeks... Is there someone can help what can I do with that?

    I have attached a simple vi...

    Thank you very much!


  • Double counters in Signal Express with a USB-6229

    I have a USB-6229, which I'm running via SignalExpress, and I am trying to simultaneously record two inputs of meter.  However, it seems that he has trouble to add the second channel.  When I add the first string via signals acquire > DAQmx Acquire > counter entry > Position > angular and select ctr0 channel, he (correctly) lists PFI8 and PFI10 as inputs of channels A and B.  However, when I add the ctr1 channel to the same task (via the blue and the button "Add a channel"), he still lists the same PFI8 and PFI10 as input.

    On the other hand, if I first add ctr1 then add ctr0 Secondly, it lists PFI3 and PFI11 as A and channel B for the two entries of meter.

    How can I get the two counters operating independently?

    Thank you

    Josh

    He realized that I can't run two meters of a single task in Signal Express (unlike, say, two analog inputs).  Once I added it as two separate tasks, everything works fine.

    Now I have problems of synchronization.  Looking through these tips and documentation, it seems that I will not be able to fix this via SignalExpress, so I continue in LabView.  I'm having some problems with it, but I'll post in a new thread here.

  • Can I synchronize the counters on two different computers in the C API?

    I installed the M-series cards (6254) in several computers. I would like to synchronize the counters for each card.  The best way that I came with to do this was to have the counter on each counter entries read a common external clock signal running at 10 KHz I have would then feed a second signal to each card and trigger the task that runs each counter starts when the second line goes high.

    Following the examples provided with the C API, it was easy to get each card KHz signal and then to match the beginning of the counter that I tried to read

    DAQmxCfgDigEdgeStartTrig (taskHandle, inputLineStr, DAQmx_Val_Rising);

    However, this did not work and gave me the following error:

    DAQmx error: the specified property is not supported by the device or is not applicable to the task.
    Property: DAQmx_StartTrig_Type

    Task name: task

    State code:-200452
    End of the program, press the Enter key to exit

    I know it's very simple sync the cards within a computer using the RTSI interface, but it is not possible that my cards have to reside in different computers.

    It is even possible to synchronize the counters on computers, and if yes how can I do it with the C API?

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

    Here's what I've written so far:



    #define DAQmxErrChk (functionCall) if (DAQmxFailed (error = (functionCall))) goto error; on the other

    int main (void)
    {
    int error = 0;
    TaskHandle taskHandle = 0;
    uInt32 data = 0;
    tank errBuff [2048] = {'\0'};

    DAQmxErrChk (DAQmxCreateTask ("task", & taskHandle));
    DAQmxErrChk (DAQmxCreateCICountEdgesChan(taskHandle,"/Dev1/ctr0","",DAQmx_Val_Rising,0,DAQmx_Val_CountUp));
    DAQmxErrChk (DAQmxConnectTerms ("/ 10MhzRefClock/Dev1", "/ PFI8/Dev1", DAQmx_Val_DoNotInvertPolarity));
    DAQmxErrChk (DAQmxCfgDigEdgeStartTrig(taskHandle,"/Dev1/PFI14",DAQmx_Val_Rising));

    DAQmxErrChk (DAQmxStartTask (taskHandle));

    printf ("without interruption of the poll. Press Ctrl + C to interrupt\n");
    While {} (1)
    DAQmxErrChk (DAQmxReadCounterScalarU32(taskHandle,10.0,&data,));
    printf ("\rCount: %u", data);
    fflush (stdout);
    }
    Error:
    puts("");
    If (DAQmxFailed (error))
    DAQmxGetExtendedErrorInfo (errBuff, 2048);
    If (taskHandle! = 0) {}
    /*********************************************/
    Stop DAQmx code
    /*********************************************/
    DAQmxStopTask (taskHandle);
    DAQmxClearTask (taskHandle);
    }
    If (DAQmxFailed (error))
    printf ("error DAQmx: %s\n",errBuff); ")
    printf ("end of the program, press the Enter key to quit\n");
    GetChar ();
    return 0;
    }

    Hi neurostu,

    Arms start triggers are disabled by default, so they do not have a default PFI line.

    You will need to set some properties DAQmx to configure a trigger for start of arms. Try adding between DAQmxCreateCICountEdgesChan() and DAQmxStartTask():

    DAQmxSetArmStartTrigType (taskHandle, DAQmx_Val_DigEdge);

    DAQmxSetDigEdgeArmStartTrigSrc (taskHandle, "/ Dev1/PFI14" ');

    DAQmxSetDigEdgeArmStartTrigEdge (taskHandle, DAQmx_Val_Rising);

    You have the file "help NOR-DAQmx C reference"? It should contain descriptions of the trigger > more > arm Start properties.

    Brad

Maybe you are looking for