Synchronous acquisition 4 analog signal and independently count TTL impulse

Hello!
I'm have NI DAQ board PXI-6115. I have problem:
Need synchronous acquisition 4 analog signal and independently count TTL impulse. When value counter will, at example, 5000 acquisition must stop. I'm read program in LV 7.1 but have a problem.  In HELP write:"You can create only one counter input channel at a time with this VI because a task can contain only one counter input channel. To read from multiple counters simultaneously, use a separate task for each counter". I make two different task, but error not disappear.
I don't know how escape this error?
Program VI with Front panel screen-shot in attach archive.
Message Edited by _Pavel_ on 05-23-2007 09:06 AM
Attachments:
Progr.zip ‏80 KB

Hey Pavel,
Thanks for contacting National Instruments support.  Your program, in it's current state, is attempting to generate a finite pule train and count edges on the same card.  Finite pulse generation is a two counter device, where one counter generates the pulse train and the other counter gates the generation, or goes high when the generation is to start and low when it is finishes.  So no matter which counter you select for the count edges task you will get the error you describe. 
Is it possible to use the pulses that you are counting as an external clock?  If so then you could just generate 5000 pulses and you would only acquire 5000 samples. 
I have attached a modified example from your code.
Let me know what you think.  It only acquires 5000 samples as desired.
Regards,
Kenn North
Senior Product Manager - Search, Product Data
http://ni.com/search
Attachments:
Progr.vi ‏58 KB

Similar Messages

  • How to acquire analog signal and send a TTL pulse at the same time based on PXI 6123

    Hi,
    I am using a PXI-6123 data acquisition card, as the picture show in the attachment ,I want to acquire the analog signal of ai0 through reference analog window and at the same time send a TTL signal to trigger my camera. I have tried two methods, one is using the DAQmx Export signal.vi another is using DAQmx connect terminals, but when the data acquisition card acquire the analog signal, the DAQmx Export signal.vi and the DAQmx connect terminals sometime can send an TTL pulse ,sometime can not.
    I don’t know why?  or some other method that can achieve my arm is appreciated.
    Regards
    chunlei
    Attachments:
    method export signal.vi ‏21 KB
    method connect terminal.vi ‏36 KB
    Send a TTL pulse.JPG ‏288 KB

    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!

  • Hi!!I want to scale an analogic signal, and I don´t understand very well how interpolated option works in "Scaling and Mapping".

    Can anyone explain to me, the option Interpolated, in the function , "Scaling and Mapping?
    Thank you!!!!!

    When you select Interpolation you then define a table of value pairs; basically the raw data versus actual data.
    For example
    2 5
    4 10
    6 20
    What the VI then does is if the input signal has a value of 3 the Express VI will linearly interpolate between 5 and 10 and will map your value of 3 to 7.5. Again a value of 5 would then be interpolated and mapped to 15.
    Take a look at the attached VI.
    Evan
    National Instruents
    Attachments:
    mapandscale.vi ‏89 KB

  • Problem when combinning PWM signal and Analog signal TOGETHER!

    Hello everybody,
    first of all i have DAQmx 6212, and i need to run a small water pump (9V-16V) which needs to be driven by a PWM signal; also i have a motor (5V-13V) for a water valve that needs to be driven by a analog signal and it has a built in a force feedback potentiometer, i connected on the extremeties of this potentiometer +5V from the DAQmx and used the output voltage from the third extremety as a diagnose value for knowing the position of the motor.
    my VI shows:
    1. is a normal Counter output to create my PWMout signal.
    2. is an analog input i use it as a PWMin to the LabVIEW to diagnose what is happenning in my water pump through the duty cycle and the frequency.
    3. is an analog input from the third extremety of the potentiometer.
    4. is an analog output which i have used as a power supply for the motor valve and i have used an AC/DC amplifier to aplify the signal from the DAQmx and drive the motor, between (3. and 4.) i have made a feedback with some calculations i had a P-controller to know the actual position of the motor valve.
    My Problem:
    when putting 1. and 2. in the same VI alone, i am getting a clean PWM in/out with no problems mentioned;
    also when putting 3. and 4. in the same VI alone i can control the motor valve without any problems;
    but when i put all these 4 together as found in the attached VI, i have a problem that the motor valve is running continously without stopping even if i change the valve position between 0 and 100 %, i should mention that i am seeing a normal PWM out/in signal on my oscilloscope, one other thing that if i delete one of (1. or 2.)  and run the VI the motor valve is working fine without any problems.
    so this my problem, if you can think of any solution please let me know.
    thanks in advance for your help.
    Regards,
    Alosh
    Solved!
    Go to Solution.
    Attachments:
    pwm.out.in.analog.out.in.vi ‏45 KB

    Dear nathand thanks for your reply,
    i have ran the vi again and i am have error no 50103 from the (AI, number 3. )  but it is not displaying the error message, the VI keeps running without any error notification.
    adding to that,  i have tested the VI again today by placing (1. and 2.for the PWM inout) together in one VI and (3. and 4.for the motor valve) in another VI and ran them one after the other, i had another problem. if i turn the motor valve vi, the motor will run smoothly but in the pwm vi i will have a problem in which the AI did not read any value. also doing this vice versa by running the pwm vi first it will work perfect but the motor vi will have problem in reading the measured voltage in AI during this the motor will keep on running without stopping.
    so i think now the problem is in AI (2. and 3.) readings they are interfering on each other but i am not discovering where is my problem...
    Q: does the AI's seems well build or i can do it in an another way so to get over the interfering?
    Regards,
    Alosh

  • Samplerate problem using Analog In and Counter In from a NI 6259 USB. "Counter timeout" setting in DAQmx?!

    Hello,
    I got a fundamental problem with the correlation of the timer settings of the DAQmx driver in DIAdem DAQ. I dont know where the problem is located exactly but maybe someone can help me if I explain what happens:
    In my configuration I use some analog inputs from a USB 6259 with 20kHz samplerate and two counter inputs for frequency measuring via DAQmx in DIAdem DAQ.
    There has to be an extra DAQin block for the analog inputs and the counter inputs with also an extra "Clock"-block for each of them. The clock of the analog inputs runs with 20kHz hardware clock and the other one with 10Hz software clock because the hardware clock mode is not allowed or supported.
    My problem is the display refresh rate in VIEW. If the counter signal has no input (because the measured system is not active) the display seems to wait for any input and doesnt refresh the analog values on screen. If the system is active and a rectangle signal is seen by the counter in, the display refresh rate raises and the frequency value is displayed more or less accurate. Has that something to do with the counter timeout setting in the DAQin driver options block (marked in the attached image)? If i decrease the timeout, the display refresh rate gets better but not as good as without using the counter inputs in my DAQ diagram. I think the counter input is not as easy to handle as the usual analog inputs... I only want to see the measured frequency on the display during the measurement without getting any influence on the analog input channels and their displaying.
    The other problem is the display and the measurement of the frequency itself. If i check the function of the counter input in the Meas. & Automation Explorer the frequency is display correct without any dropouts or something like that. The signal I measure in DIAdem on the other side looks quite bad because there are spikes of some MHz and even more although the measured range is between 20 and 80Hz!
    Has anybody made similar experiences?
    Regards
    S. Zimmer
    Attachments:
    probs.png ‏112 KB

    Hi there,
    it seems that german is your mothertongue, so I'll reply on german.
    Digitale Eingänge müssen Software getaktet werden, da nur analoge Eingänge Hardware-Takt Unterstützung haben!
    Sie können den Hardware-Takt nur mit analogen Eingängen einsetzen, die, von einem Timer gesteuert, gepuffert Werte einlesen können. Digitale Größen verarbeitet der Hardware-Takt nicht.
    Mit dem Hardware-Takt erreichen Sie sehr hohe Abtastraten. DIAdem überträgt die gewünschte Rate und die Kanalliste auf die Karte und startet die Messung. Die Hardware erfasst die Daten selbstständig und sammelt die Daten. Der PC ist nur für den Abtransport und die Weiterverarbeitung verantwortlich.[...]
    Da digitale Signale nicht im Hardware-Takt erfasst werden können, müssen diese Signale parallel in Software-Takten ermittelt werden. Dies kann zu zeitlichen Verschiebungen führen, weil sowohl beim Start der Messung als auch während der Messung keine Synchronisierung der Timer im PC und im Messgerät erfolgen kann. Da zwei Timer nie ganz genau gleichzeitig gestartet werden und auch nie ganz genau gleich schnell laufen, stimmen die Zeiten in den Zeitkanälen nach der Messung nicht genau überein. Üblicherweise betragen die Abweichungen einige Millisekunden.[...]
    Weiters hab ich mal n Versuchsaufbau für die Frequenzmessung gemacht. Ich konnte problemlos Frequenzen messen...
    Am besten du schilderst kurz den Aufbau deiner Messung, was du messen möchtest und wie du den Max konfiguriert hast.
    Mfg Markus

  • Recording quadrature encoder and AI signals simultaneo​usly and generating output TTL signals in one VI

    I want to record simultaneously encoder, pressure and other AI signals and output a TTL signal for every other pressure signal. I have two VIs: One is to record all signals and the other is to generate TTL signals.
    1. Since I'm new to Labview, I would like to double check with experts that if my VI (attachment 1) did what I expect. I would like to have DAQ box read and write encoder signals and pressure signals at the same time so I can plot PV diagram.
    2. During acquisition, some data points are usually missed, shown in attachment 2. Is there any way to solve it?
    3. I tried to combine two VIs but it never work (attachment 3). Can anyone give me any suggestions?
    PS. Labview 9.0 and NI USB-6216 are used.
    Dummy signals are 30Hz sine waves for pressure and 2 TTL signals for encoder A and B at 5kHz.
    Thank you!

    Thank you for your help, Peter!
    I attached the wrong file for attachment 1. The initial code for measurement is attached here.
    The sampling rate is 20000 and the sample mode is continuous.
    For missing data points, it improved when I add "wait until next ms multiple" in while loop.
    Follow the example you gave me, I'm able to generate TTL signals in one vi, attachment 2. Could you please check if it's correct?
    It looked fine with simulated signals and hope it will go well with real engine tests.
    I have two more questions:
    1. Does the input number for wait until next ms multiple should always be the same as "samples per channel" in sample clock?
    2. How will the value of "samples per channel" in sample clock affect data acquisition? I tried 1000 and 10 but didn't see any difference between these two.
    Thanks a lot.
    Attachments:
    recording VI.png ‏332 KB
    AI+CI+CO.png ‏72 KB

  • Log an analog channel and counter period channel to hard disk simultaneously

    We are in a rush, and need to log one analog channel and one counter period measurement to disk simultaneoulsy using card controlled timing and set # of samples. Should be easy, but can't figure it out. Labview 6.1 we have & DAQ 6013E we just bought.

    Greetings,
    With regards to logging analog input data to file, I would suggest that you examine the examples available in the following location:
    Examples >> Hardware Input and Output >> DAQ >> Analog Input >> Stream to Disk
    Because you are interested in a finite number of samples, you should look at Acq N Scans to File (wdt).vi.
    With regards to logging period measurement data to file, I would suggest that you examine the following example:
    Examples >> Hardware Input and Output >> DAQ >> Counters >> DAQ-STC >> Measure Buffered Period (DAQ-STC).vi
    This example does not log to file, but it does demonstrate how to program a buffered period measurement. You will need to add the logging functionality to this VI as demonstrated in Analog Input >> Stre
    am to Disk.
    Good luck with your application.
    Spencer S.

  • Filtering an analog signal

    i am taking voltage readings as analog signals and was wondering do i need to filter the signals that come from the daq assistant. i tried smoothing the signals but this did not match the values that i should be getting is there any other filter signal that would be suitable or do i need to filter my analog signals at all as they are reasonably accurate as they are but was wondering would filtering improve the accuracy that much

    Hey Guys!
    AC-class signals, such as vibration, often require antialiasing filters. Like standard noise filters, the antialiasing filter is lowpass; however, it requires a very steep cutoff rate, so it almost completely removes all signal frequencies that are higher than the input bandwidth of the device. If the signals were not removed, they would erroneously appear as signals within the input bandwidth of the device.
    But not all NI DAQ devices will have antialiasing filters built in. Devices designed specifically for AC-class signal measurement – the NI 455x, NI 445x, and NI 447x dynamic signal acquisition (DSA) devices, the NI 61xx simultaneous-sampling multifunction I/O devices, and the SCXI-1141 module have built-in antialiasing filters.
    Ultimately, anti-aliasing must be carried out in hardware. But the time you have digitised your signal, it is too late to remove aliased signals. However, general noise removal filters can be implimented post-acquisition (i.e. in software).
    Have you looked at the Filter Expres VI? Or, if that is not flexible enough, have a look at the low level filter vis, which can been found under the signal processing pallette. They are available in either array manipulation or point-by-point flavours.
    You may not require them, but for advanced filtering, you might want to have a look at the "sound and vibration" toolkit.
    http://sine.ni.com/nips/cds/view/p/lang/en/nid/12050
    Best wishes,
    Rich R
    Applications Engineer
    National Instruments UK & Ireland

  • Can we acquire the Analog input and Digital Input at

    Can we acquire the Analog input and Digital Input at
    the same time? My sensor data include Analog and
    digital signals.

    Hi Chenchen,
    It usually simplifies things greatly if you use analog inputs to monitor both the analog signals AND the digital signals.
    If you abosulutely HAVE to use digital lines, then the answer is, DEPENDS....
    With the correct hardware and depending on how fast you want to collect data and how closely the measurements have to be syncronized in time, it can be done.
    But first, concider using analog inputs to monitor all signals.
    If you need to move forward with both analog and digital acquisitions, then post a new quesion and give us details on the hardware you are using and the other details we will need to advise you.
    Trying to help,
    Ben
    Ben Rayner
    Certified LabVIEW Developer
    www.DSAutomation.com
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Sampling Analogic Signal cRIO 9201

    Hallo,
    I succed to achive analogic signal and to create fpga and host program for cRIO 9004 and Analogic input module RIO9201!
    I achive very well a 1 Hz signal but when I  increase frequency of my signal I lose in resolution!
    the sampling rate of module is 800KS/s and I don't understand if it is a problem of  time in my software!
    in the example of NI web site it isn't clear!
    Thank you
    Marco
    Attachments:
    provaanalogico.zip ‏98 KB

    Thank you, Alessio!
    I call Nationale Support but they still recall me!
    I follow the step in Tutorial High Speed Continuous Buffered Data Acquisition.
    ...........and there is a problem with FIFO,  I mean!
    because the the led empy is always turn on and the FIFO read doesn't work!
    I know that four value enter into FIFO write but FIFO read doesn't read them!
    I believe the problem is here!
    could you help me another time?
    Thank you

  • Analog Signal to Digital a Primer

    Many users have analog material sitting around, and they would like to get it into digital form, so that it can be edited. As this material is below SD (Standard Definition) quality, I will address the methods for digitizing it, so that it can be best edited in a DV Project. The output can be a DVD-Video, or other format, depending on what one wishes.
    The process of getting this analog material into a digital form, is referred to as Capturing, and it is digitizing the analog material and writing it to a file, that can be edited.
    One will need some method of getting the analog signals into digital form, and for connecting the analog output from their analog playback device to the computer. Though the analog signal could come from all sorts of devices, I’ll use a VHS tape deck in this example.
    Since a VHS tape deck does not have an A-D (Analog to Digital) processor, and also does not have a a digital signal Out, one needs something in between it, and the computer. That “something” serves two needs: mechanical connection of cables and the ability to convert the analog to digital for use in an NLE (Non Linear Editor). That “something” can be a digital video camera with pass-through capabilities, a device, called a “bridge,” or a capture card inserted into a bus slot in the computer. All three have pluses and minuses.
    The first two methods rely on one having a FireWire connection on the computer and will use the Capture module in the NLE software.
    The digital video camera route is good, as one already owns it. Having one with pass-through capabilities is getting more difficult. The camera also has to have FireWire (FW, IEEE-1394a, or iLink) output, and the computer must have a matching connection.
    An A-D bridge will do the same thing: allow one to connect the analog cables to one end/side, process the analog signals to digital and then output via FW to the computer. There are various such bridges available and two of the most often recommended makes/models are: the ADS-Pryo, and theCanopus/Grass Valley ADVC-110. Products, like the Dazzle lineup, just do not seem to work, or work well. I would avoid such.
    A dedicated capture card performs the same task, with one exception. The card will mount into an empty PCI slot on the MoBo, and have inputs for the analog cables. The card will have chips on it, to digitize the analog signals and feed these to the computer via the PCI slot. These do not connect via FW, but have one drawback: they must, in virtually every instance, use additional software to do the actual Capture, as most NLE’s cannot directly see and work with them. Some of the included software Capture programs are better, than others. One common issue with many of these cards is a loss of sync, between the Audio and the Video. This is usually static OOS (Out Of Sync), in that it is usually off by a fixed number of frames, and does not drift over time. This can be fixed in the NLE, but is extra work. This ARTICLE will give you tips on correcting OOS.
    Now, we are ready to begin the Capture, as our equipment and cables are all ready to go. We have a big decision in front of us - what format/CODEC do we use to Capture our digital files? Since we are doing an SD Project with non-HD (High Def) material, there is one fine choice: DV-AVI Type II w/ 48KHz 16-bit PCM/WAV Audio, using the DV/DVC CODEC. These files will be approximately 13GB / hour of Duration. Storage will need to be considered. These files are also I-frame, meaning that each “Frame” is rendered and available, so that frame-accurate editing is possible. The NLE will not need to do any processing, or conversion of these files, as even the Audio is ready for DVD-Video. Note: there will still be Conforming and the generation of PEK (Waveform Display) files, but the NLE will be able to do this quickly and efficiently.
    Using AVI Uncompressed will get you nothing that you can see, other than larger files. Do NOT use any compressed format/CODEC, like MPEG-2, WMV, MOV, etc., as these will loose data from an already inferior source, and will then need conversion to be used, either with a stand-alone conversion program, or internally by the NLE. You loose quality and then have more work to be done. Do not let the temptation of smaller files lure you into using anything but DV-AVI Type II, and just accommodate the larger file sizes.
    With the file format/CODEC decision made, the cables and devices hooked up, we’re ready to start the Capture. The exact operation will depend on what our equipment choice has been. See above for talk about additional Capture software, if one uses a capture card. Otherwise, we should be able to use the Capture module of our NLE. The first issue is that we will NOT have Device Control, as we would with a Capture from a miniDV tape-based digital camera, where we can control the mechanical aspects of the camera, during this process. As our VHS deck is hooked up to the A-D bridge, or digital camera w/ pass-through, via analog cables, our control signals cannot be sent to it. One would cue up the tape in the VHS deck, and then choose Record/Capture in the NLE’s Capture module, starting the Capture. Instantly, they would hit Play on the VHS deck, or via that deck’s remote control. This is easier the second time that one does it. I sit with the mouse in my right hand, poised over the Record/Capture button, and the VHS deck’s remote in my left hand, finger hovering over Play. It’s then a 1 - 2 push, and all starts. One can stop the Capture, if an unwanted section of tape comes up. The Capture module of the NLE will direct us on how to proceed from there, should more Captures be wanted. Some will just start up at a later point, and write an additional file for that portion of the tape, but some might require that one basically sets up a new Capture session One should investigate just what their NLE will require for doing multiple Capture sessions from one VHS tape.
    When done, one closes the Capture module, and then navigates to the location that these DV-AVI Type II files have been stored in, and Imports them into the Project. This differs slightly from doing the Capture from a miniDV tape camera, as those Captured files are already in the Project.
    Edit away, and Export/Share to the necessary output settings, file type and CODEC.
    What about those VHS - DVD decks, the ones that will burn a DVD directly from the VHS tape? They seem so simple to use, and for the most part are. However, those DVD-Video discs, contain pretty heavily-compressed MPEG-2 AV streams. These MPEG-2's, besides being compressed, are in aGOP structure and are muxed (Multiplexed into one file with both a Video & Audio stream), plus there is often some Menus and navigation in the first VOB, the main container components of a DVD-Video. Many NLE’s can Import the VOB’s, and basically rip the MPEG-2 out of them, but that first VOB can be highly problematic, due to the way that most of those decks do the Menus and navigation. It is seldom 100% DVD-compliant by the DVD-specs. This can be a major problem. This ARTICLE will give you some background and tips on DVD VOB's.
    Those dual-decks are good for doing one thing, regarding the DVD’s that they produce - provide one with an archival DVD-Video of the VHS tape, and not to be edited. However, the VHS side of these works well with an A-D bridge, just like a pure VHS deck does. I would strongly recommend that one does NOT use the DVD-Video portion of these, if editing will be desired. They cause many more problems, than they solve - just use them for an “archive” copy of the tape to a DVD-Video, for playback on a computer via DVD software or a set-top player, hooked to a TV.
    What about film? Well, film is obviously analog, and one needs to digitize this to edit on the computer. The process of this digitizing is referred to as telecineing the film. While one can buy equipment to do this, it is expensive, and involves a lot of setup and testing to get the job done. There are many service bureaus, that offer telecining. Some are better than others. The main considerations are: care in handling of fragile film, how the telecining is done, i.e. frame by frame w/ a liquid gate, or just by straight projection, and then output format for the digitized files. Some of these services will offer a DVD-Video disc. Do not be tempted to do this. See above. Others will offer to write these digitized files to a miniDV tape, and this is just fine. One does then need a miniDV camera, or miniDV tape deck, to then do the Capture from, but the quality and editability will be preserved. The final delivery format would be to put these DV-AVI Type II files onto an external HDD. This saves one from having to do the Capture from miniDV tape, having to have a miniDV camera, or miniDV deck, and only Importing of those files would be required to get them into the Project. Many of these service bureaus will either sell you the external, or use one provided to them. Check out specifications for things like format of the external. FAT-32 will limit the file sizes to ~ 4GB max, and NTSF will have no such limitations. However, if the service bureau is on Mac, and you’re on the PC, their Mac’s can ONLY see FAT-32 HDD’s. Talk this over with the service bureau first, so that there are no surprises later on.
    Hope that this helps,
    Hunt
    PS - also see this FAQ Entry for more detail.

    the_wine_snob wrote:
     Products, like the Dazzle lineup, just do not seem to work, or work well. I would avoid such.
    Although I now have a Canopus ADVC300 I previously used a Magix 'Movies on DVD' USB device. I found the results from this to be particularly good and, to my ageing eyes, I see very little quality difference.
    I think this is because Magix use their proprietary high quality codec (from their Pro products) to capture the footage. Like DV-AVI it runs around 10GB+ per hour. This can then, very simply, be exported to DV-AVI Type 2 for use in PRE. Note that there are some sound synchronisation issues with the 'out of the box' settings - but the fix is quick and I posted details to the Magix forum.
    Would I revert if I could return my ADVC300 bridge? Probably not - the firewire connection and the PC seeing the box as a camcorder adds to ease of use. In fact I am pleased to have both. There are some things Magix does better than PRE7 (batch exporting each scene as an individual DV-AVI file being just one) and it has smart-rendering which is handy for quick clip splitting/exporting.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children

  • Convert analog signals into I2C

    hi all,
     I am using NI-6351 DAQ unit.I want to capture  two analog signal and I2S data from the hardware.
     Is it possible to do this?

    Depends upon what computer you have.  You'll need a player with an output line of some sort, then a converter to go from analog to digital (e.g. http://store.griffintechnology.com/catalogsearch/result/?q=imic). then recording software (free Audacity).  Time.
    Those are the basics. For higher quality you might want a soundcard that has RCA input and various software packages for cleaning up the audio.
    How may cassettes? it may be cheaper to just buy the CD.  There are also commercial services that will transfer cassettes.  If you're just talking one or two I would go that route because you can spend a lot of time doing this and that will increase sharply if you haven't done this kind of thing before.

  • Unclearity about analog signals

    Greetings,
    I am trying to create a small DAQ system that digitalizes a analog signal and displays the waveform and spectral analysis. I know that the analog waveform component receives and array to plot the waveform. However I am having doubts about how many samples I need to collect to create the exact graphs that is annexed to this post.
    Could anyone give me some help please?
    Thanks
    Attachments:
    InverterWaveform.PNG ‏8 KB
    SpectralInverter.PNG ‏8 KB

     Recently I tried to made this program to aquire the analog data from a serial port based device. I am trying to use the waveform graph from the right in my program instead of the graph from the left. 
    I do know that I need to create an array to store the aquired elements and connect to the wave form graph.
    Question is: What is the correct way to program that?
    My serial device is programmed to receive an character and return a 0-255 number that corresponds to the aquired value.
    Message Edited by Borges on 05-13-2009 02:31 PM
    Attachments:
    sample1.PNG ‏31 KB
    sample2.PNG ‏28 KB

  • How to make a synchronous acquisition of two analog signals with a one channel DAQ ?

    Hi !
    It is the first time I use Labview. I have just made some easy VIs, and now, I do not know how to deal with my problem...
    My problem : I have only one acquisition card (DAQ Ni 6034E) and I would like
    to acquire simultaneously two analog signals. It seems to be possible, in a quasi-synchronous acquisition if the card acquires one point of the first signal, then the first point of the second signal, then the second of the first signal, and so on ... I thougth that I could made two sequencies with a VI of data acquisition in each sequency, with the AI MULT PT. But with this, I think that I will lose the precision of the sampling frequency. And I have to know the sampling fre
    quency ...
    Thanks for your help !
    Carline

    Hi Carline,
    A PCI-6034E is a low-cost board, which only has one Analog to Digital Converter (ADC).
    With only one ADC you can't acquire different channels at the same time. That's why you find a multiplexer before the ADC in this type of board. This enables you to acquire multi-channels at the same rate quasi simultaneously. The samples of the different channels will be interleaved as it is explained in the following knowledge base :
    - http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/9379ea091c264b7c86256bc90082ca5d?OpenDocument.
    With this method, the sampling frequency is the same for all channels. The sampling frequency of one channel is determined with the "scan rate" parameter. There is only a small delay between the samples
    of each channels. When you perform an interval scanning acquisition, this delay depends on the "sample rate" that you specify. To have more informations about this terminology, please refer to the following KBs :
    - http://digital.ni.com/public.nsf/websearch/4D1435DF82EF494186256D8A006DD6D4?OpenDocument.
    - http://digital.ni.com/public.nsf/websearch/4D1435DF82EF494186256D8A006DD6D4?OpenDocument.
    To easily perform such a multi-channels analog acquisition, you can use the VI named "AI Acquire Waveforms.vi". You also can use an example provided with LabVIEW. You just have to browse the NI Example Finder in "Harware Input & output >> Traditional NI-DAQ >> General".
    Best regards,
    Benjamin
    National Instruments France

  • Link digital and analog signal?

    Hi, I am trying to "link" a couple of analog signals to a dital signal.
    I have a torque transducer with a integral quadrature encoder.  I am also monitoring a couple of other analog signals.
    The 3 analog signals are being monitored through simultaneou sampling: 1Mhz for ~1sec
    In these analog signals i am capturing certain events (peaks, etc).
    What I would like to do is tie these events to the encoder which is tracking "angle" (rotational position).
    For example, I determine that the peak torque occured at index 579,397 of the 1,000,000 element array.  What was the angle of the encoder at index 579,397 ????
    I am using 7.1
    Thanks for the help!
    Ryan
    Ryan
    LV 7.1

    Ryan,
    Because we share the same name, I've created an example for you.
    Basically,  we're using the analog input sample clock to latch the
    position of the encoder (connected to the counter). In a finite
    acquisition, the exact number of samples you request are generated on
    the sample clock. Since we are starting the counter task first, we'll
    be waiting on the analog input sample clock to start. This way, the two
    tasks will be exactly synchronized. Please let me know if you have any
    additional questions.
    Good luck!
    Ryan Verret
    Product Marketing Engineer
    Signal Generators
    National Instruments
    Attachments:
    AI_Encoder_Sync.vi ‏99 KB

Maybe you are looking for

  • Screen Flicker on one side

    Hi, I use an HP  Mini 210-1099.TU. It has served me very well so far but since a few days the right side of the screen doesnt stop fickering. I have tried system restore to an earlier date and taken all steps as advised by 'Windows Help' regarding br

  • HT204406 Missing playlist

    I turned off musicmatch on my Iphone and when I turned it back on all of. G playlists were gone. My playlists are fine on iPad and Mac book pro.

  • 2012r2 iSCSI Cluster SAS MPIO

    Hi, we are building a iSCSI failover cluster for Hyper-V and vmWare. We use 3 JBODS directly connected to 2 nodes with dual-SAS. There will be a tiered StorrageSpace with Enclosure-Awarenes. My question now is, which SAS-HDD MPIO policy do i have to

  • Acrobat isn't installed

    the application manager shows acrobat x pro as installed, but it's actually not on my laptop! and i need it!!! what do i do?

  • OWB packages runtime dumps

    Hi everyone, I would like to know how to prevent OWB package from writing dumps to $ORACLE_HOME/admin/.../udump directory. When I run a package from OEM it sometimes writes quite a large dump file like <DBname>ora99999.trc We have problem with space