To input analog shutdown when the analog output is completed and synchronization

Hello

I'm trying to get my LabVIEW program to send analog output to a computer and read acceleration using the cDAQ-9184. Chassis output that I use is the NI 9263 and the chassis of entry is the NI 9234. I generate a signal of white noise using LabVIEW Express signal generator.

The first problem I have is the synchronization. I had an old VI that has begun to measure the acceleration just about a second after the entry has been given to the machine. I used the LabVIEW tutorial on how to sync the analog input and output, only to discover that it does not work with two different hunts. Then I found another tutorial that shows how to synchronize different frames between them.

The second problem is the cessation of the LabVIEW program. What I want to do is to generate the signal and then simultaneously send and read the input and output analog, respectively. It is because I don't want a phase difference or any shorter signal for a direct comparison. But as soon as the signal is sent to the machine, I want the entry to stop analog playback and then then the LabVIEW program must stop. I want to be able to choose any length of signal to be generated and stop as soon as the entire duration of the signal has been sent to the machine.

I tried 'DAQmx stop', "DAQmx Timer" and 'DAQmx's task made?' and none of them have worked for me. It is also my first time on a forum posting, so I hope I gave enough information. I enclose my VI as well. The VI shows I read an entry for the analog input voltage, but I am only using this to try to get to the work programme.

I'd appreciate any help I could get.

Thanks in advance

Peter

Hi Peter,.

I have some recommendations for you that I think you will get closer to your solution. First of all, I assumed you meant that you had 1 chassis (cDAQ-9184) who had two modules in it (NOR-9263 and NOR-9234). My next steps are based on this assumption, so if it's wrong, please let me know.

For your first question about the synchronization, the code you provided is very close to what you need. You need to do, however, implement architecture master/slave for startup tasks DAQmx functions. To do this, you can add another frame to the flat sequence structure and put the master start task (input voltage) after the start slave (output voltage) task.

To manage your second question and that the program ends at the point where you, the first step is to get rid of all the logic that you use with the local variable of length of time. Rather than use this logic, just wire the node "task performed?" of "is task performed?" operate to stop the loop. This will cause your loop to stop as soon as the signal is sent to the machine.

I have some other recommendations for you that will increase the performance of your program:

(1) rather than writing on file inside the last loop, you can use the DAQmx Configure Logging (PDM) .vi. You will place this VI between DAQmx Timing.vi and DAQmx Start Task.vi to the task of the analog input voltage.

(2) after the last while loop, you want to stop the task and analog outputs as well with another DAQmx stop Task.vi.

(3) rather than using a local variable for the entrance of displacement and wiring it in the DAQmx Write.vi, you can wire directly from the output waveform of the wave to build function node.

That should help you get started in the synchronization of these tasks.

-Alex C.

Technical sales engineer

National Instruments

Tags: NI Software

Similar Questions

  • Strange problem with analog output PCI 6251 and BNC-2110

    I'm controlling current source of third parties using the connectors of analog output on my card PCI 6251 and BNC-2110.

    The current source needs an input signal of 0.1V. I tested it using a battery, the potentiometer and the voltmeter, and by manually adjusting the voltage of power current works - current output with control voltage scales according to the specifications and is relatively stable.

    The data acquisition card works too - when I connect a voltmeter to the AO0 AO1, the measured voltage corresponds to the target with great precision value.

    But when I connect the current source of third AO0 AO1 data acquisition card, the measured output voltage drops and fluctuates. This applies to both channels of the AO.

    I wonder what is the problem here. I suspect it could be a matter of the grounding - the current analog control of the source is an entry with two floating terminals differential. I tried to return the switches FS/GS on the BNC-2110, but that makes no difference.

    Anyone knows similar behavior? Does anyone have any suggestions?


  • PHP form script is missing from the web server or PHP is not properly configured on your web hosting provider. Help - I get this message on my site when the form is filled out and you press send... Check if the form PHP script has been downloaded correctl

    PHP form script is missing from the web server or PHP is not properly configured on your web hosting provider. Help - I get this message on my site when the form is filled out and you press send... Check if the form PHP script has been downloaded correctly, contact your host about the configuration of PHP.

    Hi Graham,

    If you, please add your site to this link ( http://my-site.com/scripts/form_check.php ) and make sure that all green checkmarks are appearing. If they don't, let us know what errors you seem to receive and include the link to your site.

    In addition, check out this guide on the forums of Muse troubleshooting: Troubleshooting Muse form used on the servers of third party Widgets

    I hope this helps!

    Emily

  • The upgrade to vCenter Server to vCenter Server 5.1 5.1 update 1 when the SQL database is remote and vCenter Server Heartbeat is installed

    Hi guys,.

    I'm in the middle of an upgrade to vSphere 5.1 5.1 vSphere update 1. I have vCenter protected by HB and SQL on a separate computer (also protected by HB) I also run Syslog, Update Manager and Proxy authentication on vCenter.

    I've successfully upgraded HB on all 4 nodes (2 x vCenter & 2 x SQL) and started the upgrade components on the secondary according to the •vCenter Server Heartbeat 6.5 server and vCenter Update 1 Installation on Windows Server 2008 when the secondary server is virtual (PDF) http://www.vmware.com/pdf/vcenter-server-heartbeat-65-u1-installation-windows-2008-virtual-guide.pdf

    I got to step 3.c

    3. change the primary/active server role:

    a launch of the vCenter Server Heartbeat wizard configure server and click the tab of the Machine to change the server role for the current server (primary) to the active State and click Finish.

    b using the Service Control Manager, start the Server Heartbeat of VMware vCenter service.

    c using the vCenter Server Heartbeat Console, check that all the status icons on the server: summary page are green indicating that the boot process is completed and protected from all the services are started.

    d using the Service Control Manager, stop the service Server Heartbeat of VMware vCenter.

    As the vCenter service does not start, I'm stuck at this point. As far as I'm concerned, the error is quite logical. I've updated vCenter using the secondary server, and then I'm trying to connect (according to the guide) with another version that breaks down.

    If I continue with the services stop and launch the installer SSO, it is trying to perform an uninstall!

    Did I miss something in this upgrade?

    Concerning


    Ciaran

    Hi guys, VMware have finally updated the documentation to reflect the right way forward: https://www.vmware.com/support/pubs/heartbeat_pubs.html U1 6.5 Select from the menu drop-down and you'll see the last date of update for each of the documentation is now 10/10/2013. The guide States now specifically to restore the vCenter database before proceeding with any other measure, this is copied below for convenience: "the upgrade of the main server of the upgrade process further guess upgrading the secondary server completed successfully. Procedure 1 before continuing the upgrade process, perform a restore of the database of vCenter Server, Single Sign-On database, VMware Update Manager database and SSL certificates that were backed up in step 4 on the secondary server. regards Ciaran

  • Digital inputs only noisy when the laptop is plugged

    I had problems with loops of Earth and power supplies for laptop in the past.  But it is the first time I got it so wrong that it makes the digital inputs which are both related to the ground and the debounced software cannot be used.

    It is NOT material OR.  It's a DT9816 of data translation, a USB DAQ Multifunction with small budget.   The laptop with the problem is a refurbished Dell, with a very obvious not Dell PSU who throws to the top of the warning in the BIOS and scales back from the processor.  (Danger Will Robinson!)

    The problem with the digital entries shows only upward on the Dell when it is plugged into a power outlet.  On all other machines and with the printer unplugged Dell, digital inputs floating.  But those that I have attached to the Earth is rock solid and work very well.

    What surprises me is more than the noise is so bad that even tied to the ground with a half second debounce, I get always false triggers.  I have not brought to power, but considering that it sounds really loud, I suspect that it looks pretty bad.

    I think I'll try a powered USB hub.  If this does not work, then I think that the customer will have to replace the power supply on the laptop.

    However, I was surprised.  I used a lot of USB DAQ hardware, and it's the first time I've never seen a problem like this.  The NI USB 6002 I tested on this same laptop does not seem to show the same problems.  Even if it is true that this is a different software and the test was brief.

    I'm curious to know if other developers have found something similar in the past.

    I can confirm that using a USB hub external powered eliminated the problem of noise in the original post.

    Interesting things.  I had not seen this before.  Now, I wish I had again the NI DAQ USB I had here last week so I could test that.

    Looks like I'll use a hub powered on this project.  But I think I will recommend always replace this power.  Although a lot of noise coming from the power supply, probably isn't good for nothing plugged it... or even sitting near him.

  • life cam3000, I sound even when the volume is turned off and I want to record from the input card.

    Hi and thanks for your support.

    The lifecam 3000 is ideal for photography, but I can't find a way to change the settings for audio,

    and also, I have only the settins wmv for video.

    I search the Web for a program that can do both, but with no good result.

    I HAVE TRY TO DΘSACTIVER THE MICROPHONE, but the cam is not work whitout it.

    Even if the volume of the microphone to * 0 * I hear coming from the microphone of the camera...

    I want to playing me video drum but earing the microphone cam make a sound broooooov.

    With all that CV and a counter to delay the start and stop sewing,.

    a program and a complete cam and one of the best on the market for the price.

    I must say that I am running with vista 32B.

    Sincerely, Stensonn.

    If equipment has replaced the onboard audio hardware, the BIOS should then be edited, disable

    the integrated audio controller. If or other configurations exist, then we can use both, for to do, with only old

    installed audio hardware, Vista, mgr open the device, scroll down to sound, expand the tree, look for the hardware, R.click

    in this regard, select "Uninstall", output device mgr, pc shutdown... Install the new card, start the pc, enter the BIOS, disable the old, start

    Vista. Install new, install any drivers/software, vista installs auto... Once through, restart pc 2 X or so, once through, at startup.

    enter in BIOS, select old material, exit, install vista it automatically. The only problem, both are installed, but can only be

    run at a given time. It is / was average XP, probably the same vista. You can go to run, type: DXDIAG to run the

    Tests of direct X...

  • Audio default HDMI output goes to "not connected" when the receiver is turned off and does not reset as defdault when the receiver is turned on

    I have an NVIDIA HDMI output connected to audio receiver 7.1 Onkyo TX - NR. 818.  It is defined as the default output.  When connected, it works well.  When I turn off the receiver, the output goes to "not connected" and scene of my returns instantly becomes the default.  When the monitor is switched on again, the HDMI out remains "not connected" and audio is directed to the monitor.  If I unplug the pc HDMI cable and reconnect it, the HDMI from the receiver instantly responsive as default device.  How can I stop her from doing this change, whenever I have turn off the receiver?

    Hello

    Try this: http://h30434.www3.hp.com/t5/Notebook-PC-Sound-and-Audio-e-g-Windows-8/Nvidia-HDMI-Output-quot-Not-plugged-in-quot-Audio-not-going/m-p/1001191#M16981

    Good luck.

  • How to control automatic shutdown when the battery is discharged using Windows

    The laptop stops right in the Middle something without notice.

    Even after that I formatted the system, he still stops automatically when the battery is low, without advising me of either the low battery status or the judgment.

    I don't think that the cause of the problem is the power management because it is set to balanced.

    How can I control when the pc stops?

    Hello

    Usually, you can change these settings within the Windows power management.
    Using Win 7 or Win 8/8.1?

    Here is the Nice technical document about the features of Windows 7 power management
    http://APS2.toshiba-tro.de/KB0/HTD12017W0001R01.htm

    Check the last option called: battery.
    It provides many useful features such as low battery, critical battery level, low battery action or critical battery action

  • The HTML - output folder Option and the path of file name change question

    In the HTML Options to file and output file name I was wondering if I can change the name of the .chm automatically listed when I click on properties?

    For example, when I click on properties for ABC_v456, which is a SSL in the project ABC123, I see "C:\Projects\ABC_v123\!" SSL!\Help_v456\ABC123.chm' in the output folder and file name field.  I would rename ABC123.chm in ABC456.chm for the love of light. When I compile it will then create a file .chm by ABC456.chm name rather than the name of the ABC123.chm file? I would have then two SSL in the HTML project called Help_v123 and Help_v456each and their respective .chm would be within each folder.  I speak of the sense or is this clarification requiring gibberish on my part? I use Robohelp HTML v7.

    Hi karima

    You should be able to freely appoint the CHM everything that makes sense for you in the field.

    I remember that too, you are perhaps involved in the development of CSH. If the name of the file could play an important role in that. But even after you generate the help, you should be able to rename it if you wish.

    See you soon... Rick

    Useful and practical links

    Wish to RoboHelp form/Bug report form

    Begin to learn RoboHelp HTML 7 or 8 times now - $24.95!

    Adobe Certified RoboHelp HTML Training

    SorcererStone blog

    RoboHelp EBooks

  • Tecra M3 - when the motorized screen is completely black

    Hi all

    I really need help with this one!
    I plugged my tour through an S-video to a flat screen and watched a movie and throughout the film, everything worked very well. I stopped regular and normal. Went home and it start and started regularly and I go into my profile and startup programs started running; It froze!

    The mouse icon was surrounded in a cube that was slightly shaded vertical lines. I restarted my computer and as it started showing the logo "XP" when it starts, it displays blue line oriented vertically once more but in the whole of the totality of the screen in groups of 4, all the corners of the screen, then when it is supposed to display your profile to choose to sign in there went blue and showed and error gives me enough time to read and stop.
    When restarting again the screen is completely black and never displays anything.

    I am able to connect via s-video for device that never to see the picture or just a regular screen but the problem now is that it shows these crazy characters across the screen as a sign with the point on top and courses I m able to do the options because I'm familiar with computers , but it does not allow to run regularly.

    I need help please this situation!

    Hello!

    Akuma's right, if you have the same problem on an external monitor s seems to be that the motherboard or the graphics chip is defective and must be replaced.

    In your case I would contact an ASP. They can check your laptop and swap the motherboard.
    http://EU.computers.Toshiba-Europe.com-online decision-making supported downloads & => find an authorized service provider

    Good bye

  • What does it mean when the computer screen keeps flashing and n ot stop?

    My computer screen flashed and won't stop not, but for a few minutes at a time. I can't read emails. I can't connect to the programs. What does that mean?

    Hello

    ·         When the issue started?

    ·         Were there any changes made to your computer before this problem?

    Method 1: Fix the refresh rate.

    See: http://windows.microsoft.com/en-US/windows-vista/Correct-monitor-flicker-refresh-rate

    See also: http://windows.microsoft.com/en-US/windows-vista/Troubleshoot-monitor-and-video-card-problems

  • How can I see the option buttons all select and synchronize in the RAW window?

    Hello, after having recently update plugin bridge, I noticed that when I open the RAW window boxes to select all option and Synchronize are no longer visible in the upper-left corner as they were in previous versions. Is there a way to get these? Thanks for any help.

    No there is no way to get back the buttons. You need to click on the menu or use the shortcut keys: ctrl/cmd + A to select all and alt/opt-S for synchronization.

  • Acquire the values only when the digital output is high.

    Hello

    I work with test of transistor, whose door is controlled by the digital release of USB6289, related to BNC2120.

    Test plan:

    Door 1.transistor is enabled for 5seconds, with P0.0 for example

    2. then, everything remains off for 1secondes.

    3.p0.1 is used as digital output to activate the circuit passing him curent through in the opposite direction, P0.1 goes high for 3 seconds, PS: Gate is off.

    4. the same cycle repeats again.

    My question is to store values to the output of the transistor when P0.0 and P0.1 goes high, and these values should not change until my digital outputs respective again go high.

    I can access transistor by continiously read out my power supply values.

    and in the State off I want to read AI0 because at that time, my power supply is off, so that I can activate the circuit to pass the current in the opposite direction.

    Again, my question is to gain the output through power value when P0.0 is high and store them until the transistor turns on.

    and even for P0.1, acquire the value of output through AI0, when P0.1 is high and store it until it goes high again.

    Hopefully, I'm able to explain my problem clearly.

    Please help me.

    Concerning

    Anurag

    Think about what States (object:statemachine and determine when to use sequence Structures) do you want from t0... t(n-1), IF DAQmx generates outputs and/or inputs are absorbed and what needs to happen (event timed out), before move you on to the next 'State '.

    type def 'enum' with your different States:

    • initialize
    • wait (the user initializes times (sec) set for States, or whatever and presses button 'Start')
    • T0 (generate DigOutputs, store acquired data AnalogOutput (string output number) the register shift, before moving to the next State > user 'set time' must elapse (Note: the wait function allows you to control the rate of execution of loop and allow the CPU to respond to external events and system tasks and avoid using wait functions at the same time an operation of software...))
    • ...
    • t(n-1) if ' end (made requirement) "> goto 'stop', ' another (not requirement not)" > goto regardless of 'State '.
    • stop
    • write a text file of data (string).
  • Why Thunderbird creates duplicates in the trash when the displacement of unread emails and read in the trash of the Inbox?

    Mainly when I delete the unread messages in the Inbox, later when I look in the trash folder, the message will be twice in the trash? Is also happens with messages read, but not as frequently.

    In addition, when you compose an email, after sending, I have the email in drafts several times?

    RE: Multiple projects

    This sounds like you save copies 'Project' in the "Draft" folder on the server and not the folder 'Project' in the local folders.

    I guess when you compose e-mail, a copy of the draft is saved maybe more than once until the folder is synchronized, so to save more than one copy.

    Is it possible that there is a project of rogue email which you can see via webmail, but not through Thunderbird. This test by deleting all emails via Thunderbird project and right click on the project "folder and select"compact".» Then login to webmail, check the project folder to see if it is really empty.

    Another option:
    If you do not need to keep a copy on the server, then I suggest you use the "Project" folder in the local folders. Set up here:

    • Tools > account settings > Copies and folders for the account
    • Under projects
    • Select 'Other' and 'writes the Local folder.
    • Click OK
  • How can I reinstall windows xp when the computer does not start and there is no cdrom/dvd drive?

    I have an Acer netbook aspire one.  It will not boot past the windows logo.  I have a windows xp disc to reinstall windows, but the computer has no CD or dvd rom.  Can I copy cd of windows xp on startup SD memory card and reinstall windows?  Or can I run connect the non working pc a working PC to access the cdrom on the work pc to reinstall windows?

    First of all, you are mistaken when you say that the PC does not start.

    This is clearly starting. The problem comes from Windows, not with the real PC. It's actually a very important distinction!

    There are methods to repair Windows, but they can be a bit tedious. By all means, follow the advice given here to do if you're so inclined.

    If you would not rather to repair Windows (and I think it's interesting a try) or your repair attempts are unsuccessful, apparently, you would need to use an external optical disc drive and follow the instructions here:

    http://Acer.custhelp.com/app/answers/detail/A_ID/2631

Maybe you are looking for

  • iPhone ios 10 - music Up then to see play history?

    I (heart) Favorites 3 songs through Apple music and also added them to my following list upwards. I couldn't add to Playlist in time, b/c Apple asked me to turn on iCloud music library, and I wasn't ready to do. in any case, I thought that b/t, by cl

  • Photo overlay on video?

    I'm on El Capitan, but still only iMovie 8.0.6. I want to superimpose the photos on the video track of a project I created. I can drag a photo to the project library, but I can't seem to do great thing with her.  I want to run the images on the AV ba

  • Lost all history & bookmarks / can't create new

    Firefox opened after a reboot and all bookmarks and history have disappeared and I am unable to create new bookmarks or history.

  • Pavilion DV-7: My display brightness is down and I can't control it

    I have a Pavilion DV - 7 with windows 10 on it.  Recently, my screen went dark on my buttons for the brightness has stopped working and not where.  It's really hard to work on a computer that is half of the zero shine please help.  I don't know what

  • Everyone looks when you first start?

    Hey everybody,This isn't a big problem im just confused:It started to appear when I update my PP, AE, ME to 2015.3 version, now when I've demoted due to many problems, it is always there!All solutions? Can I delete a file or the registry, no pro at t