market factor two AO signals with a square wave

Hello

I use two devices with sending two signals (sine wave) AO out simultaneously in my code. I need to have to cycle my signals. in other words, I want to start or OFF the devices at all times. To do this, I use a generator with duty cycle of 50% square wave. The devices must be running when the square wave has positive values and should be OFF when it is negative.

The code almost made it, but it doesn't seem to be as fast it's supposed to, based on the frequency of the square wave. I was wondering if someone can help me with this problem. In addition, I'm not sure if this is the best method to do this, please leave me know if there is a better way. I've also attached the VI.

Thank you

Pooya

I thought about it. Instead of the command at the AO signals with square wave and the structure of the case, I just made a square wave from 0 to 1 and multiplied the wave sqaure to the AO (sine wave) signals. In this way, when the amplitude of the square wave is 1, it sends the sine waves and when it is 0 it sends 0.

Please note that all signals (sine and square) should have the same info of sampling.

Tags: NI Software

Similar Questions

  • With the help of modulated signal pulse width (square wave) to control when a signal is enabled or disable

    With the help of modulated signal pulse width (square wave) to control when a signal is enabled or disable

    Hello all

    I am using a modulated signal to labview created pulse width (square wave) to control when a signal is activated or not.

    Here is my logic and a concrete example:
    (1) the wave source signal is continuous
    (2) use a PWM (square wave) created in labview to control when the signal is enabled or disabled
    (3) if the PWM (amplitude) signal is superior to 0 play signal PWM is not greater than 0 do not play signal.

    I use actually this to the sequence step / pulse several distinct magnetic coils using my audio card (which has several channels of audio output), I have a signal in labview played constantly.  As to compare it to the PWM (square wave) which controls whether or not the signal is played on each separate channel.  That way I can control which coil is on and offshore and in what order they are activated.

    I couldn't find an edge detection for a square wave created in labview, so I tried the limits, but it doesn't seem to work unless I change the phase manually and it only goes 1-1.  I'm just trying to compare the PWM (edges of the square wave) already created by labview / play a signal if the pulse is greater than 0 and it shuts off the signal, if she is less than 0.

    Should I do this another way

    TIA

    A waveform contains an array of values. You must check every value and respond accordingly:

  • Best way to generate signals of activation (square wave) with my 9401 on my 9022?

    Hi, I tried seriously over the past two days to find the best way to do it. I am trying to generate a very precise square wave, controlling the duty cycle and frequency, with the OID on the 9401 in testbed cRIO 9022.

    I have a VI that is theoretically able to do this, but whenever I try to go above 5 Hz or more, duty cycle and frequency becomes inaccurate (I have watch on an oscilloscope), various a lot too for my needs. I have a feeling that this is caused by my addiction on the calendar software controlled, with errors at the time (of the ms order) accumulate as they get processed and the signal is sent. I have attached a piece of code that illustrates the basic idea of what my VI have in them.

    I have avoided the square wave generators integrated because I could never work to satisfaction, but I can work with them so that will solve my problems. Selection structures and cases prevent the user to exaggerate their inputs. Unwaited so the loop was just to test.

    I'm running the 9022 as target in real time, but also tried to run in the FPGA and I was able to produce much more accurate signals using FPGA VI square wave, displaying a Boolean variable, but I couldn't see the best way to get double precision variables to work with everything (and I want more precision than variables FXP enabled clock 40 MHz).

    I feel there is just a mistake in my approach here. I've seen other discussions where people throw around using meters to edge of the test bench to produce a square wave, and I see the example screws as Gen dig pulse - continuous Train, I'm not sure if initially these screws DAQmx for my situation (eg. How to identify my counters, because they are clearly not Dev1/ctr0 by default in these examples)

    Thank you

    Dealing with the representation of Point fixed and all is a reality for LabVIEW FPGA<= 2011="" programmers.=""  you="" might="" build="" a="" small="" sub="" vi,="" such="" as="" the="" one="" attached,="" to="" encapsulate="" the="" frequency="" calculation,="" thereby="" abstracting="" the="" conversion="" formula="" and="" fixed="" point="" data="" type.=""  you="" can="" adjust="" the="" properties="" of="" the="" floating="" point="" input="" control="" to="" accept="" only="" valid="">

    This implies the series VI void on the host of the RT, and not on the FPGA target.  So, you also need nodes in the Palette of the FPGA Interface to send PWM fixed Point RT frequency to the FPGA.  The complete solution of frequency may resemble the following.  It is common for FPGA programmers to build a collection of thesesub screw, that make up the API for hardware.

    Note that 40 MHz is hard-coded.  For increased flexibility, consider making the FPGA clock rate an entry to the Subvi with a default value of 40 MHz.

    -Steve

  • Simple problem with a square wave and a Boolean LED

    Look, this is the case,

    Im doing a test for PCBS, it has an emergency switch and a sound signal. the buzzer is connected to the emergency with a microcontroller switch

    Case 1: Emergency button is not pressed, vibrator makes no noise (material) and therefore the LED in my program remains off.

    Case 2: Emergency switch is pressed, done automatically buzzer sound (in a square waveform: 1 second in high, 1 second bass (x 3)). But if I put this in the program of the LED flashes... because the signal is up and down. What I want is that the LED stays on.

    So my question is: is it possible to put a square on a led signal output and leading to keep it. (it should not blink).

    and if it's not allot of work can you please show me how do it with a simulation.

    (English is not my native langueage is why I can't explain it very good)

    With sincere friendships.

    Asrih


  • FPGA square wave generator diverts loop calendar

    Description of the problem:

    I have a simple while loop with a structure of matter inside. In one case, I have the
    Generator FPGA Sinewave sending the data of output to AO0, otherwise, I have
    the square wave FPGA sending output to AO0 generator. The sine and square
    waves are set to run at 10 kHz

    I also have a shift register that changes the State of DIO0 each loop through.
    In this way, I can look DIO0 on my scope and say how fast the loop runs.

    When I choose the sine wave generator, the output on AO0 is what I expect. That
    is I have a sinusoidal signal at 10 kHz and the loop speed is approximately 1 US. Everything is good.

    Then I move to the square wave. I get a signal square 10 kHz, which is good. But
    My loop speed was slowed down to 50 US (it follows the square wave
    exactly) is: once the loop defines the FS square wave and the
    the next time through the loop, it defines the square wave to-FS.

    My problem is that when I generate a square wave, I expect the speed of loop
    to stay fast he does it for the sine wave. You can see what my loop speed
    slows to 50 (a square wave of 10 kHz) and then all my calculations that must
    go in parallel with the square wave will also be slowed.

    Please help me with my understanding of the use of the square wave FPGA sub - VI

    Thank you
    Rich

    Software of NEITHER: LabVIEW FPGA Module version 2013 SP1
    OR hardware: USB-7855R R Series device

    If you dig into the express VI, it will loop an SSTL until there is a change in value.  The sine wave has no need to do so because the value changes constantly.

    If you can, I recommend doing your loop a SSTL and configure the express screw accordingly.  This will work as long as the rest of your code in the loop can be run in a single clock cycle.

  • Create two independent signals and a pulse train with NI USB-6259

    Hi all

    I'm new to the forum, I searched but I've found no info about it.

    I have recently set up a vi that is able to generate from an NI USB-6259 case two different signals in frequency, amplitude and phase (see attachment).

    To do this with each cycle of the memory buffer size is changed accordingly for frequencies in order to see a whole number of periods and, thus, having not leak in the generation (or breaks).

    Now, I would like to generate a pulse train at a frequency that is an integer multiple of the frequency of the input signal (not the 50 Hz one).

    The resulting frequency of the pulse train could be changed on the fly (or at least be updated at each new round of vi).

    I'm stuck because I have already said that two analog output channels and I want the pulse train so that a digital camera for my Board (channel PFI) output, you have any ideas?

    Thank you very much

    Alberto

    PS. the vi is "program generazione.vi" but you must first install "signal.vi production".

    Hello
    It is a simple .vi which generates a configurable, buffered pulse train dynamically. I also want to let you know that with this type of advice (DAQ), it is impossible to update the output in real time. You must be careful because the time between you use "DAQmx Write" and the output effective physical change not IS NOT FIXED.

    Kind regards

    Matteo

  • Many signals with ditch (NI 9229 and NI 9205) devices multi 9188 cDAQ chassis

    I use a chassis equipped with 9188 OR cDAQ with 6 x NI 9229 (6 x 4 HAVE simultaneous chnls sampled with aliasing filter) and a NI 9205 (32/16 HAVE chnls single/premium multiplexecd chnls). I created a simple mind task the DAQ Assistant to acquire 12 chnls with the module NOR 9229 modues and 4 with the NI 9205 module. A generator is used to produce a sine wave with a frequency of 10 Hz and an amplitude of 500 mVpp as input to all channels. The same generator also produce a square wave (synchron to sine) which is used as input trigger (PFI 0 - BNC connector on the chassis). The acquisition is expected to have samples end up a flow of 2 kHz and a datalength of 4000 samples (this means a time of acquisition of 2 seconds) controlled by a digital reference triggered with the cADQn/PFI0 as a source of relaxation.

    My problem is the time difference between signals acquired with the NI 9229 module and those acquired with the module NI 9205 (see the attachment). The time difference is not constant and change when the frequency of the input signal varies. I guess the difference is due to aliasing filters used in the NI 9229 module and I'm looking for how to resolve the situation. Any help will be appreciated...

    Philippe

    By the research and reading, OR knowledge base I solve the problem by making a dummy read on the NI 9229 channels before reading from the device OR 9205.

    According to the specifications of the NI 9229 module, there is a delay of filter (digital filter) of more or less 40 samples that are present only in the case of a digital triggering.

    Reason and solution of this problem are explained here: http://digital.ni.com/public.nsf/allkb/F989B25FF6CA55C386256CD20056E27D.

    I have applied the solution presented in this paper and this is excellent work.

    Now, this problem is solved.

    What about a whole, Philippe

  • by using labview co-simulation, how to control the PWM market factor in multisim

    I am new to the use of Multisim with LabVIEW using co-simulation. I would like to ask if there is a PWM component in Multisim, which can have its cycle have to be controlled using LabVIEW? I have an algorithm in LabVIEW that returns the duty cycle values between 0 and 1, representing the percentage of duty cycle.

    How can I control the PWM market factor in Multisim using LabVIEW co-simulation?

    Thank you very much

    SPECTRUM

    Hi spectrum,

    In Multisim, find items based on functionality, there are some PWM models in the database.  Take a look at this knowledge base if you don't know how to search for parts:

    http://digital.NI.com/public.nsf/allkb/7309A5CABC677296862577ED006EC99E

    Also, take a look at this knowledge base:

    http://digital.NI.com/public.nsf/allkb/EF391C48CF71AE4F862571B900644F84

    This article shows you how you can get Mutlisim and LabVIEW to co-simiualte:

    http://www.NI.com/white-paper/13663/en

    I hope this helps

  • Generate a continuous output of square wave with E Series DAQ cards

    Hello

    I use a card DAQ-AT-MIO-16XE-50 and labview 6.1 to generate the frequency divider. The first thing I want to do is to enter a continuous digital signal into the program so I can divide it. The attachment is the program I use. It's pretty simple, just read the output signal and put them all in a while loop to get a continuous pulse. But when I want to observe the waveform on the oscilloscope, I got some square waves unregular.

    I'm a freshmen in labview. It will be appreciated for all her help!

    Hello

    If you are just getting started with digital i/o with traditional DAQ, I'd take a peek at some examples to see how to structure your code for both input and output.  There is one here (http://zone.ni.com/devzone/cda/epd/p/id/1113) which should give some features similar to what you are looking for, but if you want more examples, you can navigate to the examples as a result of the article here (http://digital.ni.com/public.nsf/allkb/46D0C7360A10D25F862571B5007B4411), as long as you have installed them with traditional DAQ.

  • measurement of phase shift between two periodic signals acquired

    Hello

    I don't know how to explain my problem, but I'll give it my best shot. I'm two signals from sensors in tension. Two periodic signals have the same frequency, but a different amplitude. Normally they have a difference of phase of 0 or 180 degrees. The thing I have to let labview to check is if the signals are completely in phase or out of phase (180 degrees) completely. I am acquiring the wizard scene DAQ in a while loop. Does anyone have an idea how I can do this?

    To summarize: are the two things I need to know

    -l'amplitude (maybe just pick max max min distance)

    -If both signals are moving in the same direction (when the two signals are in phase) or if they move in the opposite direction (counter phase) - the exact phase angle value is not so important

    THX

    Thanks for the reply. After a night to think about the problem, I came up with a home-made solution. I used the point by point max and min vi to calculate the distance from crest to crest of my signals. Then, I used the time derivative of point by point to calculate the variation of the signal of the two signals. If the signals are in phase (both are increasing or decreasing at the same time with the other), then the two derivatives have the same sign (accept on the summits, of which I have excluded from the comparison). If the signals are out of phase (when one increases, the other is decreases and vice versa) then the two derivatives are opposite in sign. According to this, I can get all information that I need. If anybody should know a better way to achieve the same result, please say, but to know that it seems to work.

  • IMessage Apple Watch has two interviews separated with the same person?

    My new Apple Watch has a problem with iMessage and I know how to fix this on my iPhone but not watch?

    On my iPhone, that my ID apple is connected to more than 10 devices and sometimes when a new device is added, it adds the addresses on my apple for iMessage and FaceTime ID and I always fix by unchecking the addresses that I don't want in the application settings under "Messages" and "FaceTime." However, this isn't the same thing to watch because there is no option in the settings on the Apple Watch and the watch App on my iPhone.

    I would like to help please?

    Hello

    Apple Watch uses the same parameters (for how you can be reached and how new conversations are started) for Messages as your iPhone.

    If you have two interviews separated with the same person, the following steps may help:

    • On your iPhone, check if there is more than one contact form in Contacts of this person (if so, remove duplicates).
    • Delete old Messages conversations with this contact on each of your iPhone and watch:
      • iPhone: app Messages > swipe to the left on a message thread > delete.
      • View: Open the Messages app (from the home screen, which is accessible by pressing the digital Crown) > swipe to the left on a message thread > tap on Trash / delete.
    • On your iPhone in the app Watch: Watch My > general > reset > press reset sync data:
      • You won't see anything happen after pressing it (the process runs in the background, invisible to the user).
      • Leave a minute or two to allow the course ends.
    • Restart your iPhone and your watch (turn the two together off the coast, then restart your iPhone first):
  • I have 2 copies of open Firefox (two different windows with lots of tabs), if I reboot can I restore the two sessions?

    I have 2 copies of open Firefox (two different windows with lots of tabs), if I reboot can I restore the two sessions? I am familiar with clicking history / restoration of previous session, but do not want to reboot to let windows update to do it's thing unless I can restore the two sessions.

    guigs2 said

    If they run different profiles, then Yes.

    Thanks, but I use only 1 profile. However, I found the answer! If I restart/turn off / down pc WITHOUT closing a firefox session, he will come with the screen 'well, it's embarrassing"and list the TWO sessions to restore. The trick is not not to close before stopping! If you close them first, then you can only restore the session first (?).

  • Homepage opens with two additional tabs with quicklinks undesirable.

    Opening of my homepage now also open 2 two additional tabs with tile links to Facebook, Twitter and other undesirable websites. Maybe it's Yahoo, which I don't use. I might add the screenshot of these tabs, but need help to do it. It's a painting, *.png file. Homepage has no "pipes" | in the address.

    You can check the setting of the homepage:

    • Tools > Options > general > startup: Homepage

    Firefox supports several home pages separated by ' |' symbol (pipe).

    You can check the suspicious extensions or recently installed unknowns.

    Your list of details of the system shows that you have a user.js file in the profile folder to initialize prefs each time you start Firefox.

    The user.js file is present than if you or another software has created this file and normally it wouldn't be here.
    You can check its contents with a text editor (right click: open with) If you do not create this file yourself.

    The user.js file is read whenever Firefox is started and initializes the preferences to the specified value in this file, so the preferences set via user.js can be changed temporarily for the current session.

    You can remove possible user.js and numbered prefs-# .js files and rename (or delete) the file prefs.js to reset all the prefs by default, including the prefs set via user.js and pref which is no longer supported in the current version of Firefox.

  • I can't stop the pop-up and adware ads in Safari. When I opened a new take, it is locked until I click a place twice, then two new tabs with advertising and virus detected by safari emerge

    I can't stop the pop-up and adware ads in Safari. When I opened a new take, it is locked until I click a place twice, then two new tabs with advertising and virus detected by safari emerge

    I tried following the instructions on the support page, in Apple, but it did not work.

    Force to leave Safari, then with the SHIFT key, restart Safari.

    Also use EtreCheck of www.etrecheck.com and see what else is running.

  • How to use two external monitors with my laptop?

    I have a new Pavilion dm4-301 d cl Entertainment PC.   My OS is Windows 7.   I'm used to using two external monitors with a docking station.   This new laptop lacks a docking station.  What should I do use two external monitors?

    Certainly not without a dock, but even with laptop HP well enough docks limit you to one of the ports on the external monitor, even if there are two on the dock. We used a device called an Atlona AT-HDPIX2 which is a USB to hdmi adapter. It provides a feature of third monitor for a laptop... use the native external port of the screen and the computer screen internal, then this device gives a third control that is fully configurable to display Windows 7 interface... clone, extend, etc.. It allows a full HD resolution and is pretty responsive for games even light.  HP does not have any true docking station for your laptop.

Maybe you are looking for

  • Satellite L505-144 freezes when I try to connect to wireless network

    HelloI have problem with my laptop Satellite L505-144the problem is when I try to connect to wireless network, the laptop freezes and do not work until I restart it I try to install the new Toshiba Recovery Win 7 64 bit, but no interestwhat I need to

  • I had to do a restore and now I can change is no longer the size of magnafication

    I had to do a restore and now I can change is no longer the size of magnafication

  • Annoying pop up in Hotmail Messenger

    I remain always connected both Messenger and Hotmail. I want to use only the "desktop version" of Messenger and don't have the pop-up appears in Hotmail duplicate the entire conversation.  How to disable this pop-up permanently?

  • I have windows Vista. No Netflix icon

    I have made several attempts to download the plugin. It seems to install properly. However, no icon never appears on my WMP. In addition, I can't access internet tv or request more applications. nothing appears in the showcase-Tv/movies...there is no

  • Crash scanner HP caused by ActiveX controls

    I have Vista Home Premium 32 bit and am using IE 8. I have a HP Officejet 5610 all-in-one and have never had any problems in the three years I've owned it.  Today, I tried to scan a document and received an error message: your current security settin