Reading Angles From a Line Driver Quadrature Encoder

I currently have a Quadrature Encoder (Line Drive) and am trying to interface it with a PCI-6602 Counter/Timer Card. I have currently had no luck in correctly hooking it up and reading the angle. Past experience with Quadrature Encoder have all been open collector; I have been able to to successfully hook up an open collector encoder with the 6602.
Any help in hooking up the Line Driver encoder with the PCI6602 would be appreciated.
Thanks.

Justin,
Normally, the mfgr. would include a recommended "Line Receiver" interface circuit for the encoder. I've found that some line-driver encoders actually can be successfully connected directly to the 6602 for quick-and-dirty testing, though you wouldn't want to wire that up arbirtrarily or rely on it for the long term. In any event, it sounds like you'll need to add a line receiver interface.
-Kevin P.

Similar Messages

  • Reading files from a mapped drive

    Hello,
    I am trying to pull image files off of a network share in Oracle Forms.
    Everytime I do this, I get error FRM-47109 Cannot locate image file..... i
    have tried accessing this drive with 2 methods:
    1. Button trigger calls with READ_IMAGE_FILE(:datablock.imagelocation ||
    :datablock.filename || '.tif', 'ANY', BLOCK7.IMAGE_ITEM);
    2. Button trigger calls with READ_IMAGE_FILE('\\server\images\'
    ||:CRASH_IMAGES.folder || '\' || :crash_images.docno ||'.tif',
    'ANY', 'BLOCK7.IMAGE_ITEM');
    Both of these calls work on the development side where the T:\ drive is mapped.
    When the form is put on the production server with the same T:\ drive mapping,
    the image is unable to be located.
    I have also found Microsoft article Q122702, which explains how network shares
    are distributed to services. I have edited the registry key
    RestrictNullSessAccess to a value of 0, and remapped the drive using: NET USE
    T: \\server\images /user:Administrator password.
    None of this has worked for me so far, and I have been informed of possible
    issues with forms and mapped network drives. Has anyone seen this before or know of a fix?
    Thanks,
    Jordan

    I'm not too familiar with Windows user accounts.
    I'm having this problem of not being able to read files from a mapped drive.
    Using 10.1.2 Forms Service on a XP machine.
    How do i check to see which user is running the forms service and/or how do I change the settings a user has access to?
    Check in server-info and User/Group: #-1(1)/1, what the heck??
    Thanks.

  • Setting L7Pro to write/read audio from Ex Hard Drive

    Hey everyone - Purchased a LaCie 250gb drive 7200rpm with 8mb buffer! Firewire 400. I followed the instructions and got it formatted and all but I have a question. How do I tell Logic (or my Imac) to write audio straight to that drive when recording? I want to be able to have all my session audio files being written too and read from that LaCie drive. Any assistance is welcome...
    Thanks (I'm new to MAC if you have not noticed
    IMAC G5 1.8 80GB; Mac OS X (10.3.9); 1.25GB RAM, FirePod, Logic Pro 7, Lacie 250gb External

    Another thing you can do is create your project on your external drive. All your audio will go right into your project, keeping everything in one neat, little (well, maybe not little ) bundle.
    jord

  • Read Command from Command Line

    Hi.
    I am starting my application using the following command at the command line: "java -jar convert.jar config.txt". Is there any way for me to read the "convert.jar" portion of the command.
    I am building a server side application that needs to restarted periodically. I get the invocation directory using System.getProperty("user.dir"). I need to know the name of the command so that I can execute something line
    "java -jar" + strCommand + System.getProperty("user.dir"), where strCommand is the command "convert.jar" or "/path/to/convert.jar"
    Thanks,
    Siddharth.

    am building a server side application that needs to restarted periodically.The OS has certainly a utility to periodically schedule an application (cron, at, scheduled tasks...)

  • Reading files from external hard drive

    Hi, I have over 30,000 photos but there are all in my external hard drive. How can I see my photos in iPhoto without exporting them all. or to make iPhoto save the files on to my external hard dive.
    cheers,
    Jerry

    Jerry:
    You can have multiple libraries and have them located anywhere you'd like. For locating your library to another location, an external HD, see Moving iPhoto Library Folder to New Location. For iPhoto to see those that are currently on the external HD, you will have to import them into your current or new libraries.
    There are two applications, iPhoto Buddy and iPhoto Library Manager, that will facilitate you having and using multiple libraries. I currently manage 10 separate libraries and move between them very easily.
    Hope this has been of some help. Good luck.
    OT

  • Reading Data from SQL Server 2000 Linked Servers

    Hello,
    I have a colleague who wants to read data from a OO4O driver Linked Server my FRENCH_FRANCE.US7ASCII Oracle 8i database.
    He's got some troubles to read data with "é", "à", and so on. They always replaced by "?"
    Since I have ask him to use SQL Developer on his server to see if he has got configuration problems, his PL/SQL queries return "square figure" characters (not the usual "²") instead of "?".
    For info, I've said it to use CONVERT(column, 'FR8DEC', 'US7ASCII) but it doesn't work too (also try with 'UTF8' or 'WE8MSWIN1252')
    Is there a way with the SQL Server collation ???
    How can I solve his problem ???

    The select query returns the following infos :
    PARAMETER VALUE
    NLS_CHARACTERSET US7ASCII
    NLS_NCHAR_CHARACTERSET US7ASCII
    My colleague uses the 10.2.0.1.0 client with ODAC 10.2.0.2.20.
    His SQL Server linked server is 2000 with the SQL_Latin1_General_CP437_BIN (he tried the use of the distant NLS_LANG option and the no set the NLS_LANG too with no results).
    Thanks in advance,
    Yours,
    Mickaël

  • Add .ITL Library from Another Hard Drive

    I have two hard drives in my computer (PC running Windows XP Pro, but that shouldn't matter in this case, I don't think so at least). When I install iTunes, it places a folder in C:\Documents and Settings\[My User]\My Documents\My Music, which is called iTunes. Inside, it stores a file called iTuneslibrary.itl.
    However, in my computer there is also an F:\ drive, which is where I keep all of my media. Inside, there is a folder at F:\My Music, called iTunes, and inside THAT there is a file called iTuneslibrary.itl. I would like THAT to be where my iTunes library is stored.
    I have tried various options, like going into iTunes and changing the default location of my library, that didn't work. I have also tried overwriting the existing .itl with my own - this opens up every song in the library (and playlists), but since they're all on a different hard drive, they all have !'s on them and cannot be played. I can't go through and find every single one of them, there are thousands.
    My problem boils down to this - iTunes stores its library on the C:\ drive by default. I store mine on my F:\ drive. How do I make iTunes read ONLY from the F:\ drive's .itl without A. moving it to the C:\ drive or B. re-adding every single song?

    In iTunes 7.5 and later, you can choose which ITL to open. Then itunes will always go to that ITL file when opening, as long as the F: drive is accessible.
    If iTunes can't see the F: drive it will revert back to the default on C:
    Just press *and hold* the shift key while starting itunes and browse to the F: drive's ITL when prompted.
    http://docs.info.apple.com/article.html?path=iTunesWin/7.6/en/15502.html

  • Why can't I download pictures from a flash drive to my iPad?

    Why can't I download pictures from my flash drive to my iPad?

    The USB Camera connecto (30 pin or lightning)r can read pictures from certain flash drives and imp[ort them to the iPad.
    The pictures must be in a folder called DCIM and have a naming structure similar to what a camera would produce.  8 character names plus the 3 character extension.  ie. image001.jpg
    Aside from that, some USB flash drives may require too much power which would cause the iPad to issue a warning.
    How are you placing the images in the drive? 
    It the iPad issuing an error?
    What exactly are you doing?

  • Read RPM from Quadrature Encoder

    Hi Everyone,
    I wish to measure the RPM of a shaft using a quadrature encoder and a PCI-6259 card. I've seen a few examples on reading position, which i have managed to get working, but Im not sure on how to get RPM. Any tips or code examples would be greatly appreciated.
    Thanks,
    David

    Hi All-
    Thanks for the suggestion DJ, but your VI will not work as it is written using the Traditional (Legacy) NI-DAQ driver and David's M Series card is only compatible with the NI-DAQmx driver.
    To answer David's question, it is not possible to directly measure position and count edges at the same time.  What you can do is count edges with external Up/Down control (basically the same as a X1 encoder) and then use the edge counting to calculate both frequency and displacement in ticks/degrees/RPM/etc.  I have attached an example I did recently that shows how to use an edge count with external Up/Down control (i.e. PFI10 or PFI11 for M Series ctr0 or ctr1, respectively) provided by the 'B' phase signal and the 'A' phase provided to the counter source.
    Hopefully this helps-
    Tom W
    National Instruments
    Attachments:
    32bit_Cnt_Edges_to_Quad.vi ‏73 KB

  • Generate a pulse train using a count from a quadrature encoder as the clock

    I am trying to generate a pulse train with the same frequency as my quadrature encoder.  Every time the encoder counts, I want the pulse to go high until the next count and then go low and so on.  I am using a 6602 PCI card and a BNC 2121 accessory.

    Maybe I'm not understanding your app, but I *think* you and I are approaching it from two very different directions.
    As I understand it, you'd like to emit a pulse with each quad state change.  Then that pulse would act as a counter Source signal.  The counter will then increment on each pulse, to keep track of accumulated position.  Further, you'd use your device-under-test (DUT) as a counter Gate signal, which would buffer the position count each time there's a rising edge on your DUT.  The end result is a buffer of position values, captured at each rising edge of your DUT.
    I'm talking about a different approach to produce the same data.  You'd use 2 tasks on a M-series board.  One of them is a hardware-timed digital input task based on "change detection."  Each time one of the specified bits has a transition, your whole set of digital input bits can be captured and an internal "change detect pulse" is generated on the board.  This task should be sensitive to the DUT edges.
    The other task would be a buffered position measurement.  It would receive the reference encoder inputs and internally do quad decode and keep a running count.  The sampling clock for this task would be specified as the other task's "change detect pulse."
    Net result: on each specified edge of your DUT, you'll buffer a reference encoder position value and a digital state of your DUT.  You can choose to be sensitive to rising edges, falling edges, or (!!!!) both at once. You can also choose to be sensitive to many bits simultaneously.  These are better capabilities than you get with the 6602 alone.
    I *think* the 6220 should be ok, based on a quick overview of specs.  I assume your 3.6 MHz is the rate of ref encoder quad state changes, right?  In the approach I'm suggesting, you only need concern yourself with the rate of DUT edges which appear to be in the 10's of kHz or less.
    Gotta go for now.  Post back if any further questions.
    -Kevin P.

  • Xmlparser.parse fails with ORA-20100 when reading from mapped network drive

    Hi
    I have a problem with the xmlparser when parsing an xml document from a mapped network drive. If I read the xml document from a local drive, then there is no problem.
    I haven't been able to find any documentation specifying this. Is there any way to parse a file from a mapped network drive???
    To clarify, I have created an example procedure, that parses an XML doc from disc, notice that the G: drive is a mapped drive:
    CREATE OR REPLACE procedure test_xmlparser is
    p xmlparser.Parser;
    dir varchar2(100) := 'G:\Vejdirektoratet\root\xsl';
    errfile VARCHAR2(32) := 'error.log';
    begin
    p := xmlparser.newParser;
    -- set parser properties
    xmlparser.setValidationMode(p, FALSE);
    xmlparser.setErrorLog(p, dir || '\' || errfile);
    xmlparser.setPreserveWhiteSpace(p, FALSE);
    -- parse xml file
    xmlparser.parse(p, dir || '\' || 'HelloWorld.xml');
    xmlparser.FREEPARSER(p);
    end;
    The file HelloWorld.xml contains the following:
    <?xml version = '1.0'?>
    <message>
    <text>Hello World</text>
    </message>
    When running this in SQL*Plus I get the following error:
    ORA-20100: Error occurred while parsing: Invalid argument
    ORA-06512: at "SYS.XMLPARSER", line 22
    ORA-06512: at "SYS.XMLPARSER", line 69
    ORA-06512: at "VD.TEST_XMLPARSER", line 14
    ORA-06512: at line 1
    Changing the value of the variable dir to 'C:\' makes it all work.

    Hi again
    I need to ask a last, hopefully ;-), question on upgrading the JDK to 1.3.1:
    As far as I understand, this is how I do it:
    1) Install JDK 1.3.1 on DB server
    2) tell Oracle DB, to use that JDK.
    Is this the correct way? And how is step 2 done?
    Looked on metalink, google etc., but could only find this for 9iAS (not the DB) and Oracle Applications 11i.
    thanks, Sxren

  • Quadrature encoder with PCI-6259 DAQ board (driver for QNX)

    where can I find any example for connecting Quadrature Encoders with M Series DAQ Boards ?
    The only more or less suitable example I found in nimseries DDK, is
    "Count pulses from an external source using an external signal to control
    the count direction" (nimseries\Examples\gpctex2.cpp).
    But this example is not working correctly with Quadrature Encoders
    (encoders with  two shifted on 90 degrees phases A&B).
    i.e. in case of using this example code I get some extra count while encoder is on vibrant motor
    what means enums
    typedef enum {
           kG0_Up_DownHardware          = 2,
           kG0_Up_DownHardware_Gate     = 3,
    } tG0_Up_Down;
    and
    typedef enum {
           kG0_Encoder_Counting_ModeId          = 1,
    } tId;
    in (nimseries\ChipObjects\tTIO.h) ?
    What initalization procedure I need to work with Quadrature Encoders?
    I have PCI-6259 DAQ device
    and I'm writing programm under QNX6 operating system

    Hello alexey_3269,
    If you want to read a quadrature encoder start with gpctex1.cpp and follow the thread.
    I give you my code:
    BEGIN CODE
    ==========
    boardGpct->G0_Mode.writeG0_Load_Source_Select(tTIO​::tG0_Mode::kG0_Load_Source_SelectLoad_A);
    boardGpct->G0_Load_A.writeRegister(InitialCount);
    boardGpct->G0_Command.writeG0_Load(1);
    boardGpct->G0_Load_B.writeRegister(0);
    boardGpct->G0_Load_A.writeRegister(0);
    boardGpct->G0_Input_Select.setG0_Source_Select(9); //see above for choices, PFI8=9, 100 kHZ=18
    boardGpct->G0_Input_Select.setG0_Source_Polarity(1​); //0=CCW, 1=CW
    //If using 80 MHz timebase
    boardGpct->G0_MSeries_Counting_Mode.writeG0_MSerie​s_Alternate_Synchronization(1);
    boardGpct->G0_MSeries_Counting_Mode.setG0_MSeries_​Encoder_Counting_Mode(3);  //3 for X4 encoder counting
    boardGpct->G0_MSeries_Counting_Mode.flush();
    //Enable Input Pins
    boardGpct->G0_MSeries_ABZ.setG0_A_Select(9);  //PFI8=9,
    boardGpct->G0_MSeries_ABZ.setG0_B_Select(21); //PFI10=21
    boardGpct->G0_MSeries_ABZ.setG0_Z_Select(10); //PFI9=10 
    boardGpct->G0_MSeries_ABZ.flush();
    boardGpct->G0_Mode.setG0_Gate_Polarity(1); //invert=1
    boardGpct->G0_Mode.setG0_Output_Mode(tTIO::tG0_Mod​e::kG0_Output_ModePulse);
    boardGpct->G0_Mode.setG0_Loading_On_Gate(tTIO::tG0​_Mode::kG0_Loading_On_GateNo_Reload);
    boardGpct->G0_Mode.setG0_Loading_On_TC(tTIO::tG0_M​ode::kG0_Loading_On_TCRollover_On_TC);
    boardGpct->G0_Mode.setG0_Gating_Mode(tTIO::tG0_Mod​e::kG0_Gating_ModeLevel_Gating); //kG0_Gating_ModeGating_Disabled
    boardGpct->G0_Mode.setG0_Gate_On_Both_Edges(tTIO::​tG0_Mode::kG0_Gate_On_Both_EdgesBoth_Edges_Disable​d);
    boardGpct->G0_Mode.setG0_Trigger_Mode_For_Edge_Gat​e(tTIO::tG0_Mode::kG0_Trigger_Mode_For_Edge_GateGa​te_Starts_TC_Stops);
    boardGpct->G0_Mode.setG0_Stop_Mode(tTIO::tG0_Mode:​:kG0_Stop_ModeStop_On_Gate);
    boardGpct->G0_Mode.setG0_Counting_Once(tTIO::tG0_M​ode::kG0_Counting_OnceNo_HW_Disarm);
    boardGpct->G0_Mode.setG0_Reload_Source_Switching(t​TIO::tG0_Mode::kG0_Reload_Source_SwitchingAlternat​e);
    boardGpct->G0_Mode.flush();
    boardGpct->G0_Command.setG0_Up_Down(tTIO::tG0_Comm​and::kG0_Up_DownHardware); //kG0_Up_DownSoftware_Down
    boardGpct->G0_Command.setG0_Bank_Switch_Enable(tTI​O::tG0_Command::kG0_Bank_Switch_EnableBank_X);
    boardGpct->G0_Command.setG0_Bank_Switch_Mode(tTIO:​:tG0_Command::kG0_Bank_Switch_ModeGate);
    boardGpct->G0_Command.flush();
    boardGpct->Interrupt_G0_Enable.setG0_TC_Interrupt_​Enable(0);
    boardGpct->Interrupt_G0_Enable.setG0_Gate_Interrup​t_Enable(0);
    boardGpct->Interrupt_G0_Enable.flush();
    END CODE
    ========
    I hope this code is appropriate to you.
    FV1234

  • Does Final Cut Express 4 Read Clips From an External NAS Drive?

    After upgrading from iMovie 08 to 09 I have found out through these pages that iMovie no longer supports reading clips from and writing them to my external wireless drive (via the Events library). The question for this forum - does Final Cut Express 4 have the same issue?
    Just to anticipate a couple of points - I do not intend to use my external hard drive for 'in line' editing, it is merely a repository for excess clips that my hard drive cannot accommodate. I understand this kind of arrangement is slower than Firewire 800 but it is what I have and I want it to work.
    Message was edited by: Plutonian

    FCE has nothing to do with how you archive your media as long as it's not used for playback within the application. The only issue might be how the drive is formatted. For large media files it really needs to be formatted in Mac OS Extended.

  • How can analog signals are measured every several counters from Quadrature Encoder using USB-6221

    how can I sample analog signals every counters from quadrature encoder using usb-6621?

    There is a well documented example of what you are trying to do at :
    http://zone.ni.com/devzone/explprog.nsf/webmain/DD85F07A7CA99F8F862568690062DE54?opendocument
    Don't be afraid because of the BNC-2120. It is just used in this example to simulate the pulses from a device. So it is not needed in your case. Obviously, you will need to change the number of increments/rev according to your encoder to get correct RPM values.

  • I had backed up my I-tunes files to an external hard drive but after my computer crashed when I try to reload from the hard drive the message comes up saying I-tunes library cannot be read because it was created by a newer version. Help please!

    I had backed up my I-tunes files to an external hard drive but after my computer crashed and I restored it when I try to reload from the hard drive the message comes up ""I-tunes files cannot be read because it was created by a newer version of I-tunes". Help Please

    Upgrade the version of itunes on the new computer
    Itunes.com for free download.
    Peace

Maybe you are looking for

  • How do I download iLife on my MacBook Pro (for free) after purchasing a new iOS device

    Hello, I watched the most recent keynote address just like everybody else and was very happy to hear that Apple was going to provide the new iLife and iWork software for free with the purchase of a new Mac device or iOS device. So, I went and purchas

  • Link to a chapter of another pdf document

    In brief: I want to insert links from a pdf document to a section or chapter of a different pdf document. ¿How can I do this? (The documents are done with Word and then passed to pdf) In detail: The documents are originally done with word and then pa

  • Aperture 3.1.3 Very slow importing raw files

    Aperture 3.1.3 Very slow importing raw files please help Pro Photographer. I have a Mac Pro Quad core 1 yr old with 12GB Ram. I import via 2 Firewire 800 card readers - A Lexar & a UDMR Reader.Only using them singly. System has 4 1TB hard drives 1. A

  • Hz_cust_account_site_v2pub.create_cust_acct_site return error

    hi, it returns "Unable to process your transaction. The operating unit is either invalid or it cannot be derived. Please verify your Multi-Org profile options." i check the forum and the solution is to mo_global.set_policy_context('S',122); but after

  • Syndicating Attributes in a flat file

    Hello, I have a challenge. I am want to syndicate a material classification (taxonomy table) and related attributes to a flat file. I want the result to look like this: C 613316   VALVE_MANUAL_                  D 613316   PRESSURE_RATING_CLASS_INLET_