Graphing two analog signals vs. a third with xy plot

I am trying to plot two analog signals on the y
axis vs. an analog signal on the x axis on an xy plot. If anyone knows how to do this or has
an example vi showing it I would appreciate it.

I think the best starting point for you is the XY graph.vi example. You will locate it in examples\general\graphs\gengraph.llb directory. The example that most probably matches your needs is '(X and Y arrays) Multi Plot' graph.
Hope it helps
Roberto
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos?

Similar Messages

  • 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

  • How do I XY graph two different signals each with its own y-axis on the same graph?

    I have wired an n-ch, 1 sample VI to an xy graph express VI.  I have two y-axis scales, but I only see a plot of one of the signals.  Can anyone help me understand what I am doing wrong, and how to do it correctly?  The VI as a whole may look ugly, but the flow of the signal from the xy-graph is obvious (but not working the way I want it to...). My sub-VI is attached.  Thanks in advance, Christian
    Attachments:
    Thickness Width Distance acquisition write to file.vi ‏122 KB

    Hi Christian,
    That express VI requires that you input an X data set for each plot.
    If you must use that express VI, then for your program you need to insert a "build array" function, with two (or more) inputs, in line with the express VI's "X input", and wire your X data array to each of the build array function's inputs - see the example I've attached.
    Personaly, I wouldn't use the express VI at all - it really isn't difficult to manipulate your data into the right format for the XY graph using simple functions - see the second example I've attached.
    Mark H.
    P.S. Gotta be worth about 6 stars I reckon!  
    Attachments:
    Multi XY Plot using Express VI.vi ‏62 KB
    Multi XY Plot using Basic Functions.vi ‏20 KB

  • How to send out two analog signals

    hi
    I'm running Labview 10.0 with a PXI controller 8196 with with an M-series DAQ board 6289 which has 4 analog out ports. What I have done is create a statemachine which controls a multi LED board (57 LEDs arranged in 7 concentric circles, with a centre LED). The state machine moves between various states such as Fixation point on, Fixation point off, Target on, Target off. At the moment I have one Analog out port which outputs a voltage to tell me which state I am in, but I want to know how to configure a second port to say which LED I am turning on. I am controlling the LED with the digital out, and converting a binary to a digital code so I was just going to convert that digital code (by diving it by some factor) and write out that factor to a second port. I've read I can not confiure two Analog out ports on the same board, but instead I have to cluster the outputs together, I'm just not sure now to do that. I've attached my main vi as well as the two subvi's that the main vi calls. I've looked at some of the other threads and the suggestion was to close one port to open the other, that's just not possible in my case as I need to keep both channels open throughout the whole program as the analog out is constantly changing. I'm also recording from up to 25 analog channels at the same time.
    Thanks in advance
    NB. I could only add two of the sub vi's that the main program calls, so the main vi will not work, so if need be I can post the other sub vi in an additional post.
    Attachments:
    VisDisplay_v1.vi ‏121 KB
    Build Table_v3.vi ‏45 KB
    LEDon.vi ‏24 KB

    Hi
    For one of the channels it is a stepping voltage which changes between +/- 5 volts depending of which state of the statemachine the program is in, so it is not just a constant voltage through out the whole task. On the second channel I want to out put a single voltage that would signify which LED is turning on, that would just be a constant voltage, but it would not be the same voltage on both channels. I'm just about to try something else and hopefully that will work.
    Thanks
    Sam

  • Compare two analog signals.

    How do I compare an analog signal to another analog signal to see which signal has a higher value? I want to display the result on the front panel using an LED indicator. 
    Solved!
    Go to Solution.

    Sorry about the lack of inforomation.
    I have photodiode voltage four output signals go into the SCC-68 module. The SCC-68 module is hooked up to the PCI 6224 M DAQ Card.
    The signals have almost no noise to them, and I am trying to compare the value (voltage) of two analog inputs to see which value is higher. I want to compare the analog inputs of QPD 1.1 & QPD 1.2 from the VI below.
    Attachments:
    QPD.vi ‏158 KB

  • How to use DAQ Assistant to display two analog channels in a XY Graph

    Hi,
    I am new to LabVIEW. I have been assigned a project in which i have to display two analog signals from an analog potentiostat i.e. voltage and current (also a voltage signal) on a graph using labview. I am using a myDAQ device to acquire these analog signals and I am using labview 2013 to display these signals on a graph. I am using DAQ assistant to configure these signals. Rightnow I have separate graphs for each channel. However, I want a single XY graph to display one voltage as a function of the other i.e. I want to have voltage on the X-axis and current output on the Y axis. Any kind of help is greatly appreciated.
    I have attached a screenshot of the VI. that I have made.
    Regards,
    Max
    Attachments:
    New Microsoft Word Document (2).docx ‏32 KB

    Thanks for the quick response. I was able to make a X-Y graph. However, I can only see a dot floating around. It's not drawing anything. I want to see it making a plot as it collects data. Also, I want to see the complete waveform formed when I stop the VI.
    Thanks,
    Max

  • Why i not has two analog outputs at same time ?

    Hi, i am try to output two analog signal, which is trangle and sine waveform, with my pci 6036E. i code with Labview 7.1 and the vi is in single loop with both triangle and sine wave analog output to AO0 and AO1.
    someguy can help me to figure out is there any problem in my vi or is there any other way.
    thank you very much in advance.
    scott

    Hi All-
    Dennis is exactly correct- only a single analog output (or input) task may be run at once on any DAQ board.  To add one small bit of advice, CUHK, you will also need to choose the correct polymorphic instance of DAQmx Write to reflect "N Chan N Samples" as shown here:
    You will also need to build an array of waveforms using the Build Array function.  Hopefully this helps-
    Message Edited by Tom W. on 10-17-2005 01:08 PM
    Tom W
    National Instruments
    Attachments:
    nchan_nsamp.JPG ‏25 KB

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

  • Error 200560 while generating two AO signal

    Hello,
    I am trying to send two Analog signals out and I keep getting the error 200560 at 'wait until done' vi.
    I was wondering if there is any solutions to fix this problem.
    btw the vi is attached.
    Thanks,
    Pooya
    Solved!
    Go to Solution.
    Attachments:
    2AOsignal.vi ‏27 KB

    No problem. A kudo would be nice if you feel I deserve it

  • Input analog signal with trig signal on DAQPad6020​E

    I would like to record an input analog signal in continous with trig signal on falling edge. The frequency trig is 3.87hz (258ms)with 5V level. In fact I want to record the input analog signal every 258ms.
    I use a DAQPad6020E and the VIs "AI-Config", "AI-Start" and "AI-Read" with a "digital A" trigger type (PFI0/TRIG1 on block connectors) and record datas in a file.
    I use the following configuration:
    - sampling rate= 100000 S/s (max rate DAQPad6020E)
    - minimum scan= 25200 pts
    When I read the datas I notice that the gap between the first point of the first acquisition and the first point of the second acquisition is 1016ms and not 258ms like the trig.
    I change the configuration:
    - sampling rate= 10000 S/s
    - minimum scan= 2520 pts
    The gap is now 516ms (it correspond to two trig)
    An other configuration:
    - sampling rate= 155 S/s
    - minimum scan= 40 pts
    The gap is 516ms (it correspond to two trig)
    I use also the VI "AI-Wave" but the results are the same.
    I don't understand what happend. Maybe it's due to the card limits ?
    Thank you for your answer.

    Hello,
    A trigger is an external stimulus that initiates one or more instrument functions. Trigger stimuli include a front panel button, an external input voltage pulse, or a bus trigger command. The trigger may also be derived from attributes of the actual signal to be acquired, such as the level and slope of the signal.
    A trigger is not a clock.
    If you want acquire with a specific clock, I advise you to use external clock. Instead of using your signal as trigger, use it as external clock.
    Have a look at "Cont Acq & Graph Ext Scan Clk - D trig.vi" example. This example is provided with LabVIEW (Help >> Example Finder).
    Here a tutorial about external clock acquisition :
    http://zone.ni.com/devzone/conceptd.nsf/webmain/7d​8eaea1d87cfb2686256802007b8c52?OpenDocument
    Regards,
    Isabelle
    Ingénieur d'applications
    National Instruments France

  • How to generate two different analog signal in two different VIs

    I'm using a PCIe-6321 board and a SCB-68 connector block. As it has two analog output I would like to use one of these output in one Vi to generate a square waveform and the other output in another VI to generate a sine waveform. Each VI work perfectly separatly but if I run one then the other, the second one doesn't send any signal. Since I don't want to merge the two VIs (It's more convenient to operate them separatly), how can I figure out to make them work together (sometimes).
    Solved!
    Go to Solution.

    I assume you get error -50103 (resource is reserved) at either on vi.
    It's not possible to run two AO channels independetly from each other with different VIs since both Tasks are trying to request the same timing engine at the DAQ device.
    Christian

  • How to synchroniz​e two analog output with USB-6353 sharing a trigger

    I'm have the need to synchronize two analog output on the same device (USB 6353) sharing a trigger signal on PFI0.
    The programming environement is Visual C++ , and the code I wrote is as following:
    DAQmxCreateTask ("", &Ao0TaskHandle);  // is the task handle for the analog output Ao0
    DAQmxCreateVoltageChan((Ao0taskHandle,"Dev1/Ao0","​",-5.0,5.0,DAQmx_Val_Volts,NULL);
    DAQmxCfgSampClkTiming(Ao0taskHandle,5000.0,DAQmx_V​al_Rising,DAQmx_Val_ContSamps,1000);
    DAQmxCfgDigEdgeStartTrig(Ao0taskHandle,"/Dev1/PFI0​",DAQmx_Val_Rising);
    DAQmxCreateTask ("", &Ao1TaskHandle);  // is the task handle for the analog output Ao1
    DAQmxCreateVoltageChan((Ao1taskHandle,"Dev1/Ao1","​",-5.0,5.0,DAQmx_Val_Volts,NULL);
    DAQmxCfgSampClkTiming(Ao1taskHandle,5000.0,DAQmx_V​al_Rising,DAQmx_Val_ContSamps,1000);
    DAQmxCfgDigEdgeStartTrig(Ao1taskHandle,"/Dev1/PFI0​",DAQmx_Val_Rising);
    DAQmxWriteAnalgF64(Ao0taskHandle,1000,FALSE,10.0,D​AQmx_Val_GroupByChannel,AOdata,NULL,NULL);  AOdata is a buffer containing a sinwave
    DAQmxWriteAnalgF64(Ao1taskHandle,1000,FALSE,10.0,D​AQmx_Val_GroupByChannel,AOdata,NULL,NULL);
    DAQmxStartTask(Ao0taskHandle);
    DAQmxStartTask(Ao1taskHandle);
    What happen as result of the code is that only the Ao0 channel get the sinwave output , but not the Ao1 . It seems the two channels are not synchronized.
    What is wrong in my code?
    Please any help non referred to a LabView soloution , first because I'm not a LavView programmder and secondly the project impose C++ as the unique environement.
    Thanks
    Enky

    It will depend on what you are programming the NI 5112 device with.
    If you are using LabVIEW, you can use the example program attached below. In it, it will show you how this is done.
    If you are using VB, VC++ or CVI, you can look at one of the NI 5112 shipping examples that are installed on your computer. These are located in the VXIPNP folder. For example, the VC++ example would be located here:
    C:\VXIpnp\WinNT\NISCOPE\Examples\c\MStudioC++\5112​Sync
    These examples will show you how to synchronize the two digitizers.
    Let me know if you have any questions about these examples.
    Brian
    Attachments:
    Multiple_NI_PXI-5112_Synchronization_Demo.llb ‏151 KB

  • I am trying to install windows 7 to my Macbook pro with bootcamp but every time I open bootcamp I am only able to check the first two boxes but not the third one saying "install or remove Windows 7", any solutions ?

    Hi, I am trying to install Windows on my MacBook Pro with bootcamp. Every time I open bootcamp I am only able to check the first two boxes but not the third one saying "install or remove Windows 7". I did this before using the same computer and the same hard drive so I am not sure why this is happening now but did´t happen then. Any solutions ?

    Was your Bootcamp info.plist manipulated to change any options?

  • Is there a VI availible that will allow one to interact with an analog signal

    Hello all,
     I am new to the sight and look forward to participating. I have a project that I’m working on and I would like to ask for your thoughts and direction if you’re willing. I have a few weeks left before completing an electronics program degree and Labview is one of the classes. The project I have chosen is to illustrate the differences between a micro controlled system and Labview controlled environment. I will be  acquiring a signal through a ultra sonic distance sensor. The analog signal will be produced after which  acquired  through a SCB – 68 connector block and converted using the pci-mio-16E. The sensor operates at 40 kHz emitting a 5v pulse (burst) then falling to gnd for a short period followed by a 5v rise and staying high for a period of time waiting for the return of the frequency. This time period represents 3 inches to 27 ft in distance.  I would like to interact with this signal through the distance period (portion) and output a string displaying a numeric value of the distance on the front panel obtained from an array built from different periods of the signal.  I am not clear on what Labview function offers this type of control.  I am hopeful in utilizing a vi or some type of trigger that allows me to build an array produced by some math functions.  Any help would be appreciated.
    Thank you, dhitch

    First thank you for your response, I will have an opportunity to make a capture tomorrow in class.  I believe I have run across the waveform measurement VI in my searches and am sure it’s a very good choice. The trigger VI you suggest, going by the name, should be my ticket. Would you imagine a delay or decreasing time after the capture, allowing the trigger VI time to respond to an output configuration be required?
    If I remember correctly the sampling rate capabilities are 500K samples/ second with 12 bits of resolution and as I say that it seems some of the capabilities rely on the processing speed of the computer. I guess I will kick the tires tomorrow hey.  There are 2 class periods remaining to finish our projects @ 2 hrs / class and my anxiety is a bit high. Wish me luck and thank you so much.
    dhitch

  • Synchronize Motion velocity with DAQ analog signal

    Hi Everybody
    I am acquiring analog signals using hw trigger and external clock with C and A signals of a 1024 counts TTL encoder.
    Now I want to measure the rotation speed of a shaft. I have a Flex-Motion board with which I want to read the velocity (or the same encoder), but I don't know how to synchronize each scan of the analog signals with the velocity signal for that instant.
    I can´t use RTSI bus because my Motion board doesn´t have RTSI connector.
    Software and hardware:
    LabView 6i (v. 6.0.1.b3)
    DAQ-Board: PCI-6023E, NI-DAQ 6.8.1, MAX 2.0
    Motion board: PCI-FlexMotion-6C, NI-FlexMotion 5.0.1
    Thanks a lot for your help.

    Hi chia,
    with the hardware configuration that you have, I think it´s not posible to synchronize both boards due to you cannot share the same clock source (not RTSI on the motion board).
    http://zone.ni.com/devzone/conceptd.nsf/2d17d611efb58b22862567a9006ffe76/66e6f4ee7e0848d686256a55006...
    Sorry for the delay :-)
    Regards
    DiegoM.

Maybe you are looking for