Convert Analog 14V signal to a boolean

Hi all, 
I'm trying to use a proximity sensor (Panasonic GX-F/H) which switches between 0 and 14V to stop a linear motor. What is the proper way to convert the analog input singal from the sensor into a boolean? 
My attempt was to connect the sensor to the analog input of my DAQ 6008 and use a comparator (signal < 10V) --> see attachement. This actually worked but it sometimes had a delay of more than 1s, what makes it impossible to position the motor accurately. Any ideas to solve this problem? Thanks in advance!!
Regards
JW
Attachments:
Picutre.jpg ‏77 KB

Hi Bigles,
you don't have an "analog signal" - you have a DDT wire…
Either convert the DDT signal to a DBL wire (ExpressVI functions palette: "FromDDT"…) to compare the DBL with your limit OR convert the result of the comparison from DDT to boolean value (ExpressVI function palette: "FromDDT")…
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome

Similar Messages

  • Convert a rpm waveform to digital/analog tach signal. Sound & Vibration

    Hello,
    my question is: How to convert  a rpm waveform to
    digital/analog tach signal for use with SV application?
    Or is it possible to modify the SV - VIs for the use of
    a rpm waveform or a speed signal?
    Thanks a lot for coming answers.
    Thomas Nuding

    Typically an RPM waveform is the analog view of a tachometer, such as a proximity probe over a key or keyway, or an index pulse from an electric motor.  In most rotor dynamics applications, the phase of the tachometer waveform is compared to the phase of other waveforms, such as vibration, to determine the angular position of the shaft when the other waveform occurs. 
    The sound and vibration tools have a function for calculating RPM from an analog tachometer waveform.  The order analysis toolset go further to add a counter as an tachometer input.  The OAT tools also allow for selection of rising edge or falling edge and voltage level for the "trigger".  A time instance is recorded when the edge occurs.  This time instance is used for phase measurements and for resampling the other waveforms into the angular domain, ie. 360 measurements per revolution. 
    Preston Johnson
    Principal Sales Engineer
    Condition Monitoring Systems
    Vibration Analyst III - www.vibinst.org, www.mobiusinstitute.com
    National Instruments
    [email protected]
    www.ni.com/mcm
    www.ni.com/soundandvibration
    www.ni.com/biganalogdata
    512-683-5444

  • Counting number of 1's present in digital waveform obtained by converting the pulse signals.

    Hello,
    I am using Analogtodigital.Vi for converting the pulse sequences into digital.signals.I am able to get the digital waveform representaion of the pulses.
    But how to count the number of 1's present in the converted digital waveform.I want to count the number of 1's present in the converted digital waveform.
    Thanks in Advance.
    Solved!
    Go to Solution.

    Did you try opening the block diagram of Analog to Digital.vi? 
    It creates an uncompressed 2D array of 1s and 0s which represents the 16-bit binary A/D conversion of each element in the Y array of the input waveform. You can use the DWDT Digital to Boolean Array.vi to convert to a 2D array of booleans. Then convert the booleans to 1,0 and sum the array of integers. The sum should be the count of 1s in the digital waveform.
    Lynn
    Note: The attached VI is saved back to version 8.6. When I saved it for Previous Version a warning was generated about possible differences in versions. Let me know if it does not work, and what version of LV you are using.
    Attachments:
    Count bits.vi ‏25 KB

  • How to convert analog scalar into digital value

    I have the DAQ connected to a system that sends a digital 0 or 1 through the analog BNC connector. If I use DAQ Express VI, I can convert the dynamic data type into a boolean (rather than scalar) array so it's easy to check if the value is 0 or 1. Because I'm running the VI in real-time, I can't use dynamic-to-boolean array conversion. The output I get is a 1-D waveform array which will give me scalar values. The task has a voltage range of -10 to 10 mV. How can I convert that into a 0 or a 1? Should I set the voltage range to 0-5V and simply have an if statement that checks if the value is, let's say, greater than 2.2V (which will mean it's a binary 1)? Is there a better method?
    Thanks. 

    Hi abdel2,
    It sounds like you are trying to measure digital data from your system. If that is the case, you should be able to connect to a digital input line if your DAQ card had them. Then you can set up a digital acquisition in LabVIEW that will interpret the signal as a boolean input.
    If you are not able to do this, you can approximate the digital behavior by reading analog data, and pragmatically determining a threshold (for example 2.2V), though this is a less efficient way to do it.
    Regards,
    Stephen S.
    National Instruments
    Applications Engineering

  • Does Mini Displayport to DVI adapter support analog VGA signal?

    I'm just about to buy a macbook pro. Since the MDP (mini displayport) to DVI and MDP to VGA adapters are £20 a pop, I can only afford to get one. Obviously DVI is better in general, but VGA supports more older hardware, CRTs, and the spare VGA input on one of my displays (where the desktop uses the DVI).
    What I'd like to know is does the MDP to DVI adapter also support the analog VGA signal on certain pins (like most physical desktop DVI ports do)? If it does, since I have about 3 or 4 DVI to VGA adapters lying around, I can get the MDP to DVI adapter and use the DVI to VGA adapters with it if necessary, but if it doesn't I might be better off getting the MDP to VGA...

    No. Unlike DVI, which in the DVI-I configuration has both digital and analog pinouts, DisplayPort (and mini-DisplayPort) are purely digital. Mini-DP to DVI then DVI to VGA will not work. If you look carefully at the Apple Mini-DisplayPort to DVI adapter, you'll notice it's a DVI-D connector - digital pins only.
    The Apple mini-DisplayPort to VGA adapter contains a digital-to-analog converter.
    So, you'll have to choose. If you want VGA, get Apple's mini-DisplayPort to VGA adapter.

  • What is better when converting analog video for FCE, Canopus100/110/300/or5

    All,
    What is better when converting analog video for FCE, Canopus100/110/300/or500? I have a new MACPRO with FCE HD and I wanted to convert some of my older video that was recorded on a HI8 Camcorder... Thanks.

    I have the ADVC-100 (older model) and ADVC-110. They are identical except that the ADVC-110 does not come with an AC power adapter. Currently sells for about $220USD. If all you need to do is convert from HI8 tapes, the ADVC100/110 will do the job quite nicely.
    The ADVC300 adds some enhancements for video signal cleanup, but at a higher price. Currently sells for about $450USD. The ADVC500 is overkill for home use.

  • Converting analog to digital video

    Does anybody know a cheap way to convert analog video (from a VHS) to digital video that can be burned on a DVD? A converter box is probably my best option as I have no digital camcorder, but I was looking for one under $150. So far the only ones I can find send the analog signal to the computer, where it is converted to digital by software. This would be fine, but the software is Windows only. I either need a converter box that converts the signal within the box and sends a digital signal to the computer, or one that comes with converting software for Mac. Preferably composite video (yellow, red, white), and preferably something that uses firewire, although if I have to I can use USB
    Thanks,
    Tom
    iMac G4 15-inch 800 Mhz   Mac OS X (10.3.9)   iMovie 3.0.3, Toast 7 Titanium, no iDVD

    Not sure what you mean by "breaks up in places".
    In iMovie4, the maximum clip size is 2 gigabytes. When importing from a camera or converter, iMove will just start a new clip ever 9 1/2 minutes (2 gb), but you don't lose a single frame.
    If you're getting irregular breaks, including the loss of video (may be hard to tell, if it's only a frame or two), you either have a cable problem (maybe just not plugged-in securely) or a VHS tape that is a bit out of synch. For that, you might need Time Base Correction, where the hardware will basically ignore the synch data on the tape and replace it with it's own. There are VCRs and video converters that have TBC built-in, but they're more expensive. There are also separate pieces of gear that do only that. I dunno whether digital cameras are available that do this.
    First, I'd see if it happens with other tapes, then try another VCR, before spending megabucks on more gear.

  • How to convert analog SD video from VCR tapes to DVD

    What is the simplest way to convert analog SD video signals from VCR tapes for input to a mac intel mini so that I can create DVDs? Any help would be appreciated.
    Owen

    not sure about doing it on a mac mini, but based on the costs of the equipment needed to do it and the time, your best bet is to take your vcr tapes to costco and let them transfer them to DVD...
    then editing pieces of the dvd's to make a compilation would be fairly easy using any number of software tools for the mac.

  • How to convert an anlog signal having frequency range 40MHZ~800MHZ, to digital

    I have an analog signal with frequency range 40MHZ~800MHZ. This is to be converted to Digital Signal and will be given to LPT port of the computer. From there this will be captured and compared with a pre-stored data. Please guide me to do this.

    Hello;
    To digitize an analog signal and have a good and accurate representation of the signal, the sampling frequency must be at least 8 times the highest frequency of the analog signal.That means, that you would need to digitize at 5 GHz frequency.
    NI doesn't have a product that allows that high speed.
    Regards
    Filipe A.
    Applications Engineer
    National Instruments

  • I need to import a live analog RCA signal into a Macbook Air 13" model A1466 to record on Final Cut. Is this possible? If so, how?

    I need to import a live analog RCA signal into a Macbook Air 13" model A1466 to record on Final Cut. Is this possible? If so, what equipment/cables do you recommend pruchasing?

    If you want audio and video from your RCA cable source, you would need a converter device. One that I have used is the EyeTV Hybrid from ElGato. You attach to the Mac via USB, and can attach to RCA composite, Coax, or S-Video. You would record into the EyeTV software and later export to Final Cut for editing. This would not go live into Final Cut Pro.

  • Small thin line at the bottom when converting analog to digital

    I encounter a small line at the bottom of my videos (this is also on the DVD that I burn) when I try to convert my Sony Hi8 to Digital while using iMovie HD6. When I try this at home on my Sony Viao PC with the built in Giga Pocket Converter there is no line. I thought that it might be my DV converter a datvideo DAC-200 so I got a PyroA/V Link converter and the result was the same. When I use my Sony DV Camcorder every thing is great. I talked to apple support and they said that it was probably the tape. I told them that I had tried several HI8 tapes and the result was the same. (they were no help) Does anyone have these issues BB
    MacBook Pro2,2   Mac OS X (10.4.8)   Intel Croe 2 Duo 2.33 GHZ

    See also:
    http://lipas.uwasa.fi/~f76998/video/conversion/#faq
    4. Frequently Argued Questions
    4.1 Isn't 720 the real width of a 4:3 image? If not, then why are 720 pixels sampled instead of 711 or 702 (or whatever)?
    720 pixels are sampled to allow for little deviation from the ideal timing values for blanking and active line lenght in analog signal. In practice, analog video signal - especially if coming from a wobbly home video tape recorder - can never be that precise in timing. It is useful to have a little headroom for digitizing all of the signal even if it is of a bit shoddy quality or otherwise non-standard.
    720 pixels are also sampled to make it sure that the signal-to-be-digitized has had the time to slope back to blanking level at the both ends. (This is to avoid nasty overshooting or ringing effects, comparable to the clicks and pops you can hear at the start and end of an audio sample.)
    Last but not least, 720 pixels are sampled because a common sampling rate (13.5 MHz) and amount of samples per line (720) makes it easier for the hardware manufactures to design multi-standard digital video equipment.

  • Converting analog home movies to Digital

    Hopeing to find someone else who has already solved this problem...After slacking off for twenty years or so, I'm, finally converting my ancient, stone-tablet home movies to DVD. I have a Sony DCR-TRV460 Camcorder doing the heavy lifting. It's supposed to convert Analog tapes to digital signals on the fly. I have a stack of old 8 mm tapes, that a Sony DCR TRV130 recorded for me from even older VCR video tapes. Unfortunately, the TRV130 is frozen and inoperative, maybe I'll have to have it repaired....All the tapes play fine on the TRV460's screen, but Imovie only recognizes the newest ones, actually recorded on the 460, the ones "converted" from the 130 just show a blue screen, probably some analog-to-digiital error. I'm useing a Firewire cable, the usb cable apparently isnt fully supported. I remember reading long ago that the 460 doesent fully support on-the-fly conversion. anyone been able to make this work? do I need a differernt camcorder? Maybe I just have the av-DVsettings wrong? Any clues fom by Buddies out in the Ether will be appreciated! Useing a "Early 2008" Mac Pro Tower.
    Jim

    I did this a few years ago with a Sony TRV-230.
    It was very fussy. Sometimes it would drop out and give me the blue screen and I would have to try several times before I got it all. It helps to fully fast forward and rewind the 8mm tapes so if they are sagging to one side of the cassette, they are back to the center so they don't drag on the sides of the cassette enclosure. I generally had to use the manual mode and watch it all the time.

  • Converting analog footage to digital help please!

    I have a Canon GL1 and I tried running the VHS deck to the RCA cables to the GL1 then through to the Computer via Firewire but it doesn't work. Whenever I plug the firewire in the signal from the RCA is instantly gone. I heard you could use Sony cameras to convert Analog to Digital but it doesn't work with my GL1 also (I know you are supposed to use the "none controllable device" capture setting in FCP).
    What I want is to go direct capture from my VHS deck to my camera to my computer without recording to minidv first.
    Any help with this would be great!

    hi focused!
    As an avid Canon user myself, I'm sorry to say that the GL1 does not support "digital pass through"--what you're trying to achieve by using the camera as an on-the-fly analog to digital converter. The newer GL2 (among other newer models) does.
    However, you can record your VHS signal onto a miniDV tape then via firewire get it onto your Mac. A longer process, but do-able. That said, if you have a little money to spend there are some inexpensive analog-digital converters available.
    Hope that helps and nice to talk to another islander
    Cheers (and aloha).

  • When converting analog video to digital to my macbook the audio desyncs halfway through. Any ideas?

    I am trying to convert Analog video to digital to my Macbook for work, and every time I run it through my converter the audio De-syncs about halfway into the video. Does anyone know how to go about fixing this issue or have had similar issues to this? I have no issues when converting to my PC, but only my Mac. Thanks!

    Hi Rick,
    I am extracting the material from the dvd directly using handbrake. The file that handbrake creates lands on the desktop. I then ammend the end of the filename from mp4 to m4v. Following this I click and drag the file onto the itunes icon in the dock. I can then download it to the ipod no problem. The dropouts occur no matter where I play the file. In other words, on the desktop (with QT), in the itunes library and on the pod.
    I went back and looked at all the dvd's that are giving me this trouble. The culprit seems to be that the audio signal is in LPCM (linear pulse code modulation). Just for the **** of it, I tried to rip one track using handbrake changing the sampling rate of the audio to 48,000 Hz which I believe is what LPCM uses (previously I had set it at 41,000 Hz in handbrake). But no go, still has dropouts. One of these problem dvd's has a second audio option in AC3 (2ch). As a test, I ripped one song using that. Dropouts are gone. However, the audio is a director's commentary (on the music video he shot) with the music in the background, so it's not what I want.
    Is there any way to convert LPCM to AC3? Or any other way to fix this dropout problem.
    Thanks,
    Pete

  • Converting analog cassette tapes to CDs

    Hi everyone!
    How do I convert analog cassette tapes to CDs? I don't have any fancy equipment or anything. Just a nice tape player.
    Thank you!
    PowerBook G4 17   Mac OS X (10.4.3)  

    Hi, zoopop - This subject was discussed recently, and several options for achieving your aim are described in this topic:
    http://discussions.apple.com/thread.jspa?threadID=250698&tstart=0
    Good luck!
    Tuttle
    1432/8140

Maybe you are looking for

  • Cant access iTunes Store, Secure link to iTunes store failed

    Hi Im hoping someone out there can help me as ive been struggling with this for 3 solid days now and spent an hour on the phone to Apple support, cost me £16.00!! I have Windows 7 64bit operating system have done a fresh install, uninstalled all viru

  • IVolume: will it boost -- not just normalize -- music tracks

    I'm looking for an app to boost the volume of some of the songs in my iTunes library.  Some are just too quiet, mostly when played on my car stereo from my iPod. I've read about iVolume, and understand it'll normalize or equalize the volume of the so

  • Can I Consolidate A Compilation?

    It's probably too late to do this, but it can't hurt to ask... I recently purchased book offer that included 40 "bonus" tracks (one of those "but wait.. you also get! things...) all by different artists. The deliverable was pretty awful to begin with

  • Scale batch of images - can I do it ?

    Hello gentlemen, I have about 40 images that I've imported into the timeline in PP. Is there a way to scale all the images down at one time ? I'd like to scale all of them down about 60% or so. Thanks for a any info, and your time, Dave.

  • Small library management software

    Howdy, archers! I've been looking for a library management software, because there is a small collection of English and German books, video tapes and whatnot here in my university, and people want to replace the Access database someone made long ago