Subtracting the two waveforms, an acquired using DAQ voltage analog input and the other being generated internally

Hello NOR community,

I'm new to LabView and was hoping someone might be able to help with a question I have. Currently, I use a data acquisition unit to sample external sine and I would like to change this signal by adding another signal that I could control using the front panel. Whenever I try just connect entry with something like the waveform sinusoidal vi and put a subtraction sign between them it doesn't work (I get an empty waveform graph). To work around this problem, I've resorted to a signal (via an analog output) and followed by reading the signal to data acquisition, and then finally I add the two together. It works this way, but he wastes two channels and I imagine that there is a better way. I enclose my VI, and I have marked the location of interest "where signals get subtracted ', which is currently displayed using two entries.

Thank you

Leo

You must ensure that your sampling frequency and number of samples is the same.  It seems that your sample (with default values) rate is the same (1 kHz), but your number of samples is different (100 to 1000 the acquisition wave vs simulation).

Tags: NI Software

Similar Questions

  • How to synchronize the analog input and the output of two different USB data acquisition boards

    Hi all

    I have two tips very different USB NI USB 6008 case, which I use to acquire the data (analog input) and a USB of NI 9263 is a output analog only site I use to route a signal (in this case a square pulse). The reason why I use the outputs analog 6008 is because I need to deliver negative tension and need the full +/-10 v range.

    Looking at similar positions, I'm pretty sure that I can't use an external trigger or a common clock, I also tried to use the timed synchronization of the structures but no cigar.

    I'm including a quick vi I whipped showing how the jitters because of the lack of synchronization signal. The OD of the 9263 connects to AI in the 6008 in this example.

    I talked to a specialist in the phone and tols me that's not possible.

  • Toggle the analog inputs and tasks of output on the same card in LabView

    Hello

    I'm relatively new to LabView and am trying to find the best way to switch between reading and writing tasks on my PCI-6024E. It seems this would be a common thing to do, but I found no good documentation or any relatable example program. Basically, I would like to be able to monitor certain analog inputs and then write that some outputs if an entry is in accordance with certain specific conditions (say > 4 Volts voltage). It is my understanding that you can only signal (input and output) types associated within a single task in DAQmx. I also understand that you cannot have multiple tasks running at the same time on the same material/map, otherwise you get a: 50103 error 'The specified resource is reserved. Calendar is not really all that matters to me, but quite synchronous and effective would be nice.

    I have attached a sample program that shows more or less what I'm trying to do. I want to follow several analog input lines (AI0 AI1, AI2 and AI3 and) effectively at the same time. If certain conditions are met, AI3 > 4 Volts, then write 5 Volts for analog AO0 and AO1 outings. I also want to maintain output at 5 Volts up to AI3 falls below 4 Volts. Is there a better way to pass the task to read and write than what I've done here? In a sense, all I really do is toggle of a state machine if the required conditions are met and if start/stop tasks of reading/writing necessary.

    One last question, is there a way to display the four channels in the waveform graph using the 1 d NChan 1Samp mode so I can have a time chart and indicators?

    P.S. I'm under LabView 2011 on Windows 7. Your ideas and suggestions are appreciated.

    Thank you

    KJ

    I also understand that you cannot have multiple tasks running at the same time on the same material/map, otherwise you get a: 50103 error 'The specified resource is reserved.

    This is incorrect.  You can't have two tasks of the same type running on a single card.  You can have an analog input and analog output task running simultaneously on the same hardware.

    You are right that each task can have only one type of task (entry or exit).  Discover DAQmx examples in the example Finder to get examples of synchronized input and output.

    PRO TIP: In the Finder of the example, go to the drop-down list in the lower left corner.  Pull down and select Add Hardware.  In the pop-up window, add your PCI-6024E to the right pane.  Click OK in this window.  Then in the main window of Finder example select your hardware from the drop-down list and check the filter results by the hardware.  The example Finder then only you will show examples that are out-of-the-box compatible with your hardware.  I am sure you can find something to fit your needs here.

  • Analog input and output using 5640r

    Hello world

    I'm Christine, I'm implementing OFDM on fpga using 5640r.

    The code that I have, which is good in the simulation using labview and also using 'nor 5640r treatment only' but I want to implement in "analog input and exit vi" so that I can send and receive on the same card 5640r

    After so much attention in this regard, I am still unable to find the issue, then the soultion to this question. something that I am able to understand that maybe there would be some questions (ADC and DAC) clocks the clock setting

    I have attatched that vi. Please take a look at

    Concerning

    Aqib

    College of aeronautical engineering

    Risalpur

    Sorry

  • Open a synchronized session of the analog inputs and position

    I want to read 8 analog inputs (only three IA in the capture of code) with a PCI-6221 card at a rate of 100 samples/s, reading 10 samples/iteration. At the same time, I want to read the position synchronized with the analog inputs. Is this possible? If I just merge the position with the analog signal I get 10 readings of position for each 100 analog input readings (see chart - Red's position). For the control of the movement, I use the pci-7342 with UMI-7764 interfaces. Could someone help me out here please?

    Not necessarily. As said, speeds of up to 200 Hz should work fine with a 7342. If this is not enough, of course a 7350 could be used, but there is also a completely different approach that should work with your current hardware:

    7342, you may also route the phases of encoder to the pins of the RTSI. You can use a counter on the 6221 to measure the position of your axis based on the singlas you have routed the RTSI pins. Now you can use "Measure of Position buffered" (see DAQ examples) to measure the position with the same source of synchronization than your analog signals.

    I hope this helps,

    Jochen

  • How to use 1-channel analog input for start/stop aquire sample second channel input analog?

    I have a little problem. I've just been programming in labview for 2 weeks.

    I'm trying to figure out how to use my channel of analog input on the USB-6009 case for start/stop (reference trigger and start) presented to the second analog input channel samples.

    I need the first analog input string to operate continuously and control sampling on the second.  When the second channel will start sampling program brings a new graph each time and saves it (I have all this that figure out).

    How can I configure the trigger so the lance program presented in for the second channel when the 1 channel reached above 2V (e.g.) and stop when it falls below 2V.

    I use a pressure force sensor on the first channel that gives me straight (up to) 5 V when it is pressed and nothing when it is not...

    Thank you.

    Grand... Thanks for the information!

    But can't I then make a 1 channel instead and wait until that meat of the max element value?

  • Analog input and contrary to the worksheet

    Hello

    I m trying to get an analog input (volts of a sensor) and a counter with an encoder. I ve long time looking for a solution and I ve already found some very useful examples that I ve used on the VI (thanks for that ).

    The program is very close to what I want, but there are still a number of things that I don't understand (I m very new with labview and I still Don t know exactly what I m).

    -J' read in an example here that I should use "Single Point timed material" and use the "wait for next sample clock VI' to get samples always with a period fixed (rate). It's works! Before, I used "continuous sample" and it was a bit jitter. Well, could someone explain to me please what is the difference between continuous and timed, material and how the 'Harware Timed Single Point '.

    -My second question is about the string formats that I receive on the loop of the wave. I ve tried with very different formats, but it doesn´t work as I expected. I have a format string like this on the 'Date Format VI': %S % 3u-online seconds with 3 decimals?

    And on the format I have on the 'picture to a worksheet VI string' should I used %5.7f to get 5 decimals on the output (spreadsheet file). Why?.

    What I m trying is to get the analog input with counter clock (I think I already do), given a graph and a file with lines of 3: 1 °-time with 3 decimals, 2 °-v with 5 decimals (positive and negative) and 3 °-position (positive and negative integer).

    Software: Labview 2013, pilot DAQmx 9.8, Windows 7 32-bit

    Material: NEITHER 6321 PCIe, Intel Quad 9550, 4 GB RAM

    I hope that his undestable, I should learn some English to.

    Thank you

    Hello

    Thanks again for the response. I tried to implement the code as you say, but it's always a mistake to time. I solve it with a timestamp.

    The idea of a producer consumer loop was very good. After"a bit", I managed to solve it too. Here's the code.

    Thank you

  • synchronize the inputs and outputs on the USB-4431

    Hello

    I have an application that needs to send a signal on the USB-4431 and then capture it with an entry on the same device.

    Aware that I use two tasks to do this, one for input and one for output. I discovered that a trigger (on the RTSI bus) can cycles of sending/capture sychronisé departure operations so that it can be a constant offset between the captured signal and the output signal.

    Unfortunately, the code I found is for Matlab. I can't find an equivalent for it in the C API of NIdaq. The method is described here; http://www.mathworks.in/help/daq/synchronize-analog-input-and-output-using-rtsi.html.

    What I can't understand is how to implement this on the analog input:

    ai.ExternalTriggerDriveLine = 'RTSI0';
    

    Can someone shed light on how to do it?

    The rest of the things described here, seems to be feasible with a normal trigger:

    ao.TriggerType = 'HwDigital';
    ao.HwDigitalTriggerSource = 'RTSI0';
    ao.TriggerCondition = 'PositiveEdge';
    

    Thank you

    Nirvtek

    You can synchronize the HAVE and AO by sharing the start of relaxation between your two tasks.

    Choose one of your tasks as the "master" and the other to be the "slave" (any).

    Set up a trigger to start of digital dashboard on the task of the slave, and set the source of the trigger to be the trigger of the master's departure.

    Assume the following:

    The name of your device is 'Dev1 '.

    I is the main task

    AO is the task of the slave

    Here's what you would do to sync the two:

    (1) create the tasks I and AO in order that you want to

    (2) set up "timing" on the tasks of HAVE it and AO (you choose the sampling rates must be the same or power-of-2 many of the other (for example 100 K, 50 K, 25 K, 12.5 K, etc...))

    (3) configure your slave (the task of AO) task to have a numerical advantage start trigger and make the source is the trigger for the start of the task of the master (the task to HAVE it). In our case, "Dev1, AI, StartTrigger.

    (4) write data (a sine wave, presumably) to your task AO

    (5) start the task from the slave (the task of AO).  The task of the AO is now in the 'Started' State, but given that you've set up a digital trigger early, it won't actually generate data until he sees a numerical advantage of 'Dev1, AI, StartTrigger.

    (6) to start the main task (task to HAVE it).  The task of the AI does not have a trigger digital early, so the software will immediately generate a start trigger, which also causes a numerical advantage on "StartTrigger/AI/Dev1", which causes the task AO start at the same time.

    7) read your job to HAVE.

    You will notice a few 0 at the beginning of your data to HAVE. It's a result of something called "Filter Delay" and it is an inherent characteristic of all DSA devices - see the manual to use DSA and this article for more information on what is and how to cope.

    I hope this helps.

    EDIT: I just noticed that you pointed out an existing C example. It's exactly what you want. I don't know why you have a resource error booked - I tried it myself and (after changing the AO will of +/-10V to +/-3 .5V), it works beautifully.  Try to reset your device to the MAX (or DAQmxResetDevice() of your program)

  • Using the DAQ USB-6009 meter and an analog input voltage at the same time.

    Hello

    Currently, I'm reading the two channels of voltage with the USB-6009. It happens that one of the channels is the output of a digital coder, and it would be much easier to use it directly to the PFIO entry that is defined as a counter. The problem I am facing right now, it's that I can't use the DAQ Assistant to use the analog voltage to a channel and the digital channel counter at the same time. Once I put the DAQ Assistant to read the input from analogue voltage, I won't be able to add analog inputs. And as I put the DAQ Assistant to use the PFIO as a counter, I can add more entries to read analog voltage is.

    I wonder if it is possible to solve this problem using the lower level data blocks? Another solution would be to read two channels in analog input voltage and that the use of Matlab to process data resulting from it, since I was not able to do the counting to work simultaneously with the acquisition in Labview to impulses.

    Hope you guys can help out me.

    Thanks in advance.

    Using a simple wizard of DAQ is incorrect. You need one to acquire analog inputs and one for the meter.

  • I can read two-channel USB-6008 using THE Signal Express?

    Hello world!!

    Is possible to read the two analog inputs at the same time?

    Example: Using Signal Express, I need to read the (channel 0) analog input and analog input (channel 1) at the same time.

    I try this but, the signal on purpose gives me an error message saying that I can't read several channels at the same time using the USB-6008.

    Is this true?

    Thank you

    Ivo João

    André,

    Grato definition of pela.

    SUA ajuda muito util faith.

    SDS,

    Ivo João

  • NI USB - 6259 BNC DAQ: analog input signal cross on the question

    Hello

    I use the NI USB-6259 BNC DAQ unit to acquire a four-channel analog signal, and I'm having a problem with a signal that affect others. The circuit, I am running is:

    I have a wire connected to a battery (two AA batteries at ~1.5V), which then feeds the signal cable to a BNC cable, which feeds an analog BNC of data acquisition channel. The field of NBC feeds to another wire, which is attached to a conductive plate.  The idea is this: when I touch the wire connected to the battery for the metal plate, I complete the circuit and thus get a binary not anything at all about 3V.  When I tested with an osciloscope using two channels (each earth connection to the metal plate) I get independent steps whenever I touch any of the sons of the respective batteries to the metal plate (i.e. it works as expected).  However, when I use it with data acquisition, whenever I touch a wire, I get a response in all other channels (3 others), even if their respective sons does not touch the metal plate.

    No one knows why this happens, and how I might be able to stop this 'cross-talk '?

    Thank you

    Veritas

    I see, and you're right.  This request will have trouble with crosstalk.  Luckily the ground channel thing should help you.

    Configure your DAQ to collect twice as many channels as you need.  Connect your wires in the odd channels and short circuit (ground) the entries of those even.

    Now when you scan the channels it will always technically crosstalk, but it will come from a channel to the ground so that there will be nothing to interfere with your measurements.

    At least that's the theory.

  • This device cannot find enough free resources that it can use. If you want to use this device, you will need to disable one of the other devices on this system (Code 12)

    Guys, I have a problem. So, my laptop has 2 graphics cards, an integrated course of the Intel HD graphics (which works perfectly) and the other being the dedicated Nvidia graphics (Nvidia GeForce 940 m). Until 2 days ago, everything was going well and running.

    I have the application experience GeForce and it prompted me that there is a new driver update should I download. He started to install then after rebooting to complete the installation, it failed. I checked my device manager and saw a yellow exclamation under under my Nvidia graphics card (remember, my laptop has two graphics cards: Nvidia graphics card and Intel HD graphics that works correctly). I immediately checked the details, and he said:

    "This device cannot find enough free resources that it can use. (Code 12) »

    "If you want to use this device, you will need to disable one of the other devices on this system."

    This seemed very strange, because it was LITERALLY working properly before I was invited about update driver I got, so I don't know what to do - as a matter of fact, literally, I finished this game, Deadpool, with my Nvidia card that I put as the default graphics card, a few hours before , so I don't know why this happened. Any help? I'm looking for a logical answer to this, guys!

    Additional information:

    A few days before this happened, I went to my store local pc and installed an extra 4 gigs of ram on my 4 existing to make 8. Don't know if it's useful, but anyway

    If I pick up my laptop and shake it side by side, I hear a slight rattling noise, and it seems a little loose (I found this out after seeing the error message). The noise seems to come from just below the middle of my keyboard (I'm using a laptop). If for some reason, my Nvidia card is loose? Is this possible?

    I am quite technologically inclined, but not to the extent of removing components and reconstruction cell phones / pc and access the bios and what not. I can only remove/add ram.

    I want to know if its something I am able to fix it because I do not necessarily want to go running and sending my laptop places - only my pc up shop.

    Here is the location of my Nvidia card: PCI Slot 4 (PCI bus 4, device 0, function 0)

    My specs:

    Acer TravelMate p257-MG

    Windows 7 business

    Intel core i5-5200u 2.20 GHz 2.20 Ghz processor

    8.00 GB of ram

    64-bit operating system

    1 t hard drive

    940 m Intel HD graphics 5500 & Nvidia Geforce card

    Just to recap, I get the error on my Nvidia graphics card code, "this device cannot find enough free resources that it can use. (Code 12) ""If you want to use this device, you will need to disable one of the other devices on this system. »

    Thanks in advance!

    Hello

    Thank you for your response.

    I appreciate your time.

    I suggest you run ' Intel Chipset Software Installation Utility ' and check.
    Reference:
    http://www.Intel.com/content/www/us/en/support/software/Chipset-Software/Intel-chipset-software-installation-utility.html

    Please keep us updated.

    Thank you

  • I want to generate a pulse of a meter train and count the pulses with the other counter on a USB NI DAQmx 6259.


    Salvation;

    Here is the solution for your problem.

    The cause is that "Gen dig Pulse Train-Finite" uses Ctr0 both Ctr1.

    Please refer to:

    "When you do a finite pulse train generation, a counter generates pulse train, and the other counter generates an impulse that acts as a barrier to the first counter. If you change the pulse train to generate continuously or

    only generate a pulse, you can run two tasks of meter at the same time without error. »

    http://digital.NI.com/public.nsf/allkb/04BEDD9E9E91ED3486256D180048116D

    I used Ctr0 and Ctr2, jumping Ctr1 as it is reserved by "" Gen dig Pulse Train-Finite ". I works very well.

    Kizito.

  • Problem with a digital output in the information of an analog input

    Hello

    I use a SCXI-1000DC module with a module of the SCXI-1600, SCXI-1531 module and SCXI-1163 module to receive an analog of an accelerometer signal and a digital signal.
    I claim that the accelerometer is constantly monitored, and the output is on when I want to, by an impulse that I comand in labview.
    I use a rate 25 k and a 12, 5K samples per channel on DAQmx Timing.

    I notice in DAQmx read, if I put a sample of hight by channel, the output is not there when I want to, and if I put a few samples per channel, I exit when I want to, but the program seems to be slow with the passage of time. I don't know how I can solve this problem!

    I'm sorry for my English, and I hope you can help me.

    Thank you

    Silvia

    Hello Silvia,.

    If you ask a larger number of samples, the labview diagram will stay longer in the DAQmx Read function, so the while loop runs slowly, and the digital output is updated less often.

    I suggest that you use 2 separate while loops: one for the analog input and the other for digital output, so that each loop might run at a different speed.

    Best regards

  • How to sync analog & meter and two usb devices

    Hello

    What I want to do is synchronize the analog inputs and an entry on a device (USB-6009) meter and then synchronize this device to a different USB USB-9211.

    I had a quick glance at the Web site and there are a few articles to the knowledge base on how to do these operations independantely (IE synch and synchronization channel) but I'm not sure how to bring it all together. My concern is that the USB-6009 case has only a single meter (which double as the PFI?) and it is generally used for the signal synchronization on the slave device? Used to say that I won't be able to use the meter to measure input? The USB-9211 a there a PFI connection?

    Any suggestion would be appreciated.

    See you soon!

    Hi David,

    If you want to synchronize and always stay USB, you will need to look at the chassis USB 4 9174.  With this, you can get a digital I/o module, for example the 9401, to interface with chassis backplane and synchronize the frame on another device like the 6009.  Another plus, it could ask, is that the bottom of basket 9174 meters integrated into the chassis, which have more capabilities than the meter 6009 and are accessible via the same DIO module that you use for synchronization.  This seems to be the best route to go because of the capabilities that you are looking for.

Maybe you are looking for