Help about analog trig and external clock scan

Hi, there. I want to measure the engine cylinder pressure with an PXI6070-E card and BEI encoder. I have tried using Cont Acq&Graph ExtScanClk D-Trig.vi and Cont Acq&Graph ExtScanClk Soft A-Trig.vi , but they don't work. What I did was to connect a 50HZ pulse to PFI0 (analog triggering, I changed the code from digital triggering to analog triggering), and a 100K pulse to PFI7 (startscan), and an 50 HZ analog signal to ACH0. But the code always says: timeout. If I use internal clock, it works fine. Could you please give me some help? THANKS A LOT!

What I did was to connect a 50HZ pulse to PFI0 (analog triggering, I changed the code from digital triggering to analog triggering),
For encoder-based (synchronous) measurements, you want to connect the once-per-rev signal (encoder index) to the EXT TRIG input (I forget the PFI numbers), and the N-per-rev signal to the EXT. CLOCK input. Use the EXTERNAL DIGITAL + triggering option, and the EXTERNAL SCAN CLOCK option. Set the NUMBER OF SAMPLES TO ACQUIRE to match your encoder resolution and off you go.
The ANALOG trigger option scans the first ANALOG channel you specify, looking for a transition across the threshold you specify. It does NOT look at the DIGITAL signal in an analog way.
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com
Blog for (mostly LabVIEW) programmers: Tips And Tricks

Similar Messages

  • How to use analog Triggering and External clock scan

    Hi, there. I want to measure the engine cylinder pressure with an PXI6070-E card and BEI encoder. I have tried using Cont Acq&Graph ExtScanClk D-Trig.vi and Cont Acq&Graph ExtScanClk Soft A-Trig.vi , but they don't work. What I did was to connect a 50HZ pulse to PFI0 (analog triggering, I changed the code from digital triggering to analog triggering), and a 100K pulse to PFI7 (startscan), and an 50 HZ analog signal to ACH0. But the code always says: timeout. If I use internal clock, it works fine. Could you please give me some help? THANKS A LOT!

    Hey Wyuan,
    I tested the Cont Acq&Graph ExtScanClk Soft A-Trig.vi and it worked fine. However, the Cont Acq&Graph ExtScanClk D-Trig.vi has a small error in its logic that will prevent the data from ever being displayed to the graph. In order to run the examples you need to connect a trigger to pin 11 and a scan clock to pin 38. A 10kHz square wave would be fine for the clock signal and just a single pulse would work for the digital trigger.
    One additional think to keep in mind is the grounding. You might need to connect you ground from your signals to a DGND pin. I am including the two programs that I used for the test.
    I hope this helps,
    Joshua
    Attachments:
    Cont_Acq&Graph_ExtScanClk_D-Trig.vi ‏121 KB
    Cont_Acq&Graph_ExtScanClk_Soft_A-Trig.vi ‏153 KB

  • HELP about analog output video

    Hello, I´m need help about analog output video in Premiere CS5 using Matrox RTX2. I need to crop a video with resolution in 1440x1080 to 4:3 in output analog. But what happens is wrong (I think). My video is in format anamorphic and the other option is 16:9 letterbox. Is there any way to crop the video without using effects. Thanks a Lot and sorry my bad english (my native language is Portuguese).

    There are no 4:3 HD specifications.  You'll have to put the video into a normal SD sequence, and scale it down till the top and bottom of the video meet the frame.  That way the sides will be cut off.

  • Is the PXIe-PCIe8361 adequate for this system? And external clock questions...

    Hi all,
    I have spent some time piecing together a system and I'd like a sanity check before pulling the trigger on this purchase.  The system will contain the following hardware:
    1. Chassis: PXIe-1078
    2. Controller: PXIe-PCIe8361
    3. 3 x PXIe-6363 (16 analog inputs each card, 32 digital inputs each card, all internally clocked @ 10kHz)
    4. 2 x PXI-6224 (32 digital inputs on one, 8 digital inputs on the other, externally clocked in "bursts" of 62.5khz)
    5. Labview software
    The three PXI-6363 cards will be responsible for  a mix of analog and digital measurements made @ 10 kHz, timed continuously by the onboard clock.
    One PXI-6224 will be clocked externally @ 62.5 kHz and will be used to collect digital data on a 32-bit port.  These clock pulses will not be continuous, but will occur in bursts lasting for 2ms every 20ms.
    The other PXI-6224 will be clocked externally @ 62.5kHz as well and will be used to collect digital data on an 8-bit port. These clock pulses will not be continuous, but will occur in bursts lasting for 2 ms at random intervals.
    My questions are:
    1. Am I planning anything that looks unreasonable for this hardware?
    2.  Should I expect issues with data transfer rates with the PXIe-PCIe8361?  I will be operating well within the advertised 110MB/s throughput of the device.  I plan to stream this method... NI Fast TDMS data streaming
    3.  I have only ever used NI cards for continuous measurements made by an onboard clock.  When I set up a task to collect data that is externally-timed, will the DAQ be expecting a "continuous" clock pulse, or will the system wait patiently for clock pulses to arrive at any rate (any rate within the spec of the card, of course)?
    Thanks, any input is appreciated.

    Hello LucasH0011
    1-As long as you put the PXI-6224  and the PXIe-6363 cards in the corresponding slots, meaning the express(PXIe-6363) in the express and the hybrid(PXI-6224) in the hybrid.
    2-I think you would  not have issues with the transfer rate.
    3-Your timing specifications sound reasonable to me, I think you will be fine. 
    Here is a document that has useful concepts for the use of cards:
    http://www.ni.com/white-paper/3615/en/
    It is for the M-Series, but the concepts apply to the X-Series as well. 
    Regards 
    Ernesto

  • Please help about Report Printer and PS tables-objects . ..

    Hi everybody
    I'm in trouble. I have a requirement in PS módule related with reports created by the Report Printer tool. I don't have any idea about these topics.
    My requirement is to create a report (not with Report Printer) with the structure for projects, with all the structure Project-WBS-Network-Activity and with some values like Budget, Commit, Actual,  Paid, etc.
    The functional consultant only tells me about some reports created with Report Printer wich have the columns required, some report has the Budget, other one has the Commit, etc. For example, one report is the tcode S_ALR_87013532; i don't know if this transaction exists in all the SAP implementations or if it was created only for my company.
    These reports only show two levels (Project-Network) so i i have to investigate:
    1. How to get all the structure levels (project-WBS-network-activity)
    2. How to 'translate' in code some value showed in a report created with Report Printer, i guess these values are created with formules and objects.
    3. How to get the same values showed in these reports, but for the Networks and Activities.
    I do not know anything about PS module and Report Printer and i really don't have any idea about how to make my development.
    4. I think the functional consultant could be able to create the report himself with the Report Printer, but he tells me he does not manage this tool so good and he wants to send SAP mails with the reports, and he say the reports created with Report Printer can not send mails. Is this true ?  and then, would be easier for me to learn Report Printer and create the report myself instead to develop it ?
    Does somebody can help me ?     Any idea ?
    Please help !!     I don't know even how to start with this.
    Thanks in advance ..
    Frank

    Hi Frank,
    here're some links:
    -http://help.sap.com/saphelp_47x200/helpdata/en/ca/01993862b47c67e10000009b38f8cf/frameset.htm
    -http://www.sapgenie.com/abap/tables_ps.htm
    -Re: Project System Costs: budget/actual/commt/rem.plan/assd
    Andreas

  • About time capsule and external hard disk

    I have got rMBP.  I also have got time capsule.  External WD hard disk is connected to time capsule.
    I have got 3 users in my rMBP:
    (1) Admin : Administrator
    (2) User A : I normally do all my work from this user.
    (3) User B: I recently added this new user.
    Here, using Finder tabs, User A can see time capsule and External WD hard disk.  But, Admin and User B cannot. I also want User B to have the ability to see WD hard disk (and time capsule).  For User B and Admin, time capsule does show up, but it shows as not connected.  How can I provide User B the ability to see External WD hard disk (since User B needs to store large different files there)?  Any permission issue on hard disk?
    (Amazingly backup does take place automatically even if I am connected as User B or Admin).
    I will appreciate your feedback.  Thanks.

    Emma1609 wrote:
    Hi,
    hi emma, and welcome to discussions
    Once the external HD is turned on my Time Capsule is not longer recognized. I can't connect to Time Capsule and make any backups. It is also no longer appearing in the Airport settings.
    you could try a power cycle on your devices. turn off modem, TC, and HD for, say, 10 minutes. turn the modem back on for 2 minutes, followed by the HD, followed by the TC.
    then go airport utility > manual setup > disks. see if your HD is showing beneath the TC

  • NEED HELP about file handling and searching

    Hi guys !!!!!!!!!!!!!!
    A) I need a help from u i wrote this programme to read from the file and assign the lines for the string array.
    import java.io.*;
    public class ReadFile{
    public static void main(String[] args){
    int i;
    BufferedReader file;
    String line() = null;
    String fileName = "xx.txt";
              try {
                   file = new BufferedReader(new FileReader(fileName));
    for(i=1;i<=10;i++){
    line(i)= file.readLine();
    System.out.println(line(i));
    file.close();
              } catch (FileNotFoundException e) {
                   System.out.println("File: " + fileName + " not found.");
              } catch(IOException e) {
                   System.out.println("Error reading data from file: " + fileName);
    the thing is it is compiling but when interpritting it gives the error
    Exception in thread "main" java.lang.NullPointerException in line(i)= file.readLine();
    plese help me on this and
    B) i want to know how to search the string array to find 4 letter words.
    i'm taking the each element which is line(i) one at a time and search it.
    Plese help me on these issues !!!!!!!!!!!!!!!!!!!!!

    You try to create an array with line(i) (as far as i see) but you dont need to keep each line in memory. As far as i understand you just need to process lines sequentially.. (Null pointer exception is thrown because you did not create your array properly!)
    Look at this code:
    http://www.java-tips.org/java-se-tips/java.io/reading-text-from-a-file.html
    You just need to define process method in that code. (and of course try to understand). So as far as i see, you will check for 4-letter words inside process method!
    For detecting 4-character word, you need to extract the words in the line using StringTokenizer:
    http://www.java-tips.org/java-se-tips/java.util/how-to-use-stringtokenizer.html
    Then you can just just use length() method of String class:
    http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html
    And if you need more advanced logic for processing the lines(currently seems to be the length of strings), you may try regular expressions:
    http://java.sun.com/docs/books/tutorial/essential/regex/index.html
    http://www.java-tips.org/java-se-tips/java.util.regex/

  • Help with iTunes Library and External Music Management

    Okay, this nightmare has been getting worse and worse over the past few weeks so let's break it down so people can understand what I'm trying to do.
    1) I have music on both my internal laptop drive and external drives.
    2) I want to have two libraries, one for the internal drive featuring all the music on my internal drive (and possibly some stuff on the external since that's how it currently is), and the other which is ALL my music from all my drives.
    3) I want all new podcasts/itunes store content to save to my external drive.
    4) I want the iTunes music folder to reflect which library I'm running (that is to say, if I am in my internal library, the iTunes music folder would be on the internal drive so if anything is copied to "itunes music library" it would copy to my internal, if on the external drive the itunes folder would be on the external drive and anything copied would end up there)
    5) I want iTunes to keep each library organized.
    6) for my External library I would LOVE to keep all my playlists, and iTunes store purchases in the library (something that didn't happen when I created a new library)
    IS THIS POSSIBLE!?!
    Basically here's what i did in the past. created a new library on the external and added all my music on the external to it. this caused it to organize everything fairly nicely. I then copied imported the XML data from my old internal library so I would get my playlists and iTunes store stuff to show up, along with anything on the internal drive. this cause MAJOR duplication issues (i have 3 copies of songs now in my external drive which Im going to have to sort through). I tried multiple libraries but everytime I switch back and forth my iTunes music folder keeps changing. (ie. the folder location will carry over to any library - not stick to just the one) This is a HUGE pain in the ###.
    Basically, if I'm on the road I want to be able to open iTunes, it automatically launch my internal library which has everything in my internal drive, know that the music folder is "my username/music", and then when I come back home and able to plug into my external drive be able to launch that external library and it know that my music folder should now be "externaldrive/music".
    i cannot seem to get iTunes to save this folder preference PER library. is this even possible!?! I just want this stupid thing to work!
    Message was edited by: ehmjay

    As long as you don't have an existing library that is synced with a device or holds oodles of carefully crafted playlists, ratings etc. then...
    Hold down shift as you start iTunes. You should get an option to choose or create a library. Click create, browse to root of the external drive and click save so that your library is say X:\iTunes where X: is the letter of your external drive. All new content downloaded to the library will stay on the external drive.
    See this user tip for a backup strategy.
    tt2

  • Help!  Album artwork and external hard drive

    Hello! I have a slight problem. I just moved my husband's iTunes and music to an external hard drive and all of the music showed up no problem. The problem is the artwork that he spent about 25 hours putting on iTunes. They disappeared!! I don't know where they went, where to look or anything! Help! He has over 11,000 songs and I don't want to have him start from scratch with the album covers. Any ideas of where they could be or how to hook them back up with iTunes? Any ideas would help!! Hopefully I can find this thread again...I've never used this message board before. Thank you!
    Sandy
      Windows XP  

    (5) On August 2, 2014, I switched from Comcast to AT&T and had the AT&T turn off the router function. (I have been using the router from my apple time capsule)
    (6) Under Network I switched to bridge mode.
    (7) And since August 2, 2014 my time capsule has not been backup.
    If you got ATT to turn off router function in their modem..
    Then 6. is wrong.. You cannot have the Network switched to bridge mode..
    You must have it set to dhcp and nat.
    That is also why you cannot backup.. the TC is off the network.
    Please change back to router mode in the TC.
    Ensure the internet tab shows dhcp and you create a wireless network.
    Then power down the TC... power down the ATT modem.. wait about 20min (you can try 5min.. but it might not be long enough).
    Power up the ATT modem.. wait 2min for things to flash lights in de right blinkin order.. then start the TC.
    Open the airport utility and make sure your TC captured the public IP and is now working as the router.
    That should fix that end of it.. the hotspot end??
    Tell us what happens.

  • Help With Airport Extreme and External Hard Drive

    I just purchased the Airport Extreme and I couldn't have been happier. I have attached my western digital external hard drive, but I have run into a slight problem/dilemma which I'm hoping someone who is apple savvy can help me out.
    I live in a house with a couple of other guys and so I put all of my movies and media onto the hard drive so we can stream it throughout the house, but how do I make sure that someone won't accidently delete the files (The copies on the hard drive are the only ones I have)? I have tried to right click "get info" and change the sharing & permissions properties on the folders that I don't want deleted, but it doesn't save the changes or even allow me to select another option other than Read & Write. I formated the hard drive with the disk utility before I connected it to the AirPort so I know that it has nothing to do with the format of the drive. I also tried to create different user accounts for each roomate so that they could view the files (Read Only) but I get an error message explaining that if I continue, the contents of the hard drive will not be accessible. I'm sure its something simple but I'm obviously missing it.
    Thanks!

    Airport Utility under Disks/File Sharing has guest access rights.

  • Question about composite index and index skip scan

    Hi,
    I have a confusion.
    I have read Burleson's post on composite index column ordering (http://www.dba-oracle.com/t_composite_index_multi_column_ordering.htm) where he writes that
    "......for composite indexes the most restrictive column value(the column with the highest unique values) should be put first to trim down the result set..."
    But 10g performance tuning book tells this about INDEX SKIP SCAN ::
    "... Index Skip scanning lets a composite index be split logically into smaller subindexes. In skip
    scanning, the initial column of the composite index is not specified in the query. In other words, it is skipped.
    The number of logical subindexes is determined by the number of distinct values in the initial column.
    Skip scanning is advantageous if there are few distinct values in the leading column of the composite index and many distinct values in the non-leading key of the index......."
    So if we design Composite indexes acc. to what Burleson said then how can we take advantage of index skip scanning. These two staements oppose each other,don't they ?
    Can anybody explain this ?

    Dear,
    For the moment forget the distinct values and the compressibility. I've tried to reproduce your case here below (using jonathan lewis table script)
    create table t1
    as
    with generator as (
        select    --+ materialize
            rownum id
        from dual
        connect by
            rownum <= 10000
    select
        rownum              c1,
        mod(rownum,1000)    c2,
        mod(rownum,5000)    c3,
        mod(rownum,10000)   c4,
        lpad(rownum,10,'0') c5,
        rpad('x',5)         c6
    from
        generator    v1,
        generator    v2
    where
        rownum <= 1000
    alter table t1 add constraint t1_pk primary key (c3,c4,c5,C6);
    create index idx_1 on t1 (c1,c2);
    begin
         dbms_stats.gather_table_stats(
              ownname           => user,
              tabname           =>'T1',
              estimate_percent => 100,
              method_opt       => 'for all columns size 1'
    end;
    /and here are what I got with your two selects
    mho.sql>> SELECT c1,c2
      2  FROM t1
      3  WHERE c2 = 3;
            C1         C2
             3          3
    Elapsed: 00:00:00.00
    mho.sql>> start dispcursor
    PLAN_TABLE_OUTPUT
    SQL_ID  4dbgq3m2utd9f, child number 0
    SELECT c1,c2 FROM t1 WHERE c2 = 3
    Plan hash value: 3723378319
    | Id  | Operation            | Name  | Starts | E-Rows | A-Rows |   A-Time   | Buffers |
    |*  1 |  INDEX FAST FULL SCAN| IDX_1 |      1 |      1 |      1 |00:00:00.01 |       7 |
    Predicate Information (identified by operation id):
       1 - filter("C2"=3)
    17 rows selected.
    Elapsed: 00:00:00.34
    mho.sql>> SELECT c3,c4,c5,c6
      2  FROM t1
      3  WHERE c4 = 3
      4  AND c5 = '0000000003'
      5  AND c6 = 'x    ';
            C3         C4 C5         C6
             3          3 0000000003 x
    Elapsed: 00:00:00.00
    mho.sql>> @dispcursor
    PLAN_TABLE_OUTPUT
    SQL_ID  fv62c9uqtktw9, child number 0
    SELECT c3,c4,c5,c6 FROM t1 WHERE c4 = 3 AND c5 = '0000000003' AND c6 = 'x    '
    Plan hash value: 2969533764
    | Id  | Operation            | Name  | Starts | E-Rows | A-Rows |   A-Time   | Buffers |
    |*  1 |  INDEX FAST FULL SCAN| T1_PK |      1 |      1 |      1 |00:00:00.01 |       9 |
    Predicate Information (identified by operation id):
       1 - filter(("C4"=3 AND "C5"='0000000003' AND "C6"='x    '))
    17 rows selected.I didn't succeed to reproduce your index skip scan situation.
    Best Regards
    Mohamed Houri

  • Help about importing files and fullscreen mode

    Hi,
    sorry but i'm kinda new about this. I'm creating a kiosk for my company which uses a touchscreen PC like what you see in the malls right now i.e directory. Im using flash cs5 and AS3. My problem is when I imported video / swf file in my stage (which is in full screen when loaded in projector), the video / swf file automatically change to full screen also. What I like to do is even if my window is in full screen mode, the video will still be the same what I set it to be. For you to imagine what im doing is in my homepage, my buttons would be video/swf files placed side by side. Once I click on one video it will go to another scene just like a website. I tried to google about this but no luck, all i find is how to import. These are the codes i used to load my project in fullscreen mode automatically.
    var main:Stage = this.stage;
    main.scaleMode = StageScaleMode.NO_SCALE;
    main.scaleMode = StageScaleMode.EXACT_FIT;
    main.align = StageAlign.TOP;
    main.displayState = StageDisplayState.FULL_SCREEN;
    Hope you can help me on this. Thanks in advance for those who will help.
    Thank you
    -Arjae

    thanks andrei. but it still doesn't solve my problem.
    var main:Stage = this.stage;
    main.scaleMode = StageScaleMode.NO_SCALE;
    //main.scaleMode = StageScaleMode.EXACT_FIT;
    main.align = StageAlign.TOP;
    main.displayState = StageDisplayState.FULL_SCREEN;
    as u have said, i remove scale_fit line but still in full screen. when I run s swf file the video automatically converted to full screen. what i only want to make full screen is the stage where the video is located. is there some command i need to do on this? I tried to use this using AS2 and its ok, the video didn't go full screen even the stage itself is in fullscreen. but i really want to use AS3 because of some features. If you can help, it will be great. Thanks lot!

  • Need help about Invoke-Webrequest and Invoke-RestMethod commandlets

    Invoke-webrequest content returning only 2000 records though it has around 4000 records in web api.
    If I give the same uri in excel oData Data feed I am getting all the records.
    Invoke-Restmethod also returning partial data from web api.
    Regards,
    Purna.

    Hi Purna,
    If you want to get the complete webpage content with powershell, please post the detailed information, like the queried url and the missing part of the webpage content you want to get.
    This example can get the detailed information of the webpage:
    Invoke-WebRequest http://mitpress.mit.edu/sites/default/files/titles/content/sicm/book-Z-H-51.html |
    select -expand images |
    select -expand src |
    foreach { start-bitstransfer $("http://mitpress.mit.edu/sites/default/files/titles/content/sicm/{0}" -f $_) C:\Users\Public\Downloads}
    Reference from:
    invoke-webrequest to get complete web page with images
    I hope this helps.

  • Help::about sapXI ID AND IR

    thanks somebody's  method  .BUT the question about us sap xi id and ir has yet to be resolved.
    Now ,the xi id and ir still very slow to start.
    I am using a minicomputer server to start the sap xi id and ir,so about memery and cpu  that somebody suggestive is not problem.
    i think the problem may be in the network or network segment but  I'm not sure.
    I want to know how I should inspect  the question?
    which t-code i can use to check the question..
    Thank you for your first!!!
    Edited by: tianyu liutianyu on Jul 22, 2009 10:38 AM

    Please check this thread :
    XI is very slow.
    Regards,
    Manjusha.

  • Help with itunes librairy and external hard drive

    My question is that , when I buy an external hard drive to save my movies, music, shows, etc off of itunes store, then how do I save them to the external drive automatically? When I download the itunes store, or librairy, on my computer should it be downloaded to my computer, or the external hard drive? I'm confused.

    This article should help...
    iTunes: Moving your iTunes Music folder
    http://docs.info.apple.com/article.html?artnum=301748
    Patrick

Maybe you are looking for