Stop and start counter set to frequency read

Original question posted in the counter forum but no response so hope its ok to try here?
I am using a 6024E interface to operate a PID loop that keeps the RPM stable of a servomotor but having problems when attempting to read frequency at the same time from a flow-meter.
Basically the operation of the system is as follows;-
User sets an RPM demand, say 5000RPM, an analog signal is sent out to the motor controller and motor runs up to this value after a brief delay. The feedback from the motor is from its shaft encoder which gives 1000 PPR, after signal conditioning in hardware this signal is applied to the gate of timer 0 and after scaling applied to a PID loop. The PID loop is quite stable and responds well to operator demands.
However the first problem was noticed when the RPM demand was taken to zero and an attempt to halt the program was made. There was a delay in shutting down that was roughly equiv to the time out value which was set on the DAQMX read Vi.
Things became much worse when a further loop was added to read a flowmeters frequency output (approx 50 to 300Hz max, counter 1) that varied with the servo motors RPM demand. This additional routine has almost stopped the whole program initially starting as it appears that counter channel 1 is waiting for an input before letting the rest of the program run.
I have attached the part of the program that I am using now to read the frequency of the flow meter, similar routine also being used to monitor the RPM of the servo motor.
Basically when the operator increases the RPM demand and reaches a demand of 10RPM a compare function places an output line, which is connected to the input OPR1/PFI7 (see attached vi ) to logic 1. This then triggers the counter to start reading the RPM of the motor. A similar method is used for the flowmeter but in this instance it does not try to read the flow until the motor has reached 3000RPM as the flow being measured is very low and below 3000RPM it is only about 2cc/min = 40Hz.
Problem occurs though when the RPM is reduced to zero and the flow/RPM stops. If the RPM demand is increased again the motor sometimes will not respond and suffers delay. Removing the loop for the flowmeter cures this problem. Seperate loops are used for the flowmeter, motor RPM and PID loop that controls the motor RPM. 
The problem, as I see it, is that I need to be able to stop the counter for the flowmeter aquiring data when it falls below a certain value but be able to restart it again when the the flow increases?
Also is there any way I could sync the analog output signal (motor RPM demand) to the counter freq read signal (motor encoder feedback)? I found examples in the help files for this but using 'count edges' not frequency or period mode.
Thanks John
Labview Version 8.5
Labview Version 8.6
Labview Version 2013
Attachments:
arm triggerver1.vi ‏38 KB

Hello,
First of all thanks for posting on our forum.
I may be lazy but I think your question is very long and not very clear... Next time try to be more precise and to post shorter messages, this is just an advise, but short questions often get quick answers.
now let's talk about your problem, the first thin I'll say is why don't you use NI-Motion hardware, that would be really appropriate to you application, then if you can't (which I understand) you should really use Real-time programming, when you're using a PID, real time is really advised.
My only question will be : What is the problem?  can you be a little bit clearer? what can we do for you?
I'm sorry but I'll really be glad to help you but so far I did not understand.
Regards
Richard Keromen
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;}
>> Découvrez, en vidéo, les innovations technologiques réalisées en éco-conception

Similar Messages

  • Why does the video stop and start using airplay on Mountain Lion?

    Why does the picture stop and start using airplay on Mountain Lion? I'm playing a film from a website and uising airplay to iTV. The sound is fine, but the picture stops and starts. Any ideas?

    Why does the picture stop and start using airplay on Mountain Lion? I'm playing a film from a website and uising airplay to iTV. The sound is fine, but the picture stops and starts. Any ideas?

  • How may I automatically stop and start Mail services at a set time please

    Hi folks. I was wondering if anyone could tell me how to automatically stop and start Mail services (or any other services) at a set time please in Leopard Server? Is there a script someone has created which might help?
    Cheers, David ( a realy newbie when it comes to administering OS X server)

    launchd works through a series of XML documents that define tasks to run, either at launch, on a time schedule, in response to network events, etc.
    So you'll need to create two .plists - one to start the mail server and one to stop it. They should be saved in /Library/LaunchDaemons. I'd suggest something like:
    /Library/LaunchDaemons/local.postfix.stop.plist:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple
    .com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
      <key>Label</key>
      <string>local.postfix.stop</string>
      <key>ProgramArguments</key>
      <array>
        <string>/usr/sbin/serveradmin</string>
        <string>stop</string>
        <string>mail</string>
      </array>
      <key>StartCalendarInterval</key>
      <dict>
        <key>Hour</key>
        <integer>1</integer>
        <key>Minute</key>
        <integer>00</integer>
      </dict>
    </dict>
    </plist>
    and /Library/LaunchDaemons/local.postfix.start.plist:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple
    .com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
      <key>Label</key>
      <string>local.postfix.start</string>
      <key>ProgramArguments</key>
      <array>
        <string>/usr/sbin/serveradmin</string>
        <string>start</string>
        <string>mail</string>
      </array>
      <key>StartCalendarInterval</key>
      <dict>
        <key>Hour</key>
        <integer>4</integer>
        <key>Minute</key>
        <integer>00</integer>
      </dict>
    </dict>
    </plist>
    You'll need to either use launchctl load /Library/LaunchDaemons/local.postfix.stop (or start) to load the tasks, or reboot your server.
    I'm curious, though, as to why you want to do this. Mail is typically one of the services that people want to run 24/7 so they don't miss out on any emails (even though SMTP can tolerate this). Why do you want to shut yours down?

  • Burned DVD issues in DVD player not reading or music issues stop and start

    I'm a PC converted to a MAC (less than a month) and love it so far. I have been able to create and burn a DVD. The problem I'm having is one DVD player will not read the DVD (Hitachi). The other DVD player will play it, but the music stops and starts when it transitions (twirl) to another picture (Panasonic DVD/VHS combo). I'm using a DVD R Memorex. Neither one of the player are new. Would love to use this to make the Grandparent's a DVD of the grandchildren from birth to present as Christmas present. What do I need to use or do to be able to watch on any DVD player as well as the computers?
    Message was edited by: me01

    Hi me01
    Welcome to apple discussions. Try using 99 photos / less to avoid issues with audio fades / drops. Also do a search for Memorex on this forum and you'll see it's not the first choice of dvd's for most users. Instead try Verbatim, Maxell, or Taiyo Yuden and burn at 4x from a disc image for best results. Wish you luck and feel free to post back with results or any further questions.
    Disclaimer: Apple does not necessarily endorse any suggestions, solutions, or third-party software / products that may be mentioned in this topic. Apple encourages you to first seek a solution at Apple Support. The following links are provided as is, with no guarantee of the effectiveness or reliability of the information. Apple does not guarantee that these links will be maintained or functional at any given time. Use the information above at your own discretion.
    Message was edited by: SDMacuser

  • How to stop and start process SAPOSCOL

    Hi, i have a problem with write access for saposcol program. I see that the file saposcol is read the file but its unable to wirte the same.
    Collector           : running
    Start time coll.    : Mon May 21 17:49:49 2007
    Current Time        : Mon Jun 11 13:27:51 2007
    Last write access   : Tue May 29 06:23:46 2007
    Last Read  Access   : Mon Jun 11 13:26:24 2007
    When i try to stop the saposcol i get the following error:
    igzadm> saposcol -k
    Setting Stop Flag :
    13:24:44 11.06.2007   LOG: ==== Stop Flag was set by saposcol (kill_collector()).
    13:24:44 11.06.2007   LOG: ====  The collection process will stop as soon as possible
    can't kill process 409656.
    kill: No such process
    ERROR:No reaction from collecting process 409656.
          Please kill collecting process.exes.
    Am doing this command through SID<ADM> from change directory /run.
    Please help me how to check the permission of the SIDADM to stop the services.
    I also try the same from root user but now use..
    Please guide me how to stop and start the SAPOSCOL in AIX 5.3.
    Advance Thanks.
    Suri Tyson

    Hi, i have the following permission for saposcol
    imserv:/ # ps -ef | grep saposcol | more
        root  118842  528422   0 14:02:17  pts/2  0:00 grep saposcol
    I have changed the ownership as you mentioned....
    imserv:/usr/sap/IGZ/SYS/exe/run # ./saproot.sh igz
    Preparing /usr/sap/IGZ/SYS/exe/run/brbackup ...
    Preparing /usr/sap/IGZ/SYS/exe/run/brarchive ...
    Preparing /usr/sap/IGZ/SYS/exe/run/brconnect ...
    Preparing /usr/sap/IGZ/SYS/exe/run/brtools ...
    Preparing saposcol ...
    Preparing icmbnd ...
    done
    However, i still get the error as:
    igzadm> saposcol -k
    Setting Stop Flag :
    14:12:13 11.06.2007   LOG: ==== Stop Flag was set by saposcol (kill_collector()).
    14:12:13 11.06.2007   LOG: ====  The collection process will stop as soon as possible
    can't kill process 409656.
    kill: No such process
    ERROR:No reaction from collecting process 409656.
          Please kill collecting process.
    Now the permission are set in my system as:
    igzadm> ps -ef |grep saposcol|more
      igzadm  729196  983058   0 14:13:25  pts/2  0:00 grep saposcol

  • How could force tomcat to stop and start on every build on Ide?

    How could force tomcat to stop and start on every build on Ide?

    Hello,
    See this help article:
    *[https://support.mozilla.org/en-US/kb/How%20to%20set%20the%20home%20page How to set the home page]
    Or try go to about:config page, search for "browser.startup.homepage" change its value to "about:home"(default) or "about:blank"(blank page)
    *[http://kb.mozillazine.org/About:config about:config]

  • Script to Stop and Start Oracle Meter Data Management

    Hi,
    This is my first post in Oracle forums so if i open this in the wrong thread please forgive me.
    I tried to create a windows batch script to stop and start Oracle Meter Data Management but i can´t.
    @echo off
    D:\spl\MDMDEV\bin\splenviron.cmd -e MDMDEV
    D:\spl\MDMDEV\bin\spl.cmd stop
    D:\spl\MDMDEV\bin\splenviron.cmd -e MDMDEV
    D:\spl\MDMDEV\bin\spl.cmd stop
    The batch exits in the first command and i can´t understand why.
    Another thing is if i use spl.cmd stop command it doesn´t do nothing, is this normal?
    Thanks in advanced for all replies.
    Best Regards.
    Nuno

    I had to put a call command in mine. I think it is because you are trying to run a .cmd file within your bat file. You're actually changing shells. Thats why you need the call.
    call d:\spl\mdmdev\bin\splenviron.cmd -e mdmdev
    call d:\spl\mdmdev\bin\spl.cmd start
    I actually set mine up to use variables so all I had to change from script to script was the environment...
    <snip>
    SET SPLENV=MDMDEV
    SET INSTALLDRIVE=D:
    SET INSTALLDIR=SPL
    SET BINDIR=%INSTALLDRIVE%\%INSTALLDIR%\%SPLENV%\bin
    %INSTALLDRIVE%
    cd %BINDIR%
    REM Set envornment
    call %BINDIR%\splenviron.cmd -e %SPLENV%
    REM Wait a few seconds for environment to setup
    ping localhost -n 5 > nul
    REM Start SPL Web
    call %BINDIR%\spl.cmd start
    </snip>
    I was unable to find a way to get this to run as a service. Have you?
    I'm currently running these scripts in the startup/shutdown script section of the local machine policy (gpedit.msc).

  • Flash player stops and starts intermittently

    Does anyone know why videos stop and start intermittently. It becomes frustrating to watch and I eventually give up.

    op sys win 7 adobe flash player 10
    I have the same problem.  it seems related to bandwidth.
    i am limited in my data plan to 256 kb/sec
    i did not have this problem a year ago.  but had it when i used win xp as well.  Today noticed a site where i could choose low speed, medium speed or high speed bandwith. i chose the low speed 265 kb and the video played flawlessly without stopping and starting
    I claim no expertise and eagerly await some informed advice on whether it is possible change a setting within flash player to accomadate us low bandwith users.

  • Videos stopping and starting every three to five seconds

    I am having problems downloading videos from U Tube and msn. I can't even download videos from the Apple Site. The videos from U Tube stop and start every 3 to 5 seconds. They resume after 3 to 5 seconds. I have downloaded the latest version of QuickTime. I have gone into preferences-advanced and changed the transport setup to custom; set transport protocol to http and post to 80. I have also clicked on the streaming tab; set the speed to one lower than the ISP connection and move th enable instant on slider 2-3 bars from the left. What else can I try?

    There is currently no official version of MSN Messenger for Mac that supports video, unfortunately-- you might try aMSN instead, but I haven't used it myself so can't comment on the video support:
    http://www.amsn-project.net/
    However, the built-in camera works fine for me on Skype (and Yahoo last time I tried, which was a while ago), which suggests something else might be wrong somewhere...

  • Apple TV problem- Netflix message not availabale at present etc.  On Itunes playing a movie the sound stops and starts how can the downloading hurry up.  On the computer all OK.

    Netflix keeps posting not available- have restarted it as directed but still a problem.  Itunes movies dont download fast enough and stop and start. On the Imac computer no problem with sound or viewing.

    What is your current connection using speedtest.net
    I would check for interference using istumbler
    Make sure DNS is set correctly on ATV (settings - general - network - configure DNS - automatic)

  • Order of stop and start of reporting services

    Hi All,
    I am using 11.1.1.3 version in my laptop,i want know the correct order of stop and start the services,please help me on this.
    Thanks
    Hypuser

    The full order list can be found at :- http://download.oracle.com/docs/cd/E12825_01/epm.111/epm_install/ch05s02.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Music skips and stops and starts

    Hello, we have just got a nano to replace a 3rd gen iPod.
    I have around 50 gigs of music on a lacie USB drive, and the music plays flawlessly from here in iTunes.
    However once imported into the nano, there is distortion, jumps and clicks in the music and sometimes the song will just stop and start from the beginning.
    Any ideas?

    Gary,
    You chould check out this thread we have going.
    http://discussions.apple.com/thread.jspa?threadID=356911&tstart=0
    Toshiba Satellite P25-609   Windows XP Pro   Media Center Edition iPod Nano 2G (as black as my cold, dead heart)

  • MacBook Pro hard disk stops and starts

    Why does the hard disk on MacBook Pro stop and start every 15 minutes or so? All operations suddenly stop for five to ten seconds during the spin down. I don't recall this happening in OS 10.5. The preference "Put the hard disk to sleep when possible" is NOT ticked, therefore the drive should never spin down.
    Any ideas?

    Try resetting your SMC.   Resetting the System Management Controller  >>
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G + 120G OCZ Vertex 3 SSD Boot HD 

  • APEX 4.2 aligning issue of Stop and Start Grid Layout item

    My APEX application application is in the process of moving from 4.0 to 4.2.  I am experiencing an issue with aligning (left margin justified) of Stop and Start Grid Layout items that have a border around them.  Earlier I had an issue with the border itself not showing up in the 4.2 application.  I was able to resolve that with a workaround by adding inline code in the CSS section of the page: #P23_OFFICE_START_TBL {width:682; border:1px solid #369; margin:5px;}. This created the border which I needed, but there are 2 Stop and Start Grid Layout items that are indented and not aligning with the border of the previous line.  I have tried a number of different things but none of them have worked.  This seems like a very simple issue to fix but I am having a tough time resolving it.
    I tried to put the item in question in a different grid, which corrected the indention but then I lost the border around the item.  It seems that the above CSS code does not work on the new grid.  I also tried to put attributes such as margin-left:5px; float: left; clear: left; float: left, in the CSS code but that did not work, too.
    Any suggestions?
    Thanks
    Ajay K

    I deleted and added back the Stop and Start Grid Layout items not aligning properly.  This worked.  Apparently, the 4.0 to 4.2 upgrade did not handle/convert these items properly.  Deleting and adding them back resolved the issue.

  • SSRS Report queries begin running slowly, have to stop and start report server to restore performance

    We have had a production issue crop up twice now where reports begin running slowly seemingly at random.  
    When this happens we can see from running SQL Profiler that the report queries are taking an extremely long time to execute.  The same queries when run directly in management studio run quickly.  
    Initially I suspected parameter sniffing, and tried using OPTION (RECOMPILE) in the reports, as well as clearing out the particular query from the plan cache and running the SQL in SSMS to try and get a better plan etc but no amount of jiggery pokery by
    me could get the queries to run any faster.
    The really weird thing - is that stopping and starting the report server via the reporting services configuration manager instantly cures the problem.  
    I'd really love to know - why this might be?  Is it something to do with the report server closing and re-opening its connections to the database? That's the only sort of thing I can think of...any ideas? Anyone? Any suggestions would be much appreciated.
    LucasF

    Hi LucasF,
    In your scenario, usually we can monitor the execution log in Report Database. If you run below query, you can get the results how long the report takes to render (TimeRendering), how long to process the report(TimeProcessing) and how long to retrieve data
    from Database(TimeData). You can check the starttime and endtime to know the total time for executing a report.
    SELECT TOP1000 *FROM[ReportServer].[dbo].[ExecutionLog2]
    More details information, please reference to similar thread below:
    Steps for troubleshooting a slow SSRS 2014 server
    Troubleshooting Reports: Report Performance
    In SQL Server Reporting Services, a job will be created by SQL Server Agent if any of the following processes is underway:
    query execution on a remote or local database server
    report processing
    report rendering
    To cancel a job that is running on the report server, we can cancel the job directly or reduce the report execution time-out value in the SQL Server Management Studio and then will stop query execution. Please refer to the steps below:
    Open SQL Server Management Studio, and connect to "Reporting Services".
    Under the Report Server node, right-click on the "Jobs" folder and select "Refresh". Then, right-click on "Jobs" again and click "Cancel All Jobs".
    Right-click on the Report Server node and open the "Server Properties" dialog.
    Click the "Execution" option, and set the "Limit report execution to the following number of seconds:" to a much smaller number. After this issue is resolved, this configuration should revert to the previous state.  
    Reference:
    Managing a Running Process
    Setting Time-out Values for Report and Shared Dataset Processing
    In addition, we can also use the KILL Transact-SQL statement to terminate a normal connection by terminating the transactions that are associated with the specified session ID. For the details information, you can refer to:
    KILL (Transact-SQL)
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

Maybe you are looking for

  • Fost Displaying Differently in Different Browsers on Same Computer

    Why would a font display differently on the web page depending on the browser? If the font is installed on the computer (a Mac), isn't it available to all browsers? The specific problem I am having is with Palatino shadow. (The shadow is important, a

  • Zip does not contain files

    Hi I have a query regarding reading zip files created by the following class: class CreateZip extends Thread {     CreateZip(Vector FileList) {         try {             File zipFile = new File("C:/test.zip");             if (zipFile.exists()) {     

  • Cannot transfer files using Creative Media Sou

    I cannot Cannot transfer files using from my PC to my Creative Jukebox 0GB using Creative Media Source. Since I installed Windows Media Player 0, it seems that Windows Media Player 0 is the only program enabled to transfer files to my creative Jukebo

  • HelloWorld Help Needed

    Hi Adobe Community, I'm writing because I need some assistance with the HelloWorld example in the FMS 4 documentation. My setup is as follows all on a local network: Server Flash Media Server 4 Apache 2.2 (used FMS installer to set this up) CentOS 5.

  • Error - "The data area passed to a system call is too small"

    When I will add the invoice, this error raise in the GetLastErrorDescription of company object... What it's wrong with my code ?     Dim sComp As New SAP.Company     With sComp       .Server = "(local)"       .CompanyDB = "SBODemo_Brazil"       .User