How to run two DAQmx Read (Counter in + Digital in) simultaneously?

Hello to all, i have following issue:
I want to acquire a digital (UART like) bus signal. For this purpose i use a DAQmx Card (PXI 6070e). I need precise time information about time lenght of 0 and 1, so i use a counter. The counter is adjust to CI Semi Period(continuous samples) -> on the edge change i'll get a new measured time value. It works perfectly, but i newer know what kind of state (0 or 1) actually belongs to current value. Of course they changing with each edge, but i need to know that exactly. So i should take a digital input which watching the current state. Unfortunately i can not synchronise two DAQmx-reads.
Finaly i should get two values:
time value(counter) and his state(digital in
) to work with them. How can i do this?
I use LabView 7.0

[SRQ 211371]
This is not a trivial taks but here is one way to do what you explained with a PXI-6070E and some external circuitry:
1. Use buffered semi period measurement to measure the width of your pulses.(Meas Buffered Semi-Period-Continuous.vi)
2. Use a buffered continuous analog data acquisition with external scanclock (e. g. Cont Acq&Graph Voltage-Ext Clk.vi). Maybe you should use a triggered example to start the acquisition at a defined time.
Now you could connect your signal to the ScanClock input (PFI7) of the 6070E but then you only would acquire only a sample at either the rising or the falling edge. As you need a sample at both edges you need some external circuitry that generates a short positive TTL pulse at each edge (rising and fa
lling).
Sorry that I can't provide a solution for this circuitry but I'm pretty sure something like this should be available as a low cost IC.
You may want to allow your signal some settling time after the scanclock pulse has occurred. In this case simply acquire data on two AI channels. The first channel is only a dummy channel. Connect your signal to the second channel. The delay can be adjusted with the interchannel delay.
If anybody knows a good solution for the external circuitry or if anybody has a better approach please post it here.
Best regards,
Jochen Klier
NI-Germany

Similar Messages

  • How to run two DAQmx Read (Analog) at the same time?

    I would like to measure a voltage and a current,
    but the two cannot be conbined in one task.
    Therefore, I had to use two DAQmx Read in the same program. But it did not run.

    Multiple channel types can be combined in a single DAQmx Read. One way is to use multiple DAQ Create Channel fucntions. Look at the posting here and the second example at the link in the answer.

  • How to run two query  in the same preparedStatement

    Hi all,
    Please tell me how to run two queries in the same preparedStatement object ?
    In my module I have to run two queries and I don't want to make two methods for running two different queries.
    I just want to call this method for both of my queries.
    methodName(long param)
    Connection conn=null;
    PreparedStatement pstmt=null;
    //////////////// some coding
    Please Help !
    Thanks in advance
    amitindia

        public void foo()
            Connection connection = null;
            PreparedStatement stmt = null;
            try {
                connection = ...get from pool...;
                stmt = connection.prepareStatement("...");
                ...fetch results...;
                stmt.close();
                stmt = null; // So the finally statement works if there is an exception
                stmt = connection.prepareStatement("...");
                ...fetch results...;
            } finally {
                if (stmt != null) ..close it...;
                if (connection != null) ..return it to pool...;
        }

  • How to run two versions of dreamweaver at the same time

    How to run two versions of any dreamweaver at the same time?
    There must be a way to do this.

    east99 wrote:
    > How to run two versions of any dreamweaver at the same
    time?
    > There must be a way to do this.
    Yes, there is: on two separate computers.
    You cannot run two versions of Dreamweaver simultaneously on
    the same
    computer. They can coexist side by side, but the operating
    system will
    not let you run them together.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Error -200429 DAQmx read (counter u32 1ch 1samp).vi -append- Edge count in for loop

    I am receiving error -200429 DAQmx read (counter u32 1ch 1 samp).vi <append>. This is occuring on the second loop of a for loop.
    I have a sequence inside the for loop that is using four DAQmx assistant vi's for edge count at various times in the sequence. All four of these count fine the first time through but at the beginning of the second loop the first edge count receives this error and does not count.
    Any ideas?

    The code you have supplied is similar to the converted subvi but this code will give an empty task error on the DAQmx Create Channel vi.
    Notice on the Daqmx create task vi that there is nothing wired to the "Task to copy" or the "Global virtual channels" connectors - I believe this is why the task is empty when sent to the Daqmx create channel vi.
    The code we are currently using is a modification of a previous code used before a recent upgrade. It may be better in your/NI eyes to re-write this into a State machine but time constraints and resources do not allow that at this time - All other parts of the current program work except for the counter on the second iteration. Would rather not reinvent the wheel at this point. 
    If the task is being cleared was the issue then the other three should also not execute. The issue appears to be the "First Call"
    I have attached a zip file of the complete program as it is now written to give you a better idea of the whole picture.
    Attachments:
    Test Machine current code.zip ‏657 KB

  • How to use two DAQmx assistant ?

         I am using 2 DAQmx assistant objectsfor acquiring 2 distinct different signal.when i run it, it is showing following error.
                          ERROR 50103 occured at DAQmx control task.vi:8
                          POSSIBLE REASON : The specified resource is reserved.The operation could not be completed as specified.
        Pls. tell me how can i clear it.
                                     THANK YOU !

    Any chance you could attach your LabVIEW code for us to see? It helps to visualise your issue.
    You may be running the two DAQmx assitants in parallel, and thus they will be trying to access the same resource simultaneously. They probably need to be ran sequentially. To ensure this, try wiring the error out of the first assistant into the error in of the second assistant.
    Thoric (CLA, CLED, CTD and LabVIEW Champion)

  • How to run two icalenders on the same computer?

    How can i run two separate icalenders on the same computer? I have my own icalender with work, home, etc, and it's totally full. I am now running an artists collective and will publish the collectives icalender on the web. I don't, however, want to mix what will be a pretty busy calender with my own already too full one. Is it possible to run two totally separate calenders on the same computer?
    macbook   Mac OS X (10.4.8)  

    trsv,
    Welcome to Apple Discussions.
    Create two Groups...
    Calendar 1:
    Work
    Home
    etc
    Calendar 2:
    Collective Calendar
    You can then switch which groups you wish to display by activating/deactivating the check mark in the Calendar source window.
    That will also allow you to selectively publish the Collective Calendar.
    ;~)

  • How to run two libraries? [11.0.0]

    Hey everyone. I've been using iTunes for a long time now, as it is a relatively good program for organizing my huge library> I don't use it to listen to music, but I often need to move files around and onto the appropriate devices for my family. Because of this, I got an external hard drive. From time to time, iTunes will forget that my library comes from my external. usually, this is after booting iTunes without having the external plugged in. This can be a nuisance, because iTunes then decides to fill up my laptop's free space with the large amounts of music I put on at once. It gets especially annoying when I need to consolidate files to ensure they are all on the hard drive because it will consolidate to the computer instead.
    My question is, how do I set iTunes up so it will always look for my hard drive and use that as the library first? Then, and only then, if it cannot find my hard drive, it will use my computer's storage. Most important to solving my problem is that during those times it uses my computer's storage, it should automatically use my hard drive if present upon restarting iTunes.
    I have figured out how to have two libraries, but I need to know how to put one on a higher priority and as a default that doesn't get changed.
    To recap, If I run iTunes without my external hard drive, it changes the library location to my computer and does not put the setting back to how it was.

    Aarowaim wrote:
    how do I set iTunes up so it will always look for my hard drive and use that as the library first?
    This is done by default, but it is up to the user to ensure the external or network drive is connected.
    Aarowaim wrote:
    Then, and only then, if it cannot find my hard drive, it will use my computer's storage.
    Again, this is done by default.
    If the user fails to connect the external drive before started iTunes the following steps should be taken.
    Close iTunes.
    Connect drive.
    While holding SHIFT, launch iTunes.
    When prompted to locate or create a new library, select locate and point iTunes to the external drive.
    Is the iTunesLibrary.itl file actually on the external drive or is it on the C drive of the computer?

  • How to run two instances of WoW on a Mac?

    So I am looking to run two windows/instances of WoW on my mac. Basically so I can use my mage on a seperate account to rush my lowbies through instances. It wont let me simply load the game twice like on a PC, does anyone have any ideas how I could do it?

    I've never played WOW so I do not know how the settings are setup on a Mac but one way that you might be able to do it is to create a second account and try running it in both accounts. Go to System Preferences/Accounts and click on the plus to create a new account. Next click on Login Options and put a check in the box that says Enable Fast User Switching. Then from your Finder in the top right hand corner you will be able to switch between your 2 accounts.

  • How to run two sub vi simultaneously??

    i need to run two sub vi simultaneously in one main vi, becasue it is a must the two sub vi run exactly at the same time, but now i find that if i put they in one diagram ,in fact they are not exactly run at the same time. if you see in high light mode Just like the attached simple example code.  any one can help me to handle this to run the two subvi exactly at  the same time ? how to do it ? thanks so much.
    Attachments:
    how to run subvi simultaneously.vi ‏11 KB

    You are correct, they will not run at exactly the same time.  What is it you are actually trying to do?  What platform are you developing on? What version of LabVIEW? What processor does your target system have? This information is vital in order for us to assist you.  In a nutshell, unless you are running a real-time OS, then the OS you are running is not deterministic.  When you say "at the same time", what are you actually referring to? As a note, when executing parrallel operations in LabVIEW, the execution order may or may not be the same with the highlight bubble on as it is when it is running without highlight execution.  It is highly unlikely that you will be able to just run two sub-vis at the exact same nS.  If you are using DAQ boards, you accomplish this through triggering.  Please give a detailed description of what you are doing, and what you see the road blocks being.
    Thanks
    Paul <--Always Learning!!!
    sense and simplicity.
    Browse my sample VIs?

  • How to run two Automator actions simultaneously?

    I want to perform two actions at once in an automator applcation, specifically Speak Text and Run AppleScript. I can only figure out how to run one after another. Is there a way to have text spoken as a script is run?

    This is what it looks like:

  • Does anybody know how to run two independent instances of Calendar simultaneously?

    I've enabled the Debug mode, and have 2 windows open at the same time but can't get them to operate independently. Anybody done this?
    The situation is that I work for a music school that uses iCal to keep track of music lessons for multiple tutors in real time, which sync to relevant tutor's iphones. We've just opened a second premises and would like to use the same system, but be able to monitor everything from either school.
    Debug mode will let me run two instances of Calendar simultaneously, but removing tutors' calendars from one of the Calendar windows removes them from the other.
    Basically I need one Calendar window open for each school, and for them to be independent from each other.
    Any takers?

    How about creating a new "Calendar" with in the same Calendar app?
    Calendar App---> File---> New Calendar
    Name each Calendar for each business location. Example if the original location is on Main St, name that Calendar Main St and the second on Broadway, name that calendar Broadway.
    The other solution could be the same as above, but File---> New Calendar subscription. But I have no idea how that works though.
    KOT

  • How to run two files with same url-  urgent

    hi,
    i created two servlet page and both are working very fine.but at same time i only able to run one file with same url. Is possible to run two or more file at same time with same url name..
    if you r not understanding what i want to ask then, i have two file names under helloWeb directory
    1) helloWorld.java(servletname s1, url /man)
    2) helloWeb.java (servletname s2,url /man)
    to run - http://localhost:7001/helloWeb/man - it runs very first file which is added to deployment module.
    so i want to know how i can run both file with same url, for this what i have to pass on my address bar.
    plz help me i m wating
    <b></b>

    Hi,
    We can give same url mapping to both Servlets but we can access the servlet which is entered first in web.xml because whenever we send a request to the webserver then webserver look at the elements in web.xml file one by one.
    When it finds the corresponding url mapping then immediately sends the response to the client.The same url mapping for the next element will be ignored.
    I think there is no possibility to access both servlets with same url.
    Regards
    Anilkumar kari

  • How to run two thread parallel y on two cores of dual-core ??

    I want to run two threads on two cores ???
    is there any package which support parallel computing??
    can we do this by using java.util.concurrency pakage??
    Thanks you
    please Reply.....

    vikram_p wrote:
    I want to run two threads on two cores ???ok
    Threads are automatically spread over the available cores, as the OS sees fit.
    is there any package which support parallel computing??Java does so without any external libraries.
    can we do this by using java.util.concurrency pakage??yes
    One question mark per question is plenty, thank you.

  • Compare two DAQmx Read modes

    For a continuous DAQmx acquisition, generally a start VI is put before a loop structure to request DAQ board to begin  continuously  reading data into buffer,  and  within loop  a DAQmx read VI is used to  continuously  retrieve data from buffer.
    My question is, for the DAQmx Read VI, is there any performance difference between  'Nchanel N Samples'  and 'NChannel  1 Sample'?  My understanding is, the former  read all data  available in  buffer,  so maybe we can use larger value for  waiting until ***ms function, and for the latter, since only one data is read in each loop, we need to use smaller waiting value, to catch up with the board acquisition speed, therefore meaning the loop structure need to be executed much faster.
    For my application, read only one data in each loop is easier for teatment, but I am concerning whether more frequent loop execution may cause decrease of performance. Any suggestion?
    Thanks.
    -Dejun

    I don't agree with you, Dennis, but maybe I am wrong
    Even though I use '1Sample' within a loop, there is still a hardware timing Vi before the loop, so the timestamp of each data point should still be determined from hardware timing, this is my understanding. The difference between '1Sample' and 'NSample' is just how many data are read from buffer in each loop execution. As to the timestamps of data in the buffer, they are already determined by the hardware timing, and therefore should be independent of how they are read in loop structure (1Sample or NSample).
    Message Edited by Dejun on 08-30-2007 05:16 PM

Maybe you are looking for

  • Email no longer automatically connects

    Probably when I upgraded to 3.0, my original iPhone (and my wife's) stopped automatically connecting to email, both POP and IMAP. I have to launch the email application on my phone before it will connect and show new messages in the queue. I'm assumi

  • Photoshop elements 11 is not launching or loading images (photo editor)

    Photoshop elements 11 is not launching or loading images (photo editor)

  • WLC 5508 Guest termination Tunnel

    Hi to all, I've a question regarding Guest Wireless Access: can the WLC5508 do Guest Termination Tunnel as they do the WLC440X??? I suppose yes...or better say I hope yes ;-) What about the AP support? Can I mix as is possible with the 440X where the

  • I'm trying to burn a playlist on my windows, how do I know that it is working?

    I'm trying to burn a cd and I've already made the playlist, clicked burn to disc, the window popped up with the burning options, I clicked burn, but how do I know that it is working? There isn't anything showing that it is burning the disc.

  • What is ORCL prefix for in ASM Disks?

    version: 11.2 / RHEL 5.8 Once the ASM Disk is created using oracleasm, you can add the ASM Disk to the disk group like SQL> alter diskgroup DATA1 add disk 'ORCL:DISK2'; Diskgroup altered.Is the prefix "ORCL:" mandatory ? What is it for, anyway ?