Programmatic Control of Pulses from Ctr0

Using LV8.0 with Win_XP.
To control a loading solenoid at  a user programmed time interval
( On / Off ) I am using Ctr0 to generate the pulses and counting the
number of pulses  by Ctr1 using a hardware link from Ctr0 output
to Ctr1 input.
My requirement is to be able to start and stop the Pulse generation
based on certain  conditions in a State Machine. And when I stop
and restart the pulse generation, the Numeric count of pulses must not
be reset. Typically each schedule on the machine will run for about 2
million cycles and hence retaining the elapsed count is very important.
More than my description the enclosed VI will explain the requirement more clearly.
Thanks for any suggestions.
Raghunathan
Raghunathan
LV2012 to Automate Hydraulic Test rigs.
Attachments:
OnOffTimer.vi ‏108 KB

Hi Raghunathan,
I liked your application and couldn't help but try and code this up myself.  I have attached the modified version with the logic used to stop/restart the counter output.  Let me know if this is what you were trying to do.
Regards,
Andrew W
National Instruments
Attachments:
OnOffTimer_mod.vi ‏118 KB

Similar Messages

  • Can I programmatically control an xbox 360 console from a PC using a USB cable?

    I have an application that may require LabVIEW, some software normally associated with LabVIEW or both...
    I would like to be able to programmatically control an Xbox 360, via a PC, and through the use of a USB cable connecting both. I have setup a separate Xbox 360 console as a "dedicated server" for my gaming clan. I would like to be able to have the PC issue scripted commands according to a schedule, that will cause the console to power up, start the specific game (disk in the machine already), and then proceed through a number of Xbox 360 controller button actuations to cause the game to essentially be ready to play.
    If possible, I would like to find software that I could install on my PC (currently run with a Windows XP SP2 OS, but I have access to many versions of Windows and also Linux and soon, Solaris Unix).
    I have tried using various Infrared devices that connect to and are controlled by my PC, but none so far have allowed the infrared signals to work once the game is launched (apparently, only controller signals generated through a USB cable or through RF from a wireless Xbox 360 remote work once the game is launched - and that probably because the IR signals are meant to control the console as a media device).
    I would appreciate any direction that you 'all could offer. Thanks in advance!

    Thanks for your replies everyone, and thanks to NI for this great forum!
    The last solution appears to be pretty close to what I'd like to do. If I understand you Robert, I would attach a DAQ to my PC via USB and would control that device via software, then the DAQ connects to a digital output controlled relay (looks multiple wires, and screw-on connections) and then there would be separate wires connecting 'channels' (my term) from the relay to individual button wires inside of the gaming controller? The signals coming from the controller following this would therefore appear as normal.
    If this is correct, could you suggest any specific devices for this? I see that NI makes several USB DAQ's includng the USB-6501, 6008, and 6009. I also have seen many digital output controlled relays available from different vendors. I could use some assistance with the finer points for choosing the correct ones to purchase.
    In case it makes any difference although the controller has analog functions my requirements are for only the digital buttons only as I would simply be proceeding through the Console's menu (left, right, up, down, enter/select, etc.), launching the game, and then within the game continuing to choose among the game's menu items, ultimately according to a script. So, I don't see any need to be able to actuate either of the 'sticks' which are analog in nature.
    Thanks!

  • Help acquiring a pulse via Ctr1 (in) from Ctr0 (out)

    Hi,
    I am needing assistance acquiring a slow pulse signal.  I am generating a pulse using Ctr0 Out.  I want to graph this pulse output along with a temperature measurement to see how the two measurements interact.  My problem is that I never see the pulse at my pulse input channel.
    I can measure the temperature fine.  this works good.  I can generate a pulse without a problem as I ave an O-scope to monitor the Ctr0 output.  this works fine.  However, I have wired the output of Ctr0 to a physical channel on the SCC-68 (PFI-4 or Ct1 Gate channel) and created a DAQ Assistant to acquire this pulse.  The VI runs and errors out with a message that the signal to the DAQ Assistant is never seen and thus times out.  I can physciall y see the signal via my O-scope going to the channel.  I must have the DAQ Assistant 2 configured incorrectly?????
    Any input is greatly appreciated.
    Attachments:
    CJ Graph test.vi ‏162 KB

    I noticed that your number of samples has been set to 1000 (continuous mode), hence a possible reason for the timout errors. I would suggest changing that to 1 sample (on demand) and see if that gives you any progress.
    -Ciao

  • HP Photosmart 5514 all-in-one printer. Control copy function from computer?

    I have a HP Photosmart 5514 whose touch screen is no longer working properly.  It doesn't recognize any selection at the bottom right of the screen.  I can touch any other place on the screen and it will respond.  Because of this I'm no longer able to copy or scan from the printer.  I can print from my computer as this doesn't involve using the touchscreen on the printer.  What I'm wondering is if it is possible to use my computer to control copying.  Is it possible to use the computer (rather than the touch screeen on the printer) to tell the printer to copy?

    Hello Junior2,
    Welcome to the HP Forums.
    I see that you are having an issue with the touch screen not responding.
    One step that you can try is to please make sure that you have the printer power cable connected directly to a wall outlet and not a power bar/strip. Here is a document that uses a LaserJet printer as an example but it is meant for HP products in general. Please click on the following link that explains the Issues when Connected to an Uninterruptible Power Supply/Power Strip/Surge Protector.
    If this does not resolve the issue, I would then suggest calling HP's Technical Support to see about further options for you. If you are calling within North America, the number is 1-800-474-6836 and for all other regions, click here: click here.
    As for controlling the printer from the computer, the only thing that you will be able to do is print or use the scanning software to scan to the computer. 
    Thanks for your time.
    Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    W a t e r b o y 71
    I work on behalf of HP

  • Is it possible to control itunes dj from other computers on the same network?

    is it possible to control itunes dj from other computers on the same network?  we have a computer running itunes connected to our speakers here at work, and we'd like to be able to control it through the other comptuers on the network.  is this possible, or do you have to use iphones/ipads/etc?

    AC is corret you can do that.  It might work a bit better for you if you use a wired connection vs a wireless one for the ATV's.

  • How can I control an iPad from a touch screen which is mirroring the iPad screen

    How can I control an iPad from a touch screen which is mirroring the iPad screen.
    This is a very important application for disability students who wish to use iPad apps but do not have sufficient fine motor skills to use the small screen of an iPad but could use a large format display touch screen.
    There must be a way.?????????? Help!!
    Peter Niass
    [email protected]

    Have a look here
    http://www.macstories.net/iphone/the-external-touchscreen-that-can-control-an-ip hone/

  • How can I control my Iphone from my PC/laptop/Mac without VNC(requires WiFi

    Hi,
    Is there a way to control my Iphone from my computer without a WiFI connection? I was able to do this on my treo via USB cable. Anyone help?

    There's not one i don't believe but there is one that you can use you iPhone to control you're mac. ill let you know if i come across one though!

  • Looking for app that will allow me to control my iphone from my desktop

    Looking for app that will allow me to control my iphone from my desktop.  I would like to be able to send text messages, etc from my computer instead of using my iphone.  I don't want to jailbreak my phone.  Does anyone know of app like this?
    Thank you,
    Scott

    Windows or Mac?  You can at least send iMessages from a Mac with Mountain Lion installed.
    There are apps that let you do the reverse (control the computer from the phone).  I don't know of any that let you go the other way.  It would be kind of cool if we could do this though.  But, I suppose it could open up a Pandora's box of security problems for the phone itself.  Just imagine somebody hacking into your phone remotely and using it without your permission....

  • Programmatically closing a popup from a managed bean

    Hi,
    in the following blog [http://thepeninsulasedge.com/frank_nimphius/2008/02/14/adf-faces-rc-programmatically-closing-a-popup-from-a-managed-bean/|http://thepeninsulasedge.com/frank_nimphius/2008/02/14/adf-faces-rc-programmatically-closing-a-popup-from-a-managed-bean/]
    the following statement is being made at the end ...
    The JavaScript call is issued as "window.exitPopup()" because the script is called from the page root. You can easily see how the JavaScript can be modified to have "exitPopup" becoming a generic function avoiding hard coded popup ID's as in my example.
    I don't understand how to avoid hardcoded popup ID's. Could someone please explain this to me.
    Thank you
    Bodhy

    Hi,
    thank you. It is working.
    @Timo
    The closePopup function in your comment has the variable popupId. That made me wonder, if it is possible to set this variable in my jspx page.
    I made a workaround by defining a new variable called popupId with getter and setter methods and using the setActionListener to set that popupId. After that I was calling the closePopup() function. Do you know a better way doing this?
    @Frank
    I was also reading through Frank's blog about JavaScript [http://thepeninsulasedge.com/frank_nimphius/adf-faces-rich-client-javascript-programming/|http://thepeninsulasedge.com/frank_nimphius/adf-faces-rich-client-javascript-programming/] , trying to find a solution to call JavaScript functions with variables (defining these variables in my jsp page). Is this possible?
    Thank you
    Bodhy

  • How do i control my music from the lock and control screen?

    I Dont know if theres a setting i have to change, but i cant control my music from the control screen nor can i control it on the lock screen while the music is already playing. Is this a settings problem or is it just not working for my iphone 5?

    I'm having this same issue on the 4s.

  • How do I control my mac from another mac not in the same network?

    How do I control my mac from another mac not in the same network? Thanks

    You can do it manually, but it is much simpler if you use a tool such as Back To My Mac, LogMeIn, or something like that. Those programs enable you to connect to your computer through your router without you having to adjust the router settings manually.

  • How to do you control lower levels from the Stage?

    How to you control lower levels from the Stage?
    I have a button on the main stage and I have a symbol that has another symbol inside that I want to control that timeline or label.
    I have had success with going one level deep but not two or three deep.
    sym.getSymbol("symbol01").stop("label01");
    Any help would be great!
    Thanks.

    Can you explain the hierachy of your symbols? By this I mean, name of your symbol and any symbol inside and any symbol inside nested symbol and what event you are triggering from where?

  • Cannot map control record values from payload w/XSLT after SP13 upgrade

    Hi!
    Since we upgraded to SP13, the mapping of control record values form the XML payload to the IDOC control record (File->XI->IDOC scenario) no longer works if the mapping is done via XSLT. It works if the XI graphical mapper is used. The XSLT used is the same pre and post upgrade, but worked fine previously.
    [ Apply Control Record Values from Payload is checked in the IDOC adapter comm channel. ]
    Has anyone else experienced this? Am looking for any inspiration
    Cheers
    Duncan

    Are you sure the xslt file is still there?
    Maybe some non-compliance was corrected in later SP and your XSLT was using that non-compliance.
    If you post the XSLT we could try to point out any possible errors.
    Regards,
    Henrique.

  • Remotely control your PC from ANYWHERE in the world using JAVA/RMI!

    I have just developed a project named XtremePC.
    This well commented Java project involved RMI technology, can be used to control the server from anywhere in the world including features of listing running processes, file transfer, shutdown/logoff/lock/restart server PC, execute programs, browsing in DOS/Linux fashion. The server is protected by encrypted password. I bet my time and energy on this project most for increase the strength instead of designing GUI. In response to huge request from AIUB, Bangladesh teachers and students for uploading my project of Object Oriented Programming-1 course, I have decided to come up with this Java RMI project with source code!! (Tested on jdk1.3, 1.4)
    Get it from the MyDownload section of my homepage: www.tanzim.tk
    Thanks!
    -- Tanzim Saqib
    [ www.tanzimsaqib.tk ]

    and how many backdoors did you build into it so you can take over all those
    machines and turn them into zombies? lol

  • Is it possible to remotely control an Ipod from a PC?

    Is it possible to remotely control an Ipod from a PC?

    Check out LogMeIn. I'm not sure if it works in both direction though. I can control my Mac from my iPhone.   
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101

Maybe you are looking for

  • 11i Login Page is showing 'Error on Page' while using IE 7

    Hi DBAs, I am using Oracle 11.5.10.2 with DB 10.2.0.4 (Single Instance). The EBS is on RUP6 and using JDK 1.6.0_12. I was using Firefox and not getting any issue. I used first time IE-7 (7.0.5x) to access the application. I noticed that Pressing the

  • Cross Tab calculation in Individual column-Crystal Report

    Hi experts I am preparing a report in Crystal report 2008. Report template is Cross Tab. Structure of report is Cardname-Row, DocType-Columnd, DocTotal-Summarize field. Result of this report is                       IN(Invoice)             RC(Incomin

  • Dynamic structure of "string" data type. Please help.

    ABAPers, I am calling cl_alv_table_create=>create_dynamic_table method to dynamically create a structure. The input structure definition is as follows: data: xfc type lvc_s_fcat. data: ifc type lvc_t_fcat. * define Fld1 clear xfc. xfc-fieldname = 'Fl

  • Multiple Instance Push Function Module

    All, I am referring to the service order tutorial as given in following link http://help.sap.com/saphelp_nwmobile71/helpdata/en/45/ac4bed74372733e10000000a155369/frameset.htm I have succefully created the Data Object/BAPI Wrappers and other objects.

  • Need to set module name = username in V$sqlarea

    Hi All, I tried to set module name same as schema name in v$sqlarea, generally it was sql*plus. For that i created one after database logon trigger, but it didn't work for all users, it is only working for SYS schema only. CREATE OR REPLACE TRIGGER L