How to convert digital signal to analog

Hi..
I am using NI 9375 (DIO module) to read the output from flow sensor.
The output of the flow sensor is in the digital signal.(Boolean=True/False).
How can I convert the digital signal to the analog to get the reading of the flow sensor?
I had tried before to convert the digital signal to the frequency so that I can make the conversion from frequency to the flowsensor reading,
but it doesn't work.( I am referring to http://www.ni.com/white-paper/14549/en/ ).

nhan91213 wrote:
Hi..
I am using NI 9375 (DIO module) to read the output from flow sensor.
The output of the flow sensor is in the digital signal.(Boolean=True/False).
How can I convert the digital signal to the analog to get the reading of the flow sensor?
I had tried before to convert the digital signal to the frequency so that I can make the conversion from frequency to the flowsensor reading,
but it doesn't work.( I am referring to http://www.ni.com/white-paper/14549/en/ ).
FYI - If your flowmeter pulsing frequency is higher than 500Hz then you won't get reliable reading using your algorithm, and it will be very unreliable above 1kHz because fastest that loop runs is 1mS (1kHz).  In that case you could tie the timed loop  to a higher rate (hardware) clock source to go faster than 1mSec loop time.  If no hardware then I think you can use high resolution timer (in LV2014, not sure if it was also available in previous version) and a regular while loop with algorithm modification for a faster timing.
New Controls & Indicators made using vector graphics & animations? Click below for Pebbles UI

Similar Messages

  • How to convert digital signal to hexadecima​l string?

    Hi!
    My problem seemed to be very easy but I cannot find a simple solution. Namely, I have to make a simple project that acquires bits from a single digital line (not that it is important but I use one channel of a PXI 6552) and stores a certain number of bits (let’s say 1000 bits) from the channel in a txt file in hexadecimal format. I can convert it to a binary array of unsigned integers and make a loop that reads every 4 bits and calculate hexadecimal value but is it possible that there is no simpler way?!
    Thank you!
    Solved!
    Go to Solution.

    Thank you for your prompt reply! I understand that hexadecimal is just a format of presenting data but I have a problem to write digital data in that format to a txt file.  
    To make it easier for understanding and for testing purposes as well, I have made a test program that reads hexadecimal values from a txt file (the structure of this file is the structure I need to get at the end), transforms it in a digital stream as I get from the pxi 6552 (I had to change a bit the VI DTbl Binary U8 to Digital Stream.vi), and write it back to a txt file. This test program still needs some fixing to make input and output file exactly the same, but for the start output file is a txt file with hexadecimal values of my digital stream. I was wondering if there is a simpler solution for the while loop in this example.
    I hope this example made it clearer a bit.
    Attachments:
    WriteToFileHex.vi ‏21 KB
    DTbl Binary U8 to Digital StreamIva.vi ‏19 KB
    barker_tab.txt ‏1 KB

  • How to convert digital array data into analog signal

    i want help to convert digital data array into analog signal

    shubham62 wrote:
    We are implimenting real time audio trans-receiver. We have converted input audio data(analog form) into digital data. At the receiver side we received digital data which is in the form of digital data array.But we are unable to recover back our original input data. So please help us to sort out the problem.
    Still no useful information.  How was the data converted to digital in the first place?  What conversion parameters did you use?  As was said, you just need to do the math backwards to get it back into the analog.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to use digital trigger with analog I/O

    How do I program analog input and/or analog output to start on a digital trigger (PFI pin) on PCI-4451/4551.
    I have tried out various configuration and succeeded in starting analog input, simultanuous input and output triggered by the the anlaog input signal. I have also succeded i triggering 4551 from the dedicated EXTTRIG pin.
    The problem is to trigger on a selectable PFI pin. I find the help for "AI Trigger Config" and "AO Trigger and Gat Config" misleading - some unsupported features seem to work while selecting PFI pin as source make the PC restart immediately.
    I have not been able to find any LabVIEW example that shows how to use PFI pin as trigger input.
    Using LabVIEW 7.1, NI-DAQ 7.3 on Windows 2000.
    Kind regards / Med venlig hilsen
    Torben

    Hello
    The PCI-4451 does not have any PFI lines. If you look at the user manual in the link beneath you will be able to confirm this by looking at the connector signal discriptions. The same is valid for the PCI-4451
    http://digital.ni.com/manuals.nsf/websearch/6A32358C53BB15F086256660007392DC?OpenDocument&node=132090_US
    The two ways of triggering that you have succeded are the analog triggering and digital triggering that you can peform with the PCI-4451.
    Regards
    Mohadjer

  • How to convert ethernet signal into wifi?

    I am staying in an apartment this month that only has internet via direct-line ethernet. I need to get a signal to my ipad and iphone. Is there a way to use my macbook to create a signal that my iOS devices can detect?

    yes
    http://osxdaily.com/2012/01/05/enable-internet-sharing-mac-os-x/

  • Does a MacBook pro 13 have the ability to convert digital audio to analog audio ?

    I don't like clutter and would like my computer to do the job of a good DAC. What should I be considering to accomplish this?

    Doing so requires software (and maybe hardware) that would not be included with a new Mac, but surely such software exists that would work on the Mac. Check MacUpdate or CNET Downloads.

  • Way to "downgrade" from digital signal on graphics cards?

    Hello all,
    I recently purchased an 8-core mac pro with the intention of using it for a lot of video installations for theatrical productions. I bought it with 4 of the Nvidia graphics cards, which are dvi and mini-displayport. These are both sending a digital signal, and it doesn't make it possible for me to use my DVI-composite adapter so I can plug into older TVs. I also have TONS of BNC cable that I can use to run cable paths, and this BNC has to have composite. This severely limits me, since my work involves grabbing whatever output monitor I can find. I've seen some posts on altering the signal with a EZ pc-tv converter box, but this is one more adapter/converter/whatever that can break during a performance. I'd like to just send it out from the source.
    So my question is, is it possible to find a graphics card that still sends this analog signal, thereby allowing me to use my composite adapter? I just purchased the Mac Pro about a month ago, (just before they updated) and I wasn't sure if I could find anything like this. I've used the ez pc-tv box, but these don't appear to be too reliable, so if there isn't a way to install a graphics card, then is it possible to find a beefier conversion from the digital signal to analog so I can run long lengths of BNC cable?

    The standard DVI connector also produces the five signals required for VGA signal on the same connector.
    The DVI connector should have a solid bar toward one end of the connector. This is the ground for the four VGA pins (Red, Green, Blue, Horizontal Sync) that surround it. The fifth signal, Vertical Sync, is shared with the digital signal. A simple VGA-extractor has been available through the Apple store and other outlets.
    A DVI to composite Video and S-Video adapter, which may have a few active components inside, has also been available. The one on the Apple Store lists only the X1900 for the Mac Pro, but it is not clear to me whether they have simply been lazy about updating the description.
    The mini Display port adapters they list are
    1) DVI-Digital-only (you can tell because the bar at the end lacks the four pins surrounding it) OR
    2) VGA adapter (which you could convert to Composite with a component available in Europe they call a SKART chip).
    Conversion of the digital signal is out of the question. You would need a screen buffer and as much logic as is already on the display card. Adapting the VGA signals is the way to go.

  • How to convert a analog signal to digital signal

    Hello,
    How to convert an analog signal into digital signal such that every sample of analog signal corresponding to 1.2V will be represented as '1' in digital signal and other samples of analog signal(that are not 1.2v) will be represented(converted) as '0' in digital signal.
    And how to display both wavefroms or signals in graph indicators.
    Thanks.
    Solved!
    Go to Solution.

    If you have 1000 samples, and you want to convert to digital, you are going to get 1000 digital values.  Attached is what I mean.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.
    Attachments:
    Analog_to_Digital Hooovahh Edit.vi ‏52 KB

  • How to input/output a digital signal and acquire an analog signal at the same time?

    Dasylab, version: 8.0.04
    Acquirement Card: PCI1002L
    When I use DasyLab to acquire the analog signals is no problem without digital inputs and outputs,
    and when I use DasyLab to input or output a digital signal is no problem also, but when I do that at the
     same time, DasyLab tell me the rate is too high and stop.
    so, I searched the manual book1 (user guide) for that, it showed me :
    To internally equalize measurement time and system time in the analog input, digital input and counter
    hardware modules, use the following settings:
       Synchronization: PC Clock
       Sampling rate: <= 5Hz
       Block size: =1
    the problem is, if I set the Sampling rate to 5Hz, the speed of the acquirement datas is not enough for my
    application.
    so, how to improve it? who can give me a example programm for me. thanks!
    by the way, I come from China, my English isn't good, I'm sorry.
    Allen, China.

    Hi,
    Have things changed over the years?
    I need to syncronise a digital output (Modul NI9474) and an analoge input (AI-Modul NI9203) module. I need to measure time intervals from a flank in signal A to a flank in signal B. I would like accuracies of the order of 1 ms. Currently, the signals are not synchronised, with errors of the order of 2 times the block length (block size x sample rate), sometimes much higher. The best I got so far was a block size of around 20 with a sample rate of 1 kHz.
    If I use the master and slave settings on the RTSL settings, my program doesn't run properly.
    If I use digital signals for input and output, I can syncronise them with RTSL settings and everything is good, but I can't always do that.
    Also, if I do anything in the GUI (such as scrollowing something or going to another window), my output gets screwed up properly.
    1. What can be done to synchronise AI with DO?
    2. Is there something that can be done to avoid messing up the output when something happens in the user interface? (I know that I am messing up the outputs as they make some valves switch and that is loud).
    Thanks in advance!

  • How do I convert analogue 5.1 surround sound into a digital signal? (Pioneer SE-DIR800C headphon

    I understand that my SB Audigy 2 card will only output 5. sound from games through its 3 analogue connectors. How do I convert this analogue signal into a digital one? What hardware do I need to purchase?
    I have read the thread on "Digital Connections, SPDIF and Dolby Digital Info", and also I've thoroughly read the "Creative Speaker Connectivity Guide".
    The reason I ask is that I have just bought a pair of Pioneer SE-DIR800C Surround Sound headphones. This are supposedly fantastic for recreating surround sound on headphones because there is a clever little decoder box. They accept a DTS / Dolby Digital signal via the digital co-axial and optical inputs, and there is a single analogue input which only accepts stereo sound.
    My XBox and PS2 will output true digital 5. sound via an optical cable and I am confident this will work perfectly with these headphones. I'm really looking forward to playing Halo in surround sound! But for gaming on my PC, I'll be limited to just an analogue stereo signal. Well, unless I can find some device that will convert my SoundBlaster's analogue 5. outputs into a digital signal, which I can then plug into the little decoder box for these headphones.
    So, back to my question:
    What hardware do I need to buy to convert an analogue 5. signal (via 6 x RCA or 3 x 3.5mm stereo ) into a true digital signal (via optical or co-axial SP/DIF)? Is it some type of headphone amplifier I need? If possible, please recommend makes & models of equipment.

    Thanks stefan
    OK, basically I have found 3 options for getting digital 5. out of a PC:
    a) Creative DTS-60 (approx $90). This converts the SB's analogue into digital, but it's not available in the UK and it also introduces a noticeable 50ms sound delay. Also, who wants an extra box hanging out of their PC?
    b) Buy a new sound card which has Dolby Digital Li've output. For example, ) BlueGears HDA X Mystique 7., or 2) Turtle Beach Montego DDL, or 3) Terratec Aureon 7. PCI (NOT the Space, FireWire or Uni'verse cards). I couldn't find the first two available in the UK so I have just ordered the Terratec card from Komplett.
    c) Buy a new motherboard that has built-in Dolby Digital Li've output, for example the ABIT Fatalty AA8XE. Unfortunately my PC is only just over year old and I'm not quite ready to replace it.
    I hope this info is useful for people. Maybe Creative will start making a card with DDL output too.Message Edited by NinjaHeretic on 2-22-2005 08:46 AM

  • 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

  • Can we design analog to digital signal conversion block diagram (ADC) in labview

    hi every one,i've doubt i.e can we convert function generator output (i.e analog signals) to digital signal in labview......can anyone help me how to create ADC circuit that means ADC Block Diagram in LABVIEW.....please give me solutions for my problem

    Hi guru,
    from signal generation VIs you get arrays containing float values (aka DBL). Those floats are just digital values made of 0s and 1s…
    Any value in your computer is digital!
    To provide a solution you need to rephrase your question! What exactly do you expect as result of your operation?
    Edit: kkkkkkk ur ckt ???
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Can i convert a wav file to a digital signal without using DAQ?

    i tried the coversion of a sine wave to digital signal, ofcourse it doesnt work on converting wav file to a digital signal. i am also new in labview. i tried to explore it but there are many functions that i can't use.
    so my these are my questions.
    1) is a .wav file is an analog signal?
    2) can i convert it without using any DAQ device?
    tnx guys! i'll post the programs that uses quantization of a simple sine wave. i tried it to .wav file but it didnt work.
    Attachments:
    act04-02.vi ‏41 KB

    .WAV is a digital "signal". It uses Pulse Code Modulation to encode analog signal. You don't need a DAQ device to "convert" it to analog. Any computer with a sound card, and media player can "convert" a .wav file to the analog audio signal it represents
    Wan L
    Applications Engineer
    National Instruments
    http://www.ni.com/support

  • Vb6,card: pci6111,daq box:bnc2110,receive digital signal+react on it,how?

    want to send a digital signal from a function-generator into the daq-box (e.g. into ACH 2) and to react in my program on it, when the dig.signal makes the first step from 0 to 5 V e.g.must i change anything else on hw than connecting the function-generator to ACH 2? How can I react on it with my created CWDI1-Objekt. It doesn't work! Thnx a lot! p.s. other ideas are also wellcomed!

    Hi,
    I'm not understand the relationship between the components of your system (or even what they are!). You'll have to clear your system description a little bit.
    1.- You have a DAQ board, what model?. This is important since it will determine what VIs you can use. Are you using the board for Analog input, anolog output ...?
    2.- "The DAQ card relays the information to a digital oscilloscope", What do you mean by this?. Is the digital scope a hardware device or some sort of software component?.
    3.- ActiveX is used to communicate different software components, not to communicate with external instruments. Again, what is the o-scope?.
    4.- Initially you say that Win600 is a machine and then a program. Which one is it?.
    I think once this quest
    ions are cleared up we can start thinking of solutions.
    DiegoF
    National Instruments.

  • How to convert Hi8 to iMac? Have 2 video cameras: Sony CCD-YRV98 video Hi8 and Panasonic SDR-SW20 digital video. Please provide the steps to convert to iMovie '11. Also, is there a way to burn in blu-ray?

    I already have two video cameras. One older (Sony) in Hi8 and the less older one (Panasonic) which is digital. Between the two can it be accomplished to transfer the Hi8 video on tapes to iMovie?
    I have the newer iMac 21.5" and also would like to know if it is possible to record this on blu-ray. The iMac didn't come with iDVD, which means I have to get that uploaded. Any other suggestions?

    Sony Hi8 camcorder
    No it is an Analog Camera - and have NO Digital-Out
    I may be made a Wrongful assumption in that the - Panasonic digital camcorder - was a Digital 8 Camera.
    If it is - it has a Digital Out (FireWire) and can playback the Hi 8 tapes from the other Camera.
    If it is a miniDV Camera - it also have a FW-out (Digital out) - BUT can not play Your Hi 8 tapes.
    Then there are not so many ways to do this.
    If Your Panasonic digital camcorder - Has Analog in RECORDING ( not all have this, it was an EXTRA Cost ! ) - Then You can playback from the Hi 8 Camera to this and record onto a miniDV tape - to be played and Captured/Imported into Your Mac.
    The Panasonic digital camcorder - Might have a feature - Play trough - that makes it possibly to use it as an Analog - Digital bridge - some can do this - But You've not told the exact type/no: etc - So I can not guess.
    If this still do not work (The Panasonic digital camcorder do not have an Analog in connection/function)
    - Then You need an Analog/Digita Converting box - from Hi 8 to this A/D-box then to Mac via FireWire.
    There are several types and prices - I got a fairly expensive box due to that I've lot's of old VHS tapes in even bad quality. And this - Canopus ADVC-300 - has a function - Timebase Correction - that helps a lot in regard to drop outs and Audio slowly going out of sync. I just keeps perfect even over several Hours of VHS-tapes.
    Yours Bengt W

Maybe you are looking for

  • Real instruments being transposed

    Every time I play a real instrument through my US-122 into garageband, my instruments are transposed down a whole tone. So when I play a B, I hear an A in my headphones. I checked the monitor-out on the US-122, and it's fine. The problem is therefore

  • Downgrade from Safari 4 to 3?

    I am sure most people reading this forum know of issues with Safari 4. Let me just say that at home on my Intel iMac running Leopard it works great. At work on my PPC G5 tower it does not. I'm running 10.4.11. Let me reference this archived thread: h

  • Diff. Tcodes for Vendor Master Data

    Hi, We create the Vendor Master through XK01 Tcode...In which 3 window comes...General Data, Company Code Data and Purchasing data... In General Data, 4 checkbox are there....Address, Control, Payment Transactions and Contact Persons... Now requireme

  • CFBundleSource instead of header text - bug

    I've noticed that when my network settings are hosed after its been sitting for a day without use, the title is showing CFBundleSource instead of Podcast or Movies or whatever level I'm at. Definitely something getting hosed up while it sits there. T

  • Scheduling from info package

    Hi, I want to scheule a load at later time today from the infopackage.I created one info package with background job,in the scheduling options I have given date and time.I would like to confirm whether it works? Could some one clarify this? Thanks Ma