Vi for an optical cable encoder?

Hi im am fairly new to DAQ on labview and i have an optical encoder which pulses every 0.5 degree (so 720 pulses in one rev), it is attached to a scb68 connector block which is attached to a PCI 6111S card via a cable.
Is there a specfic example that i could look at to get the hang of things? i want the counter for the pusles to reset itself after every whole revolution. any suggesstions would be most grateful.
Thanks
Notay

The examples that ship with LV illustrate how to use the counters.
In terms of the reset, do you want to reset every 720 pulses, or once a rotation - the two are subtly different. You can take the count out from the counter and do a MOD 720 function and use the remainder output. This will give an output that restarts every 720 pulses. The one potential problem is that the reset point will not be in the same place relative to the shaft position from one run to the next - but this might not be an issue.
The other way to do the reset is to use an encoder that has two outputs, one (as in your case) every 1/2 degree of rotation; and one every 360 degrees of rotation. You can then use that once-per-revolution output to reset the counter in hardware. Plus, you can align that mark to some known position like TDC (top dead-center) so the counter output can tell you the shaft's absolute rotational position.
One thing to be on the look out for is that the counter inputs can be very particular about the input waveform. Make sure the signal at the computer is a nice, neat square wave. No undershoot, no overshoot, and no ringing.
Mike...
Message Edited by mikeporter on 07-24-2007 05:50 PM
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

Similar Messages

  • TOSlink optical cable for a Ma Pro? How does it work?

    Not sure if this is the place for this question or not, but I am trying to find out more information about the optical audio in/out section of the Mac Pro. On Apple's description page it claims that a regular TOSlink optical cable will work in those slots, but by looking at them, it doesn't seem like it would fit at all. Does a piece in the middle of the optical audio port go inwards? How would you ever be able to get a TOSlink cable to fit it? Anyone have any pictures of an optical cable inserted into a Mac Pro so I can see how it all works?
    I know this might seem like a rather absurd question, but I am trying to figure out if I can plug my old stereo surround sound amp into my Mac Pro to use it for audio. Thanks for the help!

    There are covers that will swing in out of the way as you press a connector against them. At least this is the case on my Mac Pro..

  • Correct optical cable for Apple TV  3rd gen

    I have now purchased two optical cables that were supposed to work with Apple TV. Neither had the correct end that would fit into the Apple TV. This shouldn't be that hard!! Can someone please point me to a link to the correct cable? Google searches bring up info about connecting, but do not say what cable to get.
    thanks!
    Joe

    Thank you for this. I even described and gave the details of the last cable I bought when I called apple a few moments ago, and he said it was the correct one, and it wasn't. I see on the link you provided that there is an adaptor. It looks like the one I have has one long end (no adaptor) and one small square end. My sound system needs the same square end as the Apple TV takes. So, I just ordered what I think is the correct one.
    thanks so much,
    Joe

  • My apple TV is connected to a DTV with an HDMI cable and to my Yamaha receiver via optic cable. We rented a movie on Apple TV and.found that the movie played, but we only got audio for music tracks. Voice tracks were silent using both TV and receiver.

    My apple TV is connected to a DTV with an HDMI cable and to my Yamaha receiver via optic cable. We rented a movie on Apple TV and.found that the movie played, but we only got audio for music tracks. Voice tracks were silent using both TV and receiver.  This only occurred on the rented video and on recorded shows on my cable DVR. previews and other content on Apple TV are fine. Any ideas??

    Previews and trailers do not contain 5.1 audio.
    If you have recently moved your setup, you may have inadvertently changed some of the settings on your receiver. It certainly sounds as though it is unable to play the 5.1 audio from the Apple TV.

  • Multi-wire optical cable for 150...200 meter connection

    Please suggest multi-wire cable to connect switches located ~150...200 meters away from each other.
    It is needed to have at least 8...10 wires inside such type of optical cable.

    Cisco doesn't sell optical cabling. Typically people have optical cable installed by a cabling vendor from rack to rack and terminated in patch panels.
    The recommended specification these days for most intra-building applications is OM 3 or ideally OM4 50 micron multimode cable. You tell the vendor how many pairs you require and they take care of it for you.
    You only then need to procure the 1-2m fiber optic jumpers between the patch panel and the SFPs in your equipment. Again these would be OM3 or 4 50 micron multimode and generally you need LC terminations on both ends. They are commodity items and available from any number of online retailers.

  • Optical Cable for iMac

    is it possible to connect an optical cable from my iMac 27 late 2012 model to a logitech soround sound??

    Thank you so much! I will try to remember that the next time I'm in town. My amplificator needs just such a cable.

  • Optical cable? For Sound Blaster Z

    Hi all, Do I need to use an Optical cable to recieve CMSS-3D or Dolby Digital Live Surround sound to my headset?
    Thanks.

    Anyone?

  • Using an optical cable causes Bose system to shut off

    When I use an optical cable to play ATV2 through my Bose surround sound system, it turns the Bose system off after a few seconds. The Bose system works fine with the other components.

    I just use mac the ripper with the following instructions
    http://www.ripdifferent.com/phpbb2/viewtopic.php?t=1249&sid=de5cc9506c05b6ba98d6 530884489333
    It gives you a few options for audio, I generally save as AAC though you can rip as AIFF and then encode into just about anything with quicktime.

  • How do I get good audio feed from DVD player to my MBP using an optic cable

    I have successfully recorded audio off of concert DVD's using Sound Studio 3 by connecting my DVD player to my MBP using left/right outputs to a 35mm input. I purchased an optical cable, connected it to my DVD player and used a 35mm adapter to connnect it to my MBP input. All I get is a weird popping interferance type sound instead of clear audio. Any tips on what is going on? I have correct settings in system preferences (recognizes an optical connection) but all I hear is noise?
    Thanks for any help!

    I just use mac the ripper with the following instructions
    http://www.ripdifferent.com/phpbb2/viewtopic.php?t=1249&sid=de5cc9506c05b6ba98d6 530884489333
    It gives you a few options for audio, I generally save as AAC though you can rip as AIFF and then encode into just about anything with quicktime.

  • Sound Blaster Z SPDIF and optical cable + DTS and DDL settings

    i bought a new z-906 to have as a speaker system for my computer. what i did was:
    bought sound blaster z and a optical cable. i installed the software for the sound blaster z and started configuring it.
    i plugged one end of the optical cable in the SBZ and the other end in the z-906. then i started configuring using windows sound panel and SBZ i first used the spdif-out on the panel but eventually that sounded a bit off to what 5.1 should sound.
    then after a good while trying to figure out why it gave me the message "usupported format" when i was trying to use DDL or DTS. i searched on google then i read something someone else couldnt figure out and used that.
    what i did to get DDL and DTS to work was: (might require a fresh install of SBZ and all services in msconfig to work)
    i opened windows sound panel, clicked on spdif-out and pressed properties. then i clicked on formats or supported formats tab and enabled everything with a checkbox. then clicked OK or Apply.
    back on the sound panel again. here you have 2 configs that comes with the sound blaster z. i clicked on speakers then on "use as standard. then on configure and selected 5.1 surround, and on the next, center, subwoofer and rear. and unless you got a 7.1 system (or you could configure this in SBZ panel) i dont think you would need left and right front and surround-speakers since its already enabled in the first window as enhancing then i rebooted and reinstalled the SBZ and made sure all the services in msconfig tab was set to start and run on boot. and voila i had sound. (just to clarify. i didnt have sound for awhile since the DDL and DTS settings made my speakers to snowy sound until i figured out why)

    one other thing you need to set in your creative control pannel speakers mode not headset mode.
    and also under the cinematic tab you have to enable : Encoder : dolby digital live 5.1
    then you will get sound.
    the issues will crop up though if you fix em let me know, if you want the issues to happen right away select DTS as encoder we/or i know this mode will not work with these headsets but thats the same issues that popup even under dolby digital live settings.

  • MBP with IPod HiFi and Optical Cable Problem??

    Hey guys, I just picked up a Hifi and was hoping to use it with my macbook pro. When I hook up a normal 3.5mm jack into the hifi's input it works, but when I use an optical cable it does not. Using the volume keys on my mbp bring up the normal Volume icon on-screen but there is a small circle with a line through it just below. Also, in the system preferences, under Sound and Output it says "The selected device has no output controls"
    Any ideas? Can it work with optical cables? I can always use a traditional 3.5mm jack but would prefer the optical
    Macbook Pro   Mac OS X (10.4.8)  

    It works in my case, I am now playing a song on my Itunes from my computer's optical out (G5 Tower) to iPod HiFi via a digital optical cable
    Connect external speakers, headphones, or optical digital audio equipment. The headphone / line output jack accommodates optical digital audio output, analog audio output with a 24-bit, 44.1-192 kHz D/A converter, digital audio output up to 24-bit stereo and 44.1-192 kHz sampling rate and supporting encoded digital audio output (AC3 and DTS). For analog headphone / line output a standard audio cable with 3.5mm metal plug should be used. For digital audio, a standard toslink cable with a toslink mini-plug adapter can be used.
    Open System Reference, sound, then output, in the box of choose a device for sound output , do you see the digital out, optical digital-out port?
    Make sure out the output volume, the mute box is unchecked.
    Regarding, the volume key on the computer is disable when your are using the optical output

  • Is there a way to have audio only come through the optic cable and video come only through HDMI on Apple TV 3rd Gen?

    I currently have a digital optic cable hook up from my Apple TV 3 to my receiver and a HDMI hook up from my Apple TV 3to my flat screen. The audio is coming out of my TV speakers and receiver at the same time. I was wonder if there was a way to switch the audio output from the Apple TV 3 to the digital optic cable and only have video come out of the HDMI? I really only plan on using my receiver for the audio for my Apple TV 3. I know that I can just mute the TV but I wanted to know if there was a way to switch the feed. Thanks

    There is an option on my TV but if I do that I lose all my audio on the TV. I have 3 HDMI ports on my Flat Screen. One is for my cable, one is for my PS3 (BTW the PS3 has an option to switch the audio feed so it will come out of the digital optic cable and leave video for the HDMI), and the last one is for my Apple TV 3. If I switch to external speakers I will lose my audio for the cable. I was hoping there was a way to switch the audio feed on the Apple TV 3.

  • Connecting apple tv to a receiver via optical cable

    I connected my apple TV via a digital optical cable to the yamaha receiver RX-V477,but I have not figure out how to hear the music that is coming from the apple tv. Can you help me with the set-up in the yamaha receiver. Thanks

    Hey mgrossi,
    The Apple TV's optical digital-audio port, also known as as TOSLINK, carries both audio and video signal when used with the proper cable. See this article for reference -
    Apple TV (2nd and 3rd generation): Guide to ports and connectors - Apple Support
    Thanks for using Apple Support Communities.
    Be well,
    Brett L 

  • Connecting Z-5500 to MacBook with Optical Cable?

    How's it going, first post here just need one question answered. I just got Logitech's Z-5500 for Christmas, and everything is set-up working great with just using the headphone jack. All speakers are working when in Stereo (x2) mode, but I would like to connect the system to my Macbook using the an optical cable since you get a cleaner, better quality of sound.
    I don't know anything about optical cables or how to connect it to my Macbook. I know the optical side of the cord goes in the back of the control panel for the Z-5500's but where does the other side go into the Macbook? Do I just need one cable? Any detailed help with links will help. Thanks a lot.

    Picked this up.
    http://www.monoprice.com/products/product.asp?cid=102&cp_id=10229&cs_id=1022902&pid=1556&seq=1&format=2

  • Received apple tv as gift, my tv/home theater situation has no HDMI input capabilities.  My only option is an optical connection, please give me some inexpensive optical cable suggestions???

    Received apple tv as gift, my tv/home theater situation has no HDMI input capabilities.  My only option is an optical connection, please give me some inexpensive optical cable suggestions???

    Welcome to the Apple Community.
    HDMI is required to connect the Apple TV to a TV or through a receiver. The optical connection is for audio only.

Maybe you are looking for

  • Problem with correlation on QA systems

    Hi all i need help!!! I have a problem with correlation on QA systems!!!! I have exported file (SCVW and CS) from DEV system and imported into QAL system! I ve changed the parameters of CCs!! But messages on sxi_moni doesn't meet correlation!!!! The

  • Can't get movie to stop on scenes

    Hello All; I would really appreciate anyones help. I have this movie that uses buttons to go from frame to frame. In order for it to be interactive I need it to stop. I use the stop(); function on the frame I want it to stop and wait for user input.

  • Not able to display the simple Node Text

    Hi All, I am creating a simple tree. Even though I pass the node-text  , I am not not to see the node-text in the screen. Nevertheless, when I try to debug and analyse, I am able to see the node-text in the node table that is formed. The simple error

  • Stop at end of each song

    Hi, I'm hoping someone here can tell me how I might be able to get iTunes and/or iPods to stop at the end of each "song" and wait for me to hit the play button (or space bar) to play the next song. Why you ask? Well minidisks (MDs) are used this way

  • ITunes 5.0.2 update?!!?!?

    I just got a message when I launched my copy of iTunes 5.0.1 saying that version 5.0.2 is available for download. But when I got to the iTunes download site, there's nothing there...well, nothing indicating that 5.0.2 is out. Did anybody else receive