Taking pulse output from DAQ

Hi
I am working on 'wireless sum tracker module' project using LABVIEW; but I don't know how can I provide pusle to my circuit using LABVIEW.I was wondering if you can help me in this issue. please if possible tell me how can I connect my circuit to DAQ card to get pule.   
Looking foeward to hearing from you,
Sincerely,
Monireh V 
Solved!
Go to Solution.

Hello Monireh,
To give you the precise solution we would need more inputs from you.\
But considering some assumptions from my side If you are using the Desktop PC for the project and If you are thinking of the DAQ card then,
You can go with the mulit-function  DAQ cards which have pulse generation capabilities.
You will also get the Details about the connections from the corresponding DAQ card Data Sheet.
http://sine.ni.com/nifn/cds/view/main/p/sn/n24CI/lang/en/nid/1036/ap/daq
you can choose a specific DAQ card for your requirement from the above link. (I have assumed that you will be using PCI cards)
Regards,
Krunal K Patel 

Similar Messages

  • I'm working on DC Motor control using DAQ. There is sufficient voltage output from DAQ but not current. What should i do so as to drive the motor

    I'm working on DC Motor control using DAQ. There is sufficient voltage output from DAQ but not current. What should i do so as to drive the motor. Could you suggest me appropriate driver IC using which this problem can be solved.
    Saravanan.T

    You really should use a DC motor controller to control a DC motor, look at the 754410 IC for a good example. You should be able to interface these to most DAQ devices.
    Alan

  • How to send a binary output from ni daq 6009

    I am trying to get a binary output from ni daq 6009 to make the selections of a multiplexer.
    I am trying to make the selection directly from the labview program.
    Please help me in getting this binary output from ni daq 6009 to do the selection

    Try something like this. 
    I'm not a fan of daq-assistant express vi's... use the primitives.  Create the task outside the main structure, pass that task inside the loop and do a write where needed.  Close the task after the main loop.  This improves speed and labview performance.
    Attachments:
    ocelot.png ‏43 KB
    ocelot.vi ‏21 KB

  • Multiple Input and Output from a 6534

    Hello
    I am after some advice regarding my PCI 6543 digital I/O card and the best way to achieve my desired results. I am programming in Visual C++ with Ni-DAQ 7.
    I want to generate a pattern output from one of the ports, Port A, following a software command. This pattern consists of a 10uS pulse on DIOA0, that repeats 200 times with a period of 100uS. I want this DIOA0 output line to initiate an input on ports C and D, possibly through the REQ pin. Consequently the input should acquire 200 times for each call to the pattern output.
    I want this to repeat, so the pattern output goes again (as in a FOR loop), and the input occurs again for an as yet undetermined number of times.
    I have managed to get something worki
    ng for 1 iteration, and I can generate multiple pattern outputs, but the inputs only seem to acquire for the 1st iteration. However, if I step through the code in debug mode I can get the input to work correctly.
    Any ideas would be gratefully appreciated.
    I am still trying to get some earlier problems with this application solved.
    Kind Regards
    Jamie

    Hi Jamie,
    There are a couple different ways you can loop from a buffer. You can either use the onboard memory of the 6534 and loop from there or you can specify as a software configuration that the board loop through the PC memory buffer.
    For the onboard looping you need to specify the following:
    iStatus = Set_DAQ_Device_Info (1, ND_PATTERN_GENERATION_LOOP_ENABLE, ND_ON);
    For software, PC memory looping, the following function specifies this:
    iStatus = DIG_DB_Config (iDevice, iGroup, 1, 0, 1);
    I attached a couple programs that might be of use. Check this post:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=5065000000080000008BA10000&USEARCHCONTEXT_CATEGORY_0=_31_%24_12_&USEARCHCONTEXT_CATEGORY_S=0&UCATEGORY_0=_31_%24_1
    2_&UCATEGORY_S=0
    Hope that helps. Have a good day.
    Ron

  • Sine.vi clicking when used for realtime output with DAQ Assisstant.

    What I'm Trying to Do: Stepped sine analysis. The program outputs from the DAQ device each of the frequencies entered into the array constant on the left (see VI) in order, taking a measurement of the magnitude of the signal input to the DAQ device for each frequency. The program only takes a measurment and moves onto the next frequency once it has decided that the magnitude of the input signal is stable. Stability is defined by the stablility upper and lower limits labelled in the lower double nested loop (see VI). The program measures the inputs magnitude 10 times as second, and calculates the difference between the current magnitude and the last magnitude each time. The difference must be within the stability limits 20 times in a row for a measurement to be saved and the frequency changed.
    The Problem: phase of sine.vi is resetting each time round the loop for some (not all) frequencies, even though it's set not to, causing clicks (number of clicks per seconds depends on block size). This doesn't happen if the lower nested for loop (the one that checks for stabliity, labelled on the attached VI) is removed. I thought that maybe the two DAQ Assistants (one for output and one for input) were interfering with eachother, but the problem occurs even when the DAQ Assistant Input is changed to a signal generator.
    Thanks in advance for any help,
    Christian
    Message Edited by crnbaker on 12-08-2009 05:00 AM
    Attachments:
    steppedsine_forum.vi ‏116 KB
    steppedsine.JPG ‏74 KB

    Hi Christian,
    I have been looking into this problem though I must warn you that since I don't not have your exact hardware configuration I can not exactly recreate your problem. I have also carried out some research to determine whether there are any known instances of this problem, and unfortunately there are not.
    The fact that the VI runs OK when the lower loop is deleted suggests to me a problem in this lower loop. Have you tried initialising the shift register. An uninitialised shift register could explain such inconsistent behavior. Symptomatic of this kind of problem would be the VI running correctly the first time you run it and then producing unexpected behavior subsequently.
    Best Regards,
    Christian Hartshorne
    Applications Engineer
    National Instruments

  • Counting 3 pulse outputs on the 9178

    Hello everyone,
    Please note that I am very new to Labview. My issue is related to measuring 3 independent pulse outputs.
    Currently I am using a 9178 chassis. Two pulse outputs are coming from Omega FTB800B Pulse meters (water flow) which should output 20 pulses/gallon of water flow. The third pulse output originates from a wattnode pulse meter.  I am attempting to create a very simple vi (to test all three outputs).
    The wattnode seems to be working perfectly and the pulse outputs seem reasonable (connected to a 9402 card).  
    The two flow meters, on the other hand, are giving me some trouble. I have attempted to run them through both the 9402 card and the two onboard pfi ports.  
    The wattnode works using the daq assistant and selecting edge count. Since the Omega flow meters are not supplying voltage or current (reed switch), I figured this was a good guide to count pulses internally https://decibel.ni.com/content/docs/DOC-9061. Unfortunately I have been unable to measure the pulse outputs using the aforementioned method. 
    I have one USB-6009 unit which does not seem to have a problem measuring flow from either meter (one at a time due to the internal counter limitation).
    Please see the attached vi examples
    Thanks 
    Attachments:
    WaterMeter.vi ‏23 KB
    Wattnode_VI.vi ‏52 KB
    USB-6009.vi ‏49 KB

    Thanks for the reply Nick-A!
    I believe the WaterMeter VI originated from the example finder section of Labview. There seem to be a few additional prorams which help display pulses counted by the edge counter; but, the counter portion of the code appears almost identitcal to the WaterMeter VI.
    I tried utilizing the usb 6009 vi format (DAQ assistant) through the 9402 card. For some reason, I do not even measure pulse readings while running the project in the DAQ assistant properties window. Both flow meters produce the same results when connected to the aforementioned card (I have connected the flow meters to each of the 4 BNC ports). Please correct me if I am wrong, but shouldn't pulse count appear through the DAQ assistant (even if there is no other coding)?
    Thanks,
    Daniel

  • How to capture graphical outputs from other programs

    Does anyone know how we capture the graphical outputs from the other programs and show them
    on the swing?
    I'd like to use a java program to run gnuplot, capture the outputs, and show them using swing.

    Depends on what you mean by "graphic outputs".
    Taking a quick glance at the gnuplot homepage, it looks as if you can output to PNG files, so just run the app, and load the png file.

  • How can I save a page and all its component parts in a single file, like IE does as an MHT - it's much easier for mailing to people where page address not available?? (as in output from an airline booking site, for example)

    how can I save a page and all its component parts in a single file, like IE does as an MHT?
    It's much easier for mailing to people where page address not available?? (as in output from an airline booking site, for example)
    It is simply too painful to have to zip everything up into a single file to send. MHT format has been available for years now from IE, and with every new FF release it's the first thing I look for. I have been using FF for years, and hate having to come out of it, over into IE |(which I even took out of startup) and key everything in again, in order to send somebody something in a convenient format that they can open with a single click.
    I can't believe this hasn't been asked before, so have you looked at it and rejected it? Have MS kept the file format secret?
    Thanks
    MG

    This is not really an answer just my comments on your question.
    I am sure I recollect efforts being made to get mhtml to work with FF.
    Probably the important thing to remember about .mhtml is that if other browsers do support it they may need addons, and may not necessarily render the content correctly/consistently.
    There are FF addons designed for archiving webpages, you could try them, but that then assumes the recipient has the same software.
    You could simply save the page from FF to your XP pc; then offline open it with and save it using IE, before then emailing using FF, and attaching the .mht or mhtml file that you have now created on your PC.
    As an alternative method, in some cases it could be worth considering taking a screen grab of the required page, then sending that to the recipient as a single email attatchment using either a bitmap or jpeg file format for instance.
    Something such as an airline booking may be designed with a print option, possibly it could be worthwile looking at sending the print file itself as an email attachment.

  • Getting no output from java.util.logging.FileHandler

    I am new to Java as is the company I work for, but we have just landed a contract that specifies J2EE as the platform, so here we are. :-) Please bear with me.
    I have been charged with determining our logging architecture and it looks like what is available in java.util.logging will do well (though we may use log4j). However, at this point I am just trying to get anything to work and not having much luck.
    We are using JSF on the front end and I have created a very simple JSF page to test logging. The relevant code is below and I hope will be self explanatory: This code is not meant to be efficient or anything. It is just a proof of concept.
        public String button1_action() {
            // User event code here...
            try {
                Logger l = java.util.logging.Logger.getLogger(Page1.class.getName());
                l.entering(Page1.class.getName(), "button1_action");
                l.info(this.textField1.getValue().toString());
                l.exiting(Page1.class.getName(), "button1_action");
                java.util.logging.Handler h = l.getHandlers()[0];
                h.flush();
            catch(Exception ex) {
                //I have tested this and we aren?t catching any errors.
                System.err.println(ex);
            return "";
        }My logger.properties files looks like this:
    handlers= java.util.logging.FileHandler
    .level= FINEST
    java.util.logging.FileHandler.pattern = c:/sun/logs/test-%u.log
    java.util.logging.FileHandler.limit = 50000
    java.util.logging.FileHandler.count = 1
    java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatterI have developed and tested this in Sun Studio Creator 2004Q2 What is happening is that I am getting three log files in c:/sun/logs
    test-0.log, test-1.log and test-2.log. The first two contain output from various sun components. (sun.rmi.transport for example). The third log remains empty. (zero length)
    I have also deployed the test app to a tomcat 5.0.28 server and get similar results. The only difference is I get only one two log files and the second one remains empty.
    Any assistance or suggestions as to what direction I should be taking would be appreciated.
    --Ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Do not use default logger as getLoggers[0] , but use your java.util.Logger.FileHandler and add filehandler object to log your fButtonActions and you do not need to mess with logger.properties too.

  • How to get pulse readout from BPM analysis in biomed startup kit

    Hello,
    We are trying to obtain an instantaneous pulse reading from a Vernier Go EKG sensor.  We tried writing our data to an array in a for loop, then exporting the array to the "array in" node on the BPM analysis tool.  We would like a chart displaying the EKG (which we have) and the instantaneous pulse readout (which we get a readout that says not a number).  HELP!
    Attachments:
    EKG.vi ‏18 KB

    Hi TFleck!
    I want to premise my response by saying Steve.J had a great suggestion, there might be users in the Biomedical User Group who can help you with this hardware or maybe you could contact Vernier as the Vernier Go EKG sensor and the VI in your attached file uses SubVIs supported by Vernier. In addition, it looks like Vernier provides some tutorials.
    Given that suggestion and that I do not have this hardware to test with, there are a couple of things in the VI that look like they could be related to your issue. First, the parameters cluster line from the Read VI output is not connected through to the BPM VI. You might have to wire the parameters so the BPM VI gets the correct configuration data. Second, the BPM VI has an input called Analysis method and the default for that terminal is point-by-point analysis. It looks like the VI you wrote is using data array analysis, so I would recommend creating a constant on that terminal and trying Analyze Data Array.
    Hopefully that helps, but if not, maybe someone in the Biomedical User Group knows more about the device or you can contact Vernier and they can support you with some examples.
    Milan

  • Unable to read output from server on a socket

    Hello everyone,
    I am trying to re-develop and application that traditionally is developed in VB.
    Traditional program does following: communicates with host using telnet; login, send some text, read the output from server, validates output and terminated telnet connection.
    I am trying to build same kind of application in Java using sockets, but I do not get any response from the server.
    Any Suggestions ?
    Thanks,
    Code below:
    String hostName="ip address here";
    int portNum=23; //Verified that server's telnet runs on port 23
    try
    socket=new Socket(hostName,portNum);
    out=new PrintWriter(socket.getOutputStream(),true);
    in=new BufferedReader(new InputStreamReader(socket.getInputStream()));
    }catch(UnknownHostException e){
    System.err.println ("Host not found: " + hostName);
    System.exit(1);
    }catch(IOException e){
    System.err.println("Could not get I/O for host: " + hostName + "on port: " + portNum);
    System.exit(1);
    BufferedReader stdin=new BufferedReader(new InputStreamReader(System.in));
    String userInput;
    try{
    while ((userInput=stdin.readLine()) != null)
    out.println(userInput);
    while (in.readLine() != null){
    System.out.println("echo: "+in.readLine()); // I Expect server's output here but nothing happens.
    }catch(IOException e){
    System.err.println("User Input not read.");

    while (in.readLine() != null){
    System.out.println("echo: "+in.readLine()); // I Expect server's output here but nothing happens.I see two problems here:
    1) in.readLine() only returns null if the socket is closed. You will be forever in that loop.
    2) you are losing every second line of your input. If your telnet server sends only one line at the beginning, the readline() call in the while statement will swollow that.
    If you want to do this in a single thread, you will have to use a method which won't block until input is available, such as the read(char[], int, int) method of BufferedReader.
    You could also use two threads, of which one is printing the output and the other is taking user input. This has the advantage, that you are able to handle any connection errors immediatley instead of only when the user entered a command.
    Does telnet send information about the end of an input sequence (like the end of the welcome message and the end of the answer to any issued command? If not, I'd say that you should use two threads, as you would have to do polling all the time otherwise.
    Hope it helps.

  • Frequency divider/ pulse generation from 1 to n

    Hi,
    I have a sample pulse which in some cases needs to be divided. I tried to use the pulse train generation function, which works fine (giving me a pulse every n sample pulses), but only starting at 2 input pulses. I need to be able to use this function from a division of 1 and up.
    Put in another way, can a counter be configured in such a way that it outputs a pulse every rising edge of the source signal?
    I'm using a PXI 6602 counter card and am programming it through calls to NIDAQ32.DLL under Labview 7.

    Hi Walter,
    In short, no. You can't output a pulse on every input pulse. You can however configure the degree of division. Here are the rules for division:
    When set to pulse train generation, you will have a register for the low value of the pulse train and a register for the high value. What happens in typical pulse generation is that these registers are loaded with count values such as 2 and 2 for each register respectively. In default operation, the first register will count 2 pulses on the source and then toggle the output. The second register will then count to pulses and toggle the output again. The operation then cycles back to the first register. This toggling effectively creates a pulse train that is divided by 4 and a duty cycle of 50%.
    You can however change the output mode to pulse instead of toggling upon completion of counting on a register. In the above example, you would count 2 source edges and then pulse for the first register and the count 2 more edges and pulse again for the second register. You will of course repeat this in pulse train generation mode. This mode allows you to obtain greater resolution since you are now dividing by 2 but your duty cycle will be different. Each pulsed output will be equivalent in size to the source pulse width.
    Finally, the two registers can be populated with integer values of 2 or greater. Therefore, the smallest frequency division is 2.
    You will have to work with these three elements to obtain the pulse train of your desired frequency. Hope that helps. Have a good day.
    Ron
    Applications Engineering
    National Instruments

  • Inconsistent output from SCVMM PowerShell commands

    I noticed that the output from SCVMM commands is not consistent. I will use an example: When I run the command Get-SCVMHostGroup for the first time, the Hosts and AllChildHosts properties are null, but if I keep running the same command continuously
    the values slowly start appearing. See following output:
    PS C:\Users\mandardi> Get-SCVMHostGroup
    AllChildGroups : {}
    AllChildHosts : {}
    AllowUnencryptedTransfers : False
    ChildGroups : {}
    CreationDate : 8/16/2011 7:32:06 PM
    Creator :
    Description :
    Hosts : {}
    ID : 0e3ba228-a059-46be-aa41-2f5cf0f4b96e
    InheritPROSettings :
    InheritNetworkSettings : False
    IsFullyCached : True
    IsRoot : True
    MarkedForDeletion : False
    ModificationDate : 8/16/2011 7:32:06 PM
    ModifiedBy :
    Name : All Hosts
    ParentHostGroup :
    Path : All Hosts
    PROAutomationLevel :
    PROMonitoringLevel :
    ServerConnection : Microsoft.SystemCenter.VirtualMachineManager.Remoting.ServerConnection
    PS C:\Users\mandardi> Get-SCVMHostGroup
    AllChildGroups : {}
    AllChildHosts : {mandar-win2k8.cvlxxxxx.local}
    AllowUnencryptedTransfers : False
    ChildGroups : {}
    CreationDate : 8/16/2011 7:32:06 PM
    Creator :
    Description :
    Hosts : {mandar-win2k8.cvlxxxxx.local}
    ID : 0e3ba228-a059-46be-aa41-2f5cf0f4b96e
    InheritPROSettings :
    InheritNetworkSettings : False
    IsFullyCached : True
    IsRoot : True
    MarkedForDeletion : False
    ModificationDate : 8/16/2011 7:32:06 PM
    ModifiedBy :
    Name : All Hosts
    ParentHostGroup :
    Path : All Hosts
    PROAutomationLevel :
    PROMonitoringLevel :
    ServerConnection : Microsoft.SystemCenter.VirtualMachineManager.Remoting.ServerConnection
    The command above was run twice within an interval of few seconds, as you can see the Hosts/AllChildHosts properties are populated after the second attempt.
    I want to know what is the reason for this behavior, are the properties collected asynchronously? If yes, what is the best way to prevent this?
    I also noticed that when you open a new powershell window, the same behavior repeats, in fact you get correct output in one window, whereas you get null values in other. What is the reason for this and what's the work around?
    Thanks in advance.
    Mandar

    There are times when you get a job back as the return value and not the actual queried value.
    Quite frequently it has to do with the information being queried.
    Getting a specific HostGroup I would expect to be relatively quick, however generically querying for all host groups might not.
    I have not tried the specific scenario myself, I am describing behavior i have experienced.
    Does this affect the reliability of the PoSh module?  I don't think so.  But it definately affects how you use it and its cmdlets.
    I have learned that taking thinking from another virutalization environment (XenServer or vCenter for example) and expecting those same behaviors from SCVMM is a false assumption that many folks run in to.  This makes VMM neither fit nor unfit - just
    different.
    I am not attempting to defend VMM, just stating situations that I have been in with development teams.
    Brian Ehlert (hopefully you have found this useful) http://ITProctology.blogspot.com
    Learn. Apply. Repeat.

  • Noise on optical output from Airport Express

    I have an almost new Airport Express (actually as an extension of my old AE) which I use for streaming music to my HiFi. At first I used the analogue output for my amplifier, without any problem. But now I have installed a HiFi D/A converter (Rega) and started using the optical output from my AE. It plays fine, but now and then (like 2-3 times per track) there is a noise appearing, like a pulse of 3-6 beats. Could be external noise, but it is only there when I play music. Anyone have any idea ??

    Hi, nice to know I am not the only one with this problem (did not log on for a while...)
    The problem is also that one doesn't really know which part to blame. I guess anywhere you go with your problem they would say it is something else. And the guys in the Apple store don't have knowledge at this level, they are just trained to sell.
    I am sorry to hear that you had to give up and return to the analogue input. Which means that you are using the D/A converter built into the Airport.
    Are you saying that you were using the digital output from your old Airport into your Rega DAC without any problem ? If you feel sure about that it must be the new type of Airport that has a problem.

  • What is the best way to run two programs simulataneously using the output from one to run the other?

    I just kind of wanted to get an opinion from some people on here. I have two main VIs. The first is a DAQ system that reads 99 different sensors and feeds that data into an array. The second is a real-time processing system that is designed to take the array and do numerous calculations. Both VIs output data to the front panel that I want to see, so I don't want to just use one as a SubVI.
    Is there a simple way to run both VIs, using the output from the DAQ system to feed the processor so that you can easily see the front panels of both VIs? I had considered just copying the real-time processor code into the DAQ VI, but I'm worried the resultant VI will be very large and unsightly.
    On a side note, am I over thinking this? Excuse me if this is a rather dumb question, it's been a long week...aaaand it's Wednesday.
    Solved!
    Go to Solution.

    There are a number of ways that you can go about this, but having both front panels open isn't a problem (assuming there is screen space!). Both could be sub-vi's of another "calling" vi, with their front panels set to open when called. The data from the DAQ side can be sent to the other through a number of ways, "producer-consumer" (many threads about this topic, examples in the LabVIEW examples, etc.) is one of the more robust techniques. If created correctly it allows one to run at a different rate than the other, although if the producer is "producing" much faster than the consumer can "consume" it will end up with problems.
    I guess I type too slowly
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

Maybe you are looking for