PWM signal from Accelerometer by using DIO of PIC-MIO-16E-4

I am a new beginner to use digital signal acqusition. The accelrometer send the pulse width modualated signal and I need to use DIO line instead of counter. I wonder how I can measure the pulse width, + duty, and -duty.

Hi Gino,
If you plan to use the digital inputs of the PCI-MIO-16E-4 then you will be limited to software timing since the digital inputs are asynchronous and dependent on software calls. This means your fastest rates are roughly 100-1000Hz (computer dependent). Since you also want to sample a period at least 5 to 10 times so that you can get a somewhat accurate representation of the duty cycle and the pulse width, you are further limited to the signal being slower than 10-200Hz.
However, if this is acceptable then you only need to create a loop and sample your digital inputs at the desired loop speed and perform calculations to determine the duty cycle.
How you would determine the pulse width and duty cycle is everytime you take a digital measureme
nt you also use "Count Ticks (ms).vi" in LabView to count the time between each call to this VI. You simply add these times while the reading is high and you have the high dutycycle. Do the same for low and then add the two together.
Hope that helps.
Ron

Similar Messages

  • Program to write signals from PXI 5105 using labview 2011

    Hello
    I am new in using labview. I need help in writing program to continuously record the signals form PXI 5105 using LabVIEW 2011.  I prepared a program using help examples. It is recording the signal using pxi 5105 into the file after trigger. I tested the code using waveform generator with -100mV to 400mV, 1 kHz, sine wave. I have also attached the waveform of signal from the excel file recorded by the program. I have following queries
    (i) Is the program correct to continuously record the triggered signals. Have I used the while loop correctly?
    (ii) why some part in waveform is missing.
    (iii) What should be the value of millisecond multiple ( I used zero)
    I want to use above program for strain gauge signal measurement. Where I have to record the data at 20Ms/sec sample rate for 1 milli second after trigger.
    thanks
    Attachments:
    Signal recording programme.vi ‏85 KB
    recorded_signal.png ‏38 KB

    Hi,
    Sorry but I've only got LabVIEW 2010 so I can't open your file. If you can post a 2010 version I can take a look.
    vinod_p wrote:
    (iii) What should be the value of millisecond multiple ( I used zero)
    If you are talking about the "Wait until Next ms Multiple" function then "Wiring a value of 0 to the milliseconds multiple input forces the current thread to yield control of the CPU." (from the context help for the function - press <ctrl>+h). Is this the behaviour you want?
    Normally the ms multiple function is used to synchronise loops as it waits until the next multiple (be it 10ms or 10s) before continuing the loop.
    -CC
    "If anyone needs me, I'll be in the Angry Dome!"

  • How can i read pwm signals from a rc receiver using myrio??

    Hello, i bound a transmitter (rc remote control) with a receiver which i connected it (the signal's pin) to the digital port on myrio. It showed me a boolean indicator, and it wasn't turning on the whole time even when i moved a cursor on the transmitter. When i put a time delay of 1sec in the code the results started to show true on some positions of the throtlle. Can anyone tell me how can i interpret those result to create signal conditioning and control some motors?? thank u all in advance

    This is the point in the phone conversation when the mechanic tells the customer, "Why don't you bring your car in?"
    Please upload your code so we can help you figure out what's wrong.
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • Signal flow chart for using DIO on 5640R

    Hi,
    There are a bunch of good templates to get me started with analog I/O but not for digital I/O. My project needs the host to send out a value through digital lines @10MHz. Now I have a few  basic questions regarding the standard procedures to work with DIO?
    1. what are the essential items in the signal flow chart on host? Open session->configuration->write->initialization->close session?
    2. What are the differences of opening a session using FPGA VI Reference.vi and 5640 init Generation Session.vi? They are not interchangable.
    3. Do I have to use a FIFO to transfer data between FPGA and host in this case?
    At last, I highly recommend ni group to create a working template for DIO. If easy modification to analog I/O template can work for DIO, please show to how, that'll be great.
    Thank you.
    Dan

    Hi Dan,
    The basic flow of programming on the Host for digital output would be similar to:
    Open FPGA Reference >> Configuration (as needed) >> Write to FPGA >> Close session
    You could use a FIFO to pass data between the host and the FPGA or you could just pass data via controls and indicators.  I have included an example project which passes data from the host to a control on the FPGA VI.  If you are transferring the data as a 32-bit unsigned integer then you will need to manually format and control the way it is output from the FPGA VI.  There is not a pre-made function to do that.
    As for testing, you can manually probe the pins on a connector with a DMM.  Here is the pinout for the AUX connector.
    Regards,
    Barron
    Barron
    Applications Engineering
    National Instruments
    Attachments:
    ni5640R Digital Output Example.zip ‏282 KB

  • How to broadcast Wifi Signal from MBP when using AT&T mobile card.

    I have a Macbook Pro and access the internet via an AT&T wireless modem card (USB Quicksilver). Is there a way to broadcast a Wifi signal so that I can get internet on my new iTouch ?
    Thanks for any help !!
    Cindy

    Yah, Seattle: I see what you are talking about: when you try to enable share, the message is "you haven't enabled a port to share", and the only offer is ethernet? I do share my wireless AT&T AirCard. Are you sharing with a PC, or more Macs, on Airport? It took me a while, when I first enabled the share on Airport. From System preferences > Internet and Network > Sharing, there is no joy. First go to Network Preferences: enable Airport; whatever it takes; Network name you self-assign. Now when you go to SysPref > Sharing > and check Internet Sharing, you get another scolding: "You cannot share 'cause no ports; or share from Airport to computes using ..." Go to Network Preferences > Airport > Network Name > Create Network, or if the other computer is up and around, > Join Network. Mine werke,s but it was ugly getting it up to a PC wireless ... I got it almost there and then had to go 128 bit encryption password etc to make the (corporate) PC happy. This is not plug and play ... Keep trying and take notes and post back.

  • I have an NI5911 high speed digitizer and would like to acquire a video signal from a CCD using it. Does anyone know if this is possible without buying any more hardware please? If it is, how would I go about it?

    The only thing I succeeded in finding on the NI site was about using a different high-speed digitizer in tandem with an IMAQ card but I was hoping not to have to buy an IMAQ card as it means I may as well not have got the NI5911 (a while ago) in the first place. Any help would be greatly appreciated!

    You can certainly acquire video signals with the 5911. The only tricky part is that the 5911 does not have any video triggering options. That means that you will have to either find a way to provide your own trigger based on the video signal (that's where the IMAQ board comes into play) or you can just take a lot of data and keep only the data you need once it is in software. For instance, you could take one large record and then use software analysis to determine where the frame sync occurs. Hopefully this was helpful.

  • Iam developing an applicatio​n using NI-DAQ(AT-​MIO-16E)ca​rd on vc++ environmen​t.My requiremen​t to extract amplitude of AM signal(1kh​z(4step waveform) on 70Mhz carrier).M​r Ben suggested about sampling.

    My application is having a device that takes 1khz and 500Hz clock and 70Mhz carrier.And generates AM signal(1khz(4stepwaveform)on70Mhz).
    each step of 250 micro sec.
    Iam using couter0 and 1 outputs of NI-DAQ card for generating clock.
    I need to generate a clock through card and syncronously i should acquire the 4 step levels
    of incoming AM signal(1khz(4 step) on 70Mhz)in each cycle.And i should generate error voltage like e1=(step1-step3) volts
    e2=(step2-step4) volts
    for each cycle i need to generate e1&e2
    I am planning to use
    DAC0 and DAC1 pins on ni-daq card for sending errorvoltages.
    For implementation of whole thing.what
    ni-daq functions should i use.
    I am planning to use DAQ_Rate and DAQ_Start functions for sampling the incoming signal.
    counter functions for generating clock.
    Mr Ben suggested about sampling AM signal.
    that is about 40khz.10 samples for each step.
    I need some help regarding how to interface the incoming signal(AM signal) with the card.
    could it possible to connect signal directly to ni-daq card one of the analog input channels?.
    regarding sycronization of clock and sampling of
    incoming signal please help me.
    thank you for ur help

    Your two best resources for developing any Data Acquisition application are the manuals for your board and the examples shipped with NI-DAQ. Your board's manual should have information regarding wiring. That is, it has a section dedicated to how to connect signals to your board.
    The examples shipped with NI-DAQ show several Input/Output methods. These should give you a general idea (if not a specific application to your project) of how a Data Acquisition system would look (AI config, start, read, close, etc). These examples can be found in the \examples directory.

  • Measuring PWM Signal with NI9423 with C-RIO 9073

    Attachments:
    Simulator1.vi ‏114 KB

    Eh..sorry. I do not know what happened, but it seems like my questions is gone in my previous post.
    Let me recap, I'm new to NI Components and LabView.
    I wanted to measure 8 PWM Signal generated from a controller (200Hz, Max 4A, 24Vdc).
    WIth NI engineer's suggestion, I bought cRIO 9073 and NI 9423 for this purpose.
    I have created a VI for this purpose. It seems to be working at first, but later on, the value read by the NI 9423 becomes unstable even though the out put signal from the controller was stable.
    The value read by 9423 just goes up and down with an increasing PWM signal from my controller.
    below is the setting for the 9423.
    Thanks.

  • Can I use Airport Express to extend signal from my Airport Extreme and then run Ethernet from Express to my TV which requires ethernet to access internet?

    As stated in title. I want to access Netflix but my TV requires ethernet connection. I would like to use Express to repeat Exreme sigal and then to TV via Ethernet. I only have one access point in house for cable modem so I'm using Extreme to broadcast though house. Will need to be able to input network key for Extreme secure network. Thank you.
    Mike

    Are both your AirPort Extreme and AirPort Express 802.11"n" devices?
    If yes, you can configure the Express to "extend a wireless network" and it will  provide more wireless coverage and the Etherent port will be enabled so that you can connect an Ethernet device.
    This assumes that the Express is located where it can receive a strong signal from the AirPort Extreme.

  • I have just come back from morocco where my phone worked ok using the morroco network, but since returning to the uk I can't get it to pick up a signal from the 'Three' network, have tried resetting etc but still wont work, any suggestions

    I have just come back from morocco where my phone worked ok using the morroco network, but since returning to the uk I can't get it to pick up a signal from the 'Three' network, have tried resetting etc but still wont work, any suggestions

    banannaphone,
    Welcome to Apple Discussions.
    Quit Safari, find the com.apple.Safari.plist file in your Macintosh HD/Users/yourusername/Library/Preferences Folder, drag it to the Desktop, log out/in or restart and let us know what happens.
    ;~)

  • I m using apple mac pc, when we start windows 7 , apple mouse doesn't work properly it take to much time to gain signals from the pc and many times it not work but when we use mac it moves fastly and works properly. please suggest me. thanks ravi

    i m using apple mac pc, when we start windows 7 , apple mouse doesn't work properly it take to much time to gain signals from the pc and many times it not work but when we use mac it moves fastly and works properly. please suggest me.
    thanks
    ravi
    <Email removed by Host>                                                                                                                                                                                                                                       

    sounds more like Bluetooth rather than moue, but w/o knowing w/o posting mac model type/year we... will... not... know... what you have
    All computers are personal computers, a PC though is also "non-Apple" in common usage.
    Mac also is platform and OS.
    Very confused reading what you are trying to tell us.

  • Is it possible to use "Delay Values" to create a frequency signal from digital "Count Edges" -task? (= are the results I'm getting correct?)

    Hello.
    I have a digital encoder from which I need freaquency information (to ultimately get rpm -infromation). The problem is that this task is inside a loop with 2 other DAQmx -tasks that are using "one sample on demand"-aquisition mode and if I configure this new counter task to be a freaquency task, it only updates once in ~ second which makes the whole loop lag.
    I thus created an "artificial" freaquency signal by using "Count Edges" -aquicition mode and the "Delay Values" -block so that I substract the delayed signal from original "Count Edges" -signal. There is a 0,01s delay in the loop and I figured out that if the history of the "Delay Values" -block is 100 samples I would thus get the real edge-freaquency.
    I tested this configuration and the results seem to be at least really close to correct but I have no idea if this idea is in any way correct...
    This explanation was probably quite confusing so please see the picture attached.
    Thanks a lot in advance! 
    Attachments:
    are_the_results_correct.jpg ‏200 KB

    First of all, thank you for quick reply. Unfortunately I don't have the acces to the vi. until tomorrow.
    And yes, I think you understood correctly: essentially this arragement measures how many edges have been counted during one iteration. This is how I figured out that this could then be used as a frequency measurement:
    1. From the "Edges - Delayed Edges" I get the information on how many edges have been counted during last iteration.
    2. I "know" (really I don't?) that one iteration lasts ~0,01s because of the delay in the loop.
    3. There is 2048 edges in one round of the encoder so I get the rpm as follows: rpm = (edges - delayed edges)/204,8*60(s)
    (If I was using history size of one as you suggested it would be: rpm = (edges-delayed edges)/2048 * 60) However using history size of 10 and taking it account in the multiplication smoothens the response nicely.
    But doesn't this arragement count on the fact that the vi runs smoothly and there is no additional lag?
    I quess using another loop and notifiers for a dedicated freaquency measurement as you suggested could be worth trying. I just have to first learn how to use them. 
    If I do use them will the main loop run smoothly and not wait for every update of the notifier? This would be essential since the freaquency output refresses only about once in a second if I use the continious aquisition mode.
    Attachments:
    are_the_results_correct.jpg ‏198 KB

  • Generating 1mv output signal from AO1 using NI 9381 card

    Hi,
    I am using NI 9074 cRIO & NI 9381 IO card, I am trying to generate 1mv signal from the AI port.
    1. Programatically i am supplying 1mv to AO port and reading AI port.
    2. On the AI port i am getting 22mv without connecting AO port to it .
    3. Is there any method to achieve this task.
    Please help me in this.Thank you.

    According to the specifications the offset error can be as large as 16 mV depending on calibration and temperature.
    Devices with input multiplexers can experience an effect called ghosting which results from capacitances in the input circuitry charging to unknown voltages due to leakage currents from adjacent channel inputs or other internal circuit nodes. Measurements made with the input open or floating do not have any meaning. The manual recommends input source impedances less than 1000 ohms.
    As has already been mentioned the resolution is larger than 1 mV. When you combine the offset and gain errors of both the AO and AI channels, in the best case you will not know the output within 11.5 mV and in the worst case the error could be greater than 66 mV.
    If you need both 1 mV resolution and 1 mV accuracy, you will need a better device.
    Lynn

  • Generating PWM signal using Signal Express

    Hi,
       Would anyone help in generating PWM signal usinf Signal Express 2.5.1.   I am using a cDAQmx and connected NI 9472 to the slot number 6 to output the PWM signal. Also I have connected a NI 9421 to the slot number 5 to acquire the PWM signal, so that I could verify the signal.
       So would you please let me know how could I generate a PWM signal using Signal Express without any LabVIEW Programming. Please help me out.

    HI Aamruth,
    I atached a project, where you can see how to do it. I hope this helps.
    Regards, Mona 
    Attachments:
    PWM.seproj ‏29 KB

  • 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.

Maybe you are looking for

  • Item wise Invoice cancellation in case of same IR document

    MM Guru's, I have an issue for one of my PO, when I look at Purchase order in PO history tab page by selecting chronolg.order and observed that initially GR was posted for qty – 1 (as same as PO qty&price) with price - 11.941.000 and material documen

  • IPhone 5S and Outlook 2013 no longer syncing

    Up until recently I had no issue syncing my iPhone 5S with Outlook 2013, but no longer do they do such. All software is updated; which is most likely my problem. Suggestions?

  • Condition Type Doesn't Appear in COMMPR01

    Hello CRM Pricing Experts, I have created a custom pricing procedure called Z00001.  This pricing procedure has a custom condition type called ZPR0.  This in turn is based on a custom access type ZPR0 (Access=5, Table=SAP00080,E=checked, requirement=

  • Excise duty actuals

    Hi experts Excise duty actual While creating PO tax code selected as exise duty actuals Ex: Quantity 15000 Price Rs.25 per unit  (this price including excise duty) VAT 4% While booking MIGO the following entries are updating manually (Excise duty) Ba

  • Plant  to Plant trasfer with valution

    Hi Dear I have very urgent requirment We Have scenrio Let say we have 2 plant , Plant A and Plant B I rasie PO in plant A , material BANANA with quantity 1 @ 10 After that i did GRN in Plant A Immidialty in trasfer  all this material to Plant B So va