Measuring the constant volatge by using DAQ

Dear All.
Sorry for disturbing again,i have one problem in measuring analog I/P,i created a analog VI measurement subVI,by using this SubVI i am going to have some 6 times repeated measurement,when i run my main VI 1st 2 measurement became low and 3,4,5 will Ok then 6th will be high,when i run subVI continuously then it measuring OK for every iteration,why changes happening while running mainVI,and i need Digital multiple line output.I created by using Case structure but i didn't get correct output,1 to 3 cases its working fine but othercases it will not correct. herewith i attached by VI,please help me.
I am going to measure Voltage then converting that into resistance by using Ohm's Law.
Thanking You.
Raikar A G
Attachments:
Anlog Input.vi ‏81 KB
BigTech.vi ‏25 KB
Digital-Output.vi ‏33 KB

First of all, zip up your files when posting more than 1 or 2 files.
Secondly, why are you clearing your tasks and resetting your card each loop?  You should initialize your tasks once before the loop, read/write inside of the loop, and close/clear/reset once after the loop.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines

Similar Messages

  • How to measure the rotational speed by using rotary encoder and 1 counter?

    I want to measure the rotational speed of a shaft, and I have below hardware:
    1, a rotary encoder, with A,B,Z signals output;
    2, PCI-E6363 card.
    I do konw how to use such a  encoder to measure the rotational angle by using the function "DAQmxCreateCIAngEncoderChan", but this time I need to measure the speed(rpm), as well as the dirction of the speed, which means a negative speed represent a CCW rotate direction.
    More detail informations:
    for the encoder, the A,B signal is 600ppr, and Z signal is 1ppr
    the rotatinal speed is in range: -300 ~ 5000 rpm.
    some one suggested me that I can use the "DAQmxCreateCIAngEncoderChan" task to measure the angle firstly and then do the differential analysis with the angle. but I have to enable the Z index function, and it's hard to calculate when the shaft speed is fast then 2500rpm.
    Anyone can help me on this issue?
    Thanks in advance!

    RobertoBozzolo:
    Thansk for your reply. You are right that measure frequency to get the speed is the best way, but it's hard to get the dirction at the same time. You suggest me that "perform two angle measurements to get the sense of rotation", but I'm not sure I catched what you mean about this. I try to understand your opinion like this: distribute the signals to 2 counters, and start 2 tasks, one for frequency, the other for angle which used for deciding the dirction?
    And by the way, in my application, the counter is limited:
    I'm using PCI-E6363, which have 4 counters totally, and I have to measure 4 different speed sensors at the same time, so that means only 1 counter for me to measure the speed and the dirction.
    RobertoBozzolo 已写:
    To measure the speed from the encoder you can simply follow some of the frequency measurement examples that ship with DAQmx, considering that speed (rpm) is given by frequency (Hz) on one encoder output / 600 (ppr) * 60 (s->min)  = frequency / 10.
    Difficult is to add a sign to this measurement: frequency measurement gives you no information about sense of rotation, so I suppose you could perform two angle measurements to get the sense of rotation and then get the speed as above.

  • Getting the data in file using DAQ assistant in Labview

    I am using SCXI 1000 chassis, SCXI 1125 input module and SCXI 1320
    terminal.
    I am using DAQ assistant in labview to obtain temperatures and store it in
    a file. The experiments run the whole day and I need the whole data
    generated during this time to be stored in a single file, but I am unable
    to store it in a single file.
    Can someone please give me some insight as to how can I achieve this?

    Hi Mr,
    It would be helpful to see your code to see exactly how you are acquiring the data. Are you doing continuous buffered measurements? Or are you performing single point temperature measurements in a while loop?
    Either way you will want to use the "write to spreadsheet" VI in your loop. Simply wire your data into the "write to spreadsheet" vi and se the "append to file" input to TRUE. This will make the data add on to the end of the file with each iteration of the loop. The "write to spreadsheet" VI is located in the file IO pallette in LabVIEW.
    Thanks,
    Sal

  • Measure the Pulse duration by using NI PCI6250 counter module

    Hai All,
    For my application i need to measure the pulse duration from encoder signal.Encoder PPR is 1024. Maximum speed is 4500 rpm.Encoder signal is connected with NI PCI6250 card Counter input. If i configured my NI DAQ task as a Pulse duration measurement icant able to get prober pulse duration. Pulse duration some times reads as zero or near to zero and values also varies. I dont want average pulse duration. I need each pulse duration.Can any one help me to solve my problem?...
    Regards,
    Vijay.  

    Can any one Help me to solve the above problem
    Regards,
    Vijay

  • How to get rid of the "time out" when using DAQ AI in the example program

    I try an example file called "AcqVoltageSamples_IntClkDigRef" (Visual C++ .NET). It works great. However, if the program has not recieved the data, it sent out a timeout message. How to get rid of the "time out"? I cannot find anywhere in the code. Is this a property I have to reset somewhere else?
    Thank you,
    Yajai.

    Hello Yajai,
    The example program will use the default value for timeout, 10 seconds. To change this, you will have to set the Stream.Timeout value. I inserted this function into the example and set it equal to -1, and the program will wait indefinitely for the trigger signal without timing out. Please see the attached image to how this was implemented.
    I hope this help. Let me know if you have any further questions.
    Regards,
    Sean C.
    Attachments:
    SetTimeout.bmp ‏2305 KB

  • How to set the User rights to use DAQ/IMAQ in WinXP as general(=limited) user

    When I install Software, written in LabVIEW (build an executable/installer), as administrator it works fine. But when I switch over to a user account with limited rights (we are talking about WinXP) it will not run and gives error messages. It happend to me at two almost the same computers, one with a DAQ-board, and one with an IMAQ-board. (At the computer with IMAQ1411 -> I also checked MAX -> errors/no access.) What to do?
    Attachments:
    DAQ_example.JPG ‏9 KB
    IMAQ_example.JPG ‏15 KB

    Hello,
    I investigated the issue further. To work around this problem you should add write permissions to the C:\Program Files\National Instruments folder. Be sure that all subfolders and files are awarded write permission. This should solve your problems. eventually you could break it up to one file which must be set to write permission but by setting the whole folder to write permission you solve this problem for many other drivers to so you would not run into this everytime you use different hardware.
    Best regards,
    RikP
    Application Engineering
    National Instruments
    Rik Prins, CLD
    Applications Engineering Specialist Northern Europe, 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

  • Acquiring pressure data using daq assist

    Hi all,
    I want to use DAQ Assist to measure the pressure.When i select DAQ Assist>Acquire Signals>Analogue Input>Pressure>Pressure(Bridge) then is says 'no supported devices found'
    What should i do?
    thanks

    I have Trafag pressure sensor anyway i give up doing it by daq assistant.I did it by using another daq tools.But now i have a new problem in calibration of sensor so i will post a new question

  • Measuring the frequency using PCI 6221 Daq card

    Hi
    I want to find the frequency of an external signal.
    How can i do that give me some idea or example.
    Regards,
    Hari

    If you need to capture the waveform look at the aquire waveform examples and add the
    Extract Single Tone Information VI
    Owning Palette: Waveform Measurements
    VIs
    Requires: Full Development System
    Takes a signal in, finds the single tone with the highest
    amplitude or searches a specified frequency range, and returns the single tone
    frequency, amplitude, and phase. The input signal can be real or complex and
    single-channel or multichannel. Wire data to the time signal in
    input to determine the polymorphic instance to use or manually select the
    instance.
    (copied from the help)
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

  • Constant Current Measurement VI.Which pins to use?

    I have got the constant current measurement vi from the examples portion of LABVIEW 6.0.I have got NI-DAQ 6024E and it's connector block CB-68LP.I have left the default parameters as it is of channel & device.I read the input current values on pins 68 & 67 but they are not accurate.Infact,they are too far from the actual values.I've a potentiometer of variable resistance which I use in series of this circuit.The Rs shown on front panel makes no difference to the readings.
    Also, is there any way I can increase the current limit of this program?
    I'm attaching the VI I have used.
    Attachments:
    cont_current_meas.vi ‏58 KB

    Is your DAQ card setup for differential input? If it is, you're using the wrong ground reference. You want to use pins 68 and 34 (AI0 is positive (68), AI8 is negative (34)).
    This is most likely your problem.
    Mark

  • How Can I Measure the CPU Power My Flash Movie Uses?

    Hi All,
    I'm working on a complex job that is intended to play on low-end PCs so I'm looking at ways to reduce the processor load the movie needs to play. Obviously large screen size, high frame rate, intensive ActionScript, and complex graphics all add greatly to how much CPU power is needed to run a Flash movie, but is there a way of getting an accurate reading of the CPU power it is using? I am modifying a job that was running badly on low-spec PCs so now want to adjust it to run faster and smoother so would like to somehow be able to compare the modified job with the original. Any Idea how I could do this?
    Any help would be greatly appreciated.

    Hi. I tried your suggestion and I could not get it to work well. In
    fact it worked better without the running average (which suprised me).
    I also played with the number of data points but still could not get it
    to work well.
    Do you have any other suggestions on how I could sort this problem out?
    I
    have attached a screen shot of the signal. To recap, I'm trying to
    measure the'y' position of the flat regions of the signal. The signal
    does not have a constant level, so this 'y' position varies with time
    in a non-unform manner.
    I am currently differentiating
    the signal and selecting the y position when the differential is equal
    to zero (within a tolerance band).
    In the screenshot, the
    signal has been zeroed using the method I have described above.
    However, it occasionally has glitches which may be caused when the code
    picks up a zero gradient at a peak or valley in the signal.
    I therefore need some kind of algorithm that only measures the position of the flat regions.
    Many thanks
     John
    Attachments:
    screenshot.gif ‏121 KB

  • How to measure the resistnace of wire without any current input by lab view and DAQ-9172

    i want to measure the resistance of the SMA wire without any current in put by LAB view and DAQ-9172 any body help me

    You could measure the time constant of a resistor/capacitor series circuit. Basic electrical engineering: http://en.wikipedia.org/wiki/RC_time_constant

  • How to measure the rpm using NI 9411 and counters

    How to calculate the rpm of a shaft using NI 9411 and counters?

    http://forums.ni.com/t5/Signal-Conditioning/measuring-rpm-using-DAQ-device/m-p/2571131#M7353
    Additionally, if you set it to read a degree instead of pulse, your calculation will change a bit, but I'll leave that to you.

  • How can i measure the time between two successive rising edges ,using digital input ..

    Hello
    I'm trying to measure the time in seconds between each two successive rising edges on a digital input .
    Till now I have managed to detect the rising edge ,increment a counter with each rising edge ,and snap the time at which the rising edge happenned
    all I need now is to subtract the current rising edge time from the previous rising edge time in order to calculate (T) which can be 1/frequency and display it in realtime to the user.
    but I don't know how to do this
    Can somebody please help me !!!
    note: the time that I'm measuring ranges between 200 ms - 2 seconds
    Solved!
    Go to Solution.
    Attachments:
    Counter without time.vi ‏11 KB

    Cheers for that. It's always a good idea to post your SubVIs as well - the problem could be in one of those.
    To help you out:
    You already know how to use shift registers so why not use one again for time? Create a new shift register for  the time then simply compare the "rising edge time" to the the previous time stored in the shift register and then write the new time to the shift register.
    Just a few other pointers:
    1. You'll want to initialise your shift registers ie wire a constant to the left hand register outside of the loop. This will cause the register to be reset each time the program is run. This is so that your counter will start from zero each time you run your code.
    2. You don't need to use the "greater than?" compare function with boolean as they can only be true or false (1 or 0)! The "Equal?" function is what you should use here.
    3. Lastly, it's a small thing but you can use the same tunnel that feeds into a case structure in each of the cases - no need to create two tunnels for the true and false cases, use the same one.
    -CC
    "If anyone needs me, I'll be in the Angry Dome!"

  • Measuring the output voltage from a laser detector(p​hotodiode-​TSL 250) using PCI-6014?

    i am using a photodetector (TSL-250) to detect the different intensity of the laser beam, since the laser beam is passing throught a different depthness of liquid dye. I am measuring the output in voltage form. is there any measurement studio - Visual basic example illustrate this kind of measurement? thanks

    Sounds like this is a simple continuous analog input application. Here are some starting points for example code based on which environment you have. Note: the PCI-6014 is supported by both NI-DAQmx (7.1 only) and Traditional NI-DAQ (7.1 and earlier).
    Programming DAQ in Visual Basic 6.0
    http://digital.ni.com/public.nsf/websearch/341C143​28D91EDF186256D9800456FC0?OpenDocument
    Programming DAQ in Visual Basic .NET
    http://digital.ni.com/public.nsf/websearch/AFFC0BE​95DE6B38186256D9B0051342B?OpenDocument
    Have a great day!

  • How to measure the phase shift using AC analysis?

    Hi,
    I have a simple RLC circuit consisting of no more than 4 components. If i hook up the network analyser function to the circuit and read the S11 values, i can see a change in the input impedance and a phase shift when i run it across a range of frequencies.
    I am trying to do the same with the AC analysis tool. I've placed a probe on the positive input line. Using the AC analysis i've obtained the input impedance by using the expression mag(V(Probe1))/mag(I(Probe1)). Everything looks fine but i just can't seem to obtain the correct expression to gain the phase shift. All of the values i get out seem to flat line.
    It would be great help if someone could point me in the right direction, as i'm running out of ideas.
    Thanks for the help.
    Attachments:
    M1.png ‏3155 KB
    m2.png ‏618 KB

    Hi 08Ultrasound,
    You need to measure the voltage phase difference over a load as the voltage source is ideal so will always be in phase.
    Regards,
    Adam Brown
    Applications Engineer
    National Instruments UK

Maybe you are looking for