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.

Similar Messages

  • Measuring DC signal with ac coupling

    I'm TOTALLY new to Labview. I was trying to use NI DAQ 4472 for measuring DC signal with large DC offset. I would like to see an example that sets AC coupling for filtering the unwanted DC offset. I found an example with "DAQmx Channel Property", but I need help in connecting it with the block diagram. I have attached my block diag. and and help in connecting the DAQmx Channel Property Node is highly appreciated.
    Thanks.
    Attachments:
    Sensor_Configuration_Test.vi ‏60 KB

    Good afternoon MiamiVipul,
    Thanks for contacting National Instruments with your issue, we'll try and get you up and running as quickly and efficiently as possible.
    Look like you've got the right approach to your problem.
    In order to integrate a property node into your code, you simply have to wire the task reference and error cluster in line with the rest of your code.  I.e. after you create the task, you will have the purple task reference out as well as the pink error cluster out, wire those to the corresponding intputs on the property channel node and then wire the task and error out of the property node into the DAQmx Create Channel vi. 
    Have a look at the examples by going to Help > Find Examples (Browse Tab)  > Hardware Input/Output > DAQmx > Analog Measurements.  There are a variety of different measurement types which you can start from to give you a strong idea of the general DAQmx coding principles.  Several of these also use Property Nodes.  For example Acq&Graph Voltage - Int Clk-Analog Start w Hyst.vi
    You mentioned you want to measure "DC signal with large DC offset", which I'm assuming is a typo, as AC coupling is of course designed to remove the DC offset so you can measure the AC signal.  
    Best of luck with your project.
    Sincerely,
    Minh Tran
    Applications Engineering
    National Instruments 

  • Generate PWM signal with 6602 utilizing load cell feedback

    Hi Everyone,
    I am new to LabVIEW so I apologize if this question is elementary but I really need some help with the coding. First of all, I need to generate 8 independent PWM signals to control 8 separate linear acuators using the NI 6602 board. I have each actuator wired to their own COUNTER OUT pins and ground on the SCB-68 that is connected to the 6602. The specs for the actuators state that it will take an input of "RC input range of 1.00 to 2.00msec pulse widths @ 55Hz. Bandwidth=.44to160Hz. Period from 6-23  msec". How can I code for these PWM signals given the specs from the manufacturer?
    In the end I need to be able to not only control these actuators based upon duty cycle, but based upon the load each actuator is applying. Each actuator has a load cell in series measuring the tensile force through the load cell (the actuators will be pulling on strings). Each load cell is wired to a NI 9237 in a NI 9074 block that is connected via USB to the same computer. So first comes first, how can I code for the load cell output to be brought into the LabVIEW environment?
    My last question is pulling this all together. How can I code so that I can input a specified load into LabVIEW and then based upon the value the load cell is reading, the duty cycle of the PWM will be adjusted until the the desired load is achieved?
    Thanks in advance for any help! Also, I know that this is quite a complex questions so if you can even point me in the direction of resources that would be helpful, I would greatly appreciate that too!
    Thanks,
    Ryan

    Hello Ryan,
    Here's a tutorial on generating PWM with LabVIEW:
    http://zone.ni.com/devzone/cda/tut/p/id/2991
    How are the load cells outputting the data? Is it an analog signal? If so, you can read that in using an analog input task, and run that in parallel with the PWM task. Then you can modify the frequency and duty cycle inputs that you're giving you the DAQmx write inside the PWM code based on the analog input. By putting the DAQmx read and the DAQmx write in the same for loop, you can read from one and modify the other at the same time.
    Here's a tutorial that shows a lot of useful information for using DAQmx within LabVIEW:
    http://zone.ni.com/devzone/cda/tut/p/id/2835#toc6
    If you're interested in getting better at LabVIEW in general, NI has some learning materials available here:
    http://www.ni.com/academic/students/learnlabview/
    Let me know if you have any further questions once you've gone through those first two tutorial links.
    Colden

  • How to measure different signals with PXI-2501

    Hello everybody,
    i have a an understanding problem.
    I have a PXI-2501 switch and i want to measuere signals with the pxi-4071, so far so good.
    I did some voltage- measurements and everything worked fine. Then i disconnected the power source and measured the temperature with a PT1000 in four-wire-mode ... also worked fine.
    But i want to measure voltage and temperature, in the same VI, so i connected the voltage signal on CH0 and the PT1000 at CH5 (in four wire mode), and now i get problems. The temperature is fluctating. There are a few measurements that seems OK, and then i see some that are far away from the truth.
    The VI consists of a state machine, the measurements are done in different states, of course with the correct scan list for each measurement.
    Any suggestions? Am I doing something completely wrong?
    Thanks
    (and excuse for my english )

    Hi Roman,
    id I understand you right:
    The temperature measurement works fine, if the sensor is directly connected to the 4071, but if connected via the 2501 you see the big deviations?
    Have you measured the the resistance of the Switch-Matrix yet?
    kind regards 
    Heinz

  • Sequence 1create output digtal signal- 2 make microsecon​ds delay or less- 3 measure digital signal with board 6023e

    hello
    I need creat a digital signal and for this i use a counter output and then i need creat a delay after  a signal measurment and for this i use again a couter. My problem is how i can make this delay betwen create and measure a signal. this delay must to bethe shortest  possible  and precise. une of my attemps was make  a sequence and for make the delay i create a task for une virtual output with max frequency 5000000hz and just une pulse but i dont know how many time the labview get to go by the first task ( creat a output pulse and ent it) to make tis task before discribed to the last task (measure a digital sinal). Another thing that i dont know is how many time the libview get to create and eliminate une task. Une information beyond the kind of board (6023E) that can be useful to help me  with this problem is the information about my pc in this case i use a pentium4 3Ghz.
    thanks  

    ...My problem is how i can make this delay betwen create and measure a signal.
    ...how many time the labview get to end one task and start another one.
    What I tried to say is, that even if you use the counter of the 6023e-Board
    to create the delay and trigger the measure via LabView under Windows,
    you leave the realtime-path. Executiontime of LabView-code is then not
    determinated.
    One way to solve this, is triggering measurement via hardware and use LabView to read Data from the Buffer of the DAQ-card.
    You can find more info about DAQ in the "measurements manuall" of NI, delivered with your LabView Software.
    Lorand

  • Problems to measure a signal with 10kHz frequenz

    Hello,
    i want to measure a signal at 10khz frequenz.
    My problem is that from 100Hz above i dont get a clear Signal.

    Daniel,
    Could you provide more information about your task.
    - What type of signal is it (sine, square wave, etc.)?
    - What hardware are you using to measure the signal?
    - What type of input are you using (analog in, digital in, counter)?
    - How are you performing the measurement? What functions are you using? What development environment (LabVIEW, C, etc.) are you using? Can you attach an example of your code?
    Christian L
    NI Consulting Services
    Christian Loew, CLA
    Principal Systems Engineer, National Instruments
    Please tip your answer providers with kudos.
    Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system,
    or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject
    to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense

  • Why do I get Error 33487 when measuring TC signals with FieldPoint

    I am measuring temperature with a cFP-2000 and cFP-TC-120 using K-type thermocouples. I am intermittantly getting Error 33487 (Signal out of measurement range) from FP Read.vi the first time the unit tries to take a data sample after startup (it automatically starts colelcting data once it is done booting). The temperature should be nowhere near the signal limits (about -450F to 3200F) - when the data is collected without an error I am seeing 75 - 250F. What could it be?

    Hi,
    I have posted you an answer through the standard support channel, let me know if that answers it.
    Regards
    Andre Oliveira
    Applications Engineer
    National Instruments

  • Measure Vac signal with Vdc IO FP-AI-100

    Sir,
    We are trying to use hall-effect current sensor to measure motor currents. High accuracy is not required. So we are thinking of using FI-AI-100 to do this. But output of the hall-effect current sensor is about 0-5 Vac/60Hz. I wonder whether or not we can use FI-AI-100 here and what we may read back.
    Anyone has any experience ? Thanks in advance.

    Sir
    Although the FP-AI-100 can handle the voltage you are going to be reading, it is not meant to be reading AC voltage. You would be able to accurately see the 60 Hz frequency of your signal, due to the ability to sample faster than twice your frequency, but you would not be sampling fast enough to accurately depict all of your peaks.

  • Measuring floating signals

    I am using a PCI-6024E DAQ board and I would like to measure a floating signal. I tried to measure the signal by connecting the two leads each to an analog input (like I believe you are supposed to) but damaged the board I was using. The two leads are always within 5 V of each other which should be fine. However, the leads can have a voltage with respect to ground of something more like 120 V at times. It would be disastrous if this signal was connected to ground (which is probably what caused my board to be damaged). Any thoughts on whether or not I can safely measure this signal with my DAQ board? Thanks.

    Hello,
    Thank you for contacting National Instruments.
    The PCI-6024E data acquisition board has a working voltage specification of 11V that means that the board will continue to measure correctly till the input voltage on either of the analog input channels is not greater than 11V. The board also has a power on over voltage protection of 40V which implies that the board will not get damaged for voltages up to 40V while the board is powered on.
    To measure a signal that has a common mode voltage of 120V you will need to use signal conditioning with isolated analog inputs. Two simple solutions are:
    1. Use an SCXI-1120, 8-Channel Isolated Analog Input Module with an SCXI-1327 terminal block. This configuration will let you measure voltages in the range of +
    /-250V.
    SCXI-1120/D User Manual
    2. Or you can use an SCC-AI04 module in a SC-2345 chassis which has an input voltage range of +/-5V and provides an isolation of 300Vrms.
    SCC-Ai series User Manual
    If you are interested in purchasing these solutions you can contact a sales representative at NI by calling (888) 280-7645.
    Regards,
    Nipun M
    Applications Engineer
    National Instruments

  • NI 6602 measure quadrature encoder with two signal edge sepearation

    Is it possible to improve the position measurement for X4 encoders,
    that the measurement starts at start trigger and stops at the stop
    trigger signal like the normal two signal edge seperation measurments.
    Everything I tried don't works. Does anyone have an idea. Thank You
    for Your trouble.

    Hello Yong,
    You have no wait time within your for loop.  This means that the loop will execute as fast as possible, but not at a constant rate.  To acheive a more constane rate, try inserting a Wait Time of 1 ms.  This will get you a loop with a 1 kHz rate.
    How fast is your PWM Signal?  It may be that you are missing some two edge measurements while waiting for the loop to iterate.
    I suggest merging your error clusters out of the DAQmx Read.vis.  Right now, you are just clearing out any errors.  Let me know if you start returning any errors once you have done this.
    Regards,
    Sean C.

  • Measure PWM with CRIO Module 9403

    Hi,
    I'm trying to measure a PWM signal generated by an absolute encoder. The encoder outputs a PWM with a period of approximately 1000 microseconds. This correlates to about 0.4 deg/microsecond.
    When I run an FPGA code that has a counter that counts ticks while the PWM is high, the counter takes approximately 265 ticks per loop (and increases when other I/O readings are made) - according to the benchmark timer I've incorporated into the code. This means that the loop requires about 6-7 microseconds to take a reading from the DIO. This correlates to a couple of degrees in resolution which is not a good enough for our application to read from the encoder. 
    Is there any way to increase the speed of the FPGA? I've included a screenshot of the FPGA code as well as the project containing the test VI.
    Attachments:
    fpgaproblem.jpg ‏65 KB
    testfpga.zip ‏21 KB

    Hello NIo33,
    Have you benchmark the rate at which the PWM signal is coming in from the NI 9403 module? What type resolution are you trying to achieve? I do not see to many ways to pipeline your FPGA code.
    Paul-B
    Applications Engineer
    National Instruments

  • Measuring PWM duty cycle with Analog Input

    Hello folks,
    I have a NI 9205 module and was wondering if there was a way to measure the duty cycle of a PWM signal that I am generating with a separate microcontroller?  I have found a lot of examples with Digital inputs but not analog.. Is this possible?
    Thank you,
    Bob

    Hi Robert,
    I'm not sure what that error is, try searching for it.
    If you want to measure a PWM signal you would usually use a counter input.  A counter is a dedicated piece of hardware that is used to measure digital signals.  Since the NI 9205 is an analogue device and it doesn't have any counters onboard, you will not be able to select counter input.
    I would recommend you get the right tools for the job and buy a digital acquisition device with an onboard counter.  It will make reading PWM much easier for you.  The NI 6008 has a counter onboard and is only £99.  It will also offload processing from software to hardware since you don't have to calculate duty cycle.
    If you still want to use analogue post back and we can look into why its not working for you.  Tips to start you off: Voltage is the correct setting and  Look in the manual and make sure you have connected it like you have configured it (differential, RSE, NRSE page 14)
    Lewis Gear CLD
    Check out my LabVIEW UAV

  • How do i create 6 digital 25Hz PWM output signals with my PCI-6221 card?

    Hi!
    I´m a student, who´s trynig to control a gasturbine process for my diploma thesis. The control program should be written in LabView 8. I need to control 6 25 Hz PWM signals for the gasvalves. The  needed accuracy of the duty cycle has to be about  0.1 %.
     A  tech. engeneer from  NI  told  us , that  we can  do this by using one single digital output for each PWM.
    Now, after a while, i need to implement it into my program. But there are troubles:
    My NI-PCI-6221 standard card only has 2 couteroutputs and only the first of the 3 ports seems to be buffered (Error Nr.  201062)...
    I tried to do the programming, by manipulating the "DIO_PWM_50Hz.vi" I found in google.
    Does anyone of you have any information or helpful examples how i can create these PWM with my card, or did I get a wrong Information by the salesagent (...not the first time....)?
    Thanks for your help
    Tobi

    Here you can find an example, how to do this:
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=DE27921DB53A4D8DE034080020E74861&p_...
    As the text says, best would be to use the counter. As your Hardware has only 2 Counters, you would need additional hardware. Best would be to use a Counter-Card (660x), thes boards have up to 8 counters, so you coulkd control your 6 gasvalves indipendently.
    The soultion with the timed digital outputs of the m-series boards would only work, if you can use the same timing (one counter) for all 6 outputs.
    Hope this helps!

  • How to measure a current signal with NI 6211?

    How to measure a current signal with NI 6211?

    Hi Clecio,
    This is a charge accelerometer. It is different from the IEPE accelerometers that outputs a voltage signal.
    You need a charge amplifier. Then according to the charge amplifier output we can select an appropriate module to measure the signal.
    It is not possible to measure charge accelerometers with NI 9234 directly.
    Best Regards,
    Rodrigo Schneiater
    Application Engineering
    National Instruments Brazil
    If this information was useful, please click in the 'KUDOS!' beside.

  • Problem with PWM signal, Please Help!

    Hi all,
    I am designing a PWM signal where its output is going to connect 4 optocouplers to drive a H-bridge MOSFETs. However, I am now having a problem of getting an output signal strong enough to drive the optocoupler. 
    I have attached the Multi-Sim file along with this post. Please feel free to help me to solve this problem thank you.
    The version of Multi-Sim I am using is 10.0.144
    Attachments:
    PWM_HCPL0631.ms10 ‏72 KB

    Hi Justin,
    I am slightly confused as to whether this is a problem with Multisim or the design of your circuit.  Are the components in Multisim behaving in an unexpected manner in comparison to their real-world counterparts?
    Regards,
    Thomas Clark
    Applications Engineer
    National Instruments UK & Ireland

Maybe you are looking for