output and input simultaneously

Hello

I create a LabVIEW application in 2012 using a DAQ USB-6341 in the series X and DAQmx 9.5.5. I'm a bit ambiguous on the issue of handling the task. Here's what I want to do:

The LabVIEW program will automate a study that will include a series of tests.

Each trial starts with the push of a button.

Once the trial begins, I want to taste three analog inputs on the acquisition of data continuously.

A specified number of seconds after the start of the trial, I want to send a signal to one of the analog output DAQ channels that will communicate with a pacemaker.

Then the trial will end by pressing another button and the tasks will be closed.

That's what I'm not clear on: I understand that only an Analog input or output task can communicate with an acquisition of data at a time, when I try to perform a task that is greater than 1, I get error 50103. However, it is alo I understand that all the pathways involved in a task must be of the same type IO.

So my question is: is it possible for me to taste constantly during my tests and also a signal of output during the trial and if so, how do I configure tasks? I have attached a VI with what I have created so far. It runs only the attached party. If someone could help me understand the output, I would be very grateful.

Thank you

Quinn

Hey Quinn,

You can set a task to separate with its own clock source analog output.  On the X series devices, tasks of analog input and analog output have their own internal timing engines on which you can use.

Tags: NI Software

Similar Questions

  • PXI-6133 Pulse frequency output and input with DAQmx

    I am trying to set a pulse meter output frequency task and read this signal with a frequency counter input task input pulses.  I use a 2 PXI-6133, each connected to a BNC-2090 case has.  I want to output a square of a certain frequency with the task frequency meter pulse output and then read the frequency of this signal using a task of cost input frequency.  I don't know how to property set up these tasks, or how to define which device to use for each heap.  I don't know what terminals on the BNC-2090 is the counter of entry/sortient channels correspond to them because that is not displayed in the documentation of the PXI-6133 or documentation of BNC-2090.

    Please see the attached VI for my attempt to put this in place.  Currently, I get two errors:

    (1) error-200452 took place at the property Node DAQmx channel meter Test - referred to as property is not supported by the device or is not applicable to the task.

    2. the error-89136 at DAQmx Start Task - specified route cannot be met because the hardware does not support.

    If I remove two channels of property DAQmx where I try to put the terminals for the counters, while the program is running, but then I know not what terminals on the BNC-2090 meters are connected to!  This causes the DAQmx read for the cost in the tasks of frequency to timeout because it does not detect a signal.

    I would really appreciate the help to properly configure these tasks and determine what terminals on the BNC-2090 case has the task of counter will work on.

    I see a few problems in the code originally:

    1. For your CI task, you type is defined as a counter entry > frequency.  But on the node property of DAQmx channel for this task, you modify the CI. Property of PulseWidth.Term.  It should be CI. Freq.Term. set the entry regardless of the PFI line you do not want the input signal on.  Tip: you don't have to type the name of the device in at all.  Enter "PFI0", it's the same as "DevN/PFI0" since the unit has already been specified in the DAQmx Virtual Channel Create function.  The name of the device, leaving aside will make your code more flexible where you decide later to change the name of the device.

    2. Maps of the S series, such as the 6133, do not have the same flexibility to change the output terminals of tasks of meter you might find with M or X series device.  Page 83 of the S series manual watch what signals can be extracted to PFI lines - Ctr0Out is not one of these.  Instead, Ctr0 out is, by default, pin 2.  Cabling to a BNC-2090 6133 is certainly difficult to understand out (probably because the 2090 was designed to work with the materials of the E and M series), but if you compare the pinout of a PXI-6255 0 with the 6133 pinout connector, you will notice that they are essentially a match 1-1.  Pin 2 is PFI12 on the 6255, so I assume the same for the 6133.  All this to say, Ctr0Out always appears on the pin 2/PFI12 for the 6133 and you therefore cannot change the output terminal that your code is trying to do, having for result error-89136.  Remove this node from the property altogether and the error should disappear.

  • cRIO - H bridge using the PWM output and input only encoder control

    Hello

    I am currently working on a project to control a 230V brushed servo motor using cRIO. The engine drives a linear step and the final project needs to create a control of position of the engine that the user is able to enter a speed, position and control steps to move to this position.

    I use a bridge using NOR-9401 and H to power the motor circuit and a PWM output to move the engine. I also have an encoder, quadrature, connected to a NOR-9403 read position and speed. I use the example program of encoder for the NI 9505 - in my application.

    There is no voltage or current on the drive circuit sensors so I wouldn't be able to have a closed loop current in this case. The scene release mechanism is such that the position is locked if the motor does not move and I do not need a torque control to keep the engine in place.

    To achieve this, I just wouldn't be able to use a single PID VI (probably the FPGA VI express for discrete PID)?

    I am not very well versed in the theory of control, and therefore no indication in the common sense would help me a lot.

    Thank you very much!

    Sexy,.

    in general, it is best to use a cascade control loop structure but in principle must also be able to use the output of the control loop of position as an input to the PWM generator. The main disadvantage of this configuration is the current limitation missing. Without current meaning is no longer the only way to protect your engine from drawing too much current to limit to the current maximum output of your diet, or to limit the maximum duty cycle of PWM. Without current information, the last method is quite inaccurate, but better than nothing.

    I agree with Mike, you should look in the examples of the 9505 module and use the controller position vi of these examples. This PID controller is optimized for motion control applications and it is implemented in the fixed point arithmetic, offering the best performance on and FPGA.

    Kind regards

    Jochen Klier

    National Instruments

  • connect the sensor (0-5V analog output and 9-28Vcc power) to NI 9219

    I m chemical student here. And I'm not trying on the measurement of the pressure.

    I have a pressure sensor with the specification of 0 to 5 Vdc analog outputs and power supply 9-28Vcc. And I intend to plug the connector which can be used for the NI 9219 (4 analog input). Therefore, there are 6 terminals and I have to choose the correct mode voltage (which is the terminal 1, 2, 4 and 5 which will be used), is?

    So there are four wires for my sensor connector:

    Red: power supply (+)

    Black: Return supply (-)

    White: Output 0 to 5V

    Green: output

    Therefore, how to connect these wires to the national instrument?

    Looking forward to you guys.

    Thank you.

    Best regards

    David

    Hey David,

    My previous suggestion is wrong, it's good.

    Red (pressure sensor) = + power supply

    Black (pressure sensor) = - power

    Green (pressure sensor) = Hi, pin 4 (9219)

    White (pressure sensor) = Lo, pin 5 (9219)

    Sincerely,

    Krisna

  • I would like to receive a notification on my Apple Watch and iPhone simultaneously the messages/IM; not one or the other.

    I would like to receive a notification on my Apple Watch and iPhone simultaneously the messages/IM; not one or the other.

    I understand that if my Apple Watch is unlocked (or on my wrist) incoming Message notifications will be displayed on my watch. This allows to bypass the notification on my iPhone for messages.  I would like to find a way for Message notifications to simultaneously alert me on my iPhone and Apple Watch.

    Thoughts?

    Hello

    If you disable the detection of wrist (on your iPhone, in the application of the watch, go to: Watch My > General > wrist detection), it will make all notification alerts to be delivered to both devices. However, you will not be able to benefit from features including screen Wake on wrist lift, Apple pay and one unblock after placing the watch on your wrist.

    If you want Apple to consider adding an option for notification alerts to be delivered for both devices regardless of the other settings, you can suggest here:

    https://www.Apple.com/feedback/watch.html

  • HP pavillion x 360 13-a020nr: is is possible to install m.2 ssd and hdd simultaneously in hp pavillion 360 13-a020nr x?

    Is is possible to install the m.2 ssd and hdd simultaneously in hp pavillion 360 13-a020nr x or I'll have to remove the hard disk to install the ssd?

    @VBenedichuk

    Most of the time in the manual it looks like there are limits.

    Example if SATA and M.2 settled m2 must be the bootable disc.

    Example, if m2 is installed, then the other drive should be an SSD.

    For yours, I see no limitation.

    REO

  • Cannot save the settings in "text Services and input languages".

    I have "English (US)" installed and set as default and "Japanese (Japan), keyboard (MS IME)" and "Chinese (Simplified) - Microsoft Pinyin IME" installed under my keyboard services.

    Under "Text Services and input languages" on the tab "Advanced key settings", I have a 2 key enabled parameters. "Between the input languages" left alt + Shift and 'Chinese (Simplified) IME - Ime/NonIme turn' set to Ctrl + space

    I can't remove it. I apply every time, it just sets back to Ctrl + SPACEBAR again. I do not have this shortcut, but I don't want to uninstall my Chinese typing function.

    This seems to be a problem that affects many users, but still not fixed after years. Do you have any solutions?

    I found a registry tweak on a Chinese website. Basically:

    under HKEY_CURRENT_USER Control Panel input method hot keys 0000010 keys control,

    02c 00000, Ctrl-space,

    I changed it to 06C 00000, which means Ctrl - Shift - space.

    I don't know if the other numbers mean other combinations or how to find out. But it suits it. (requires restart).

  • EMERGENCY: Opening of a MS Access 2003 database in Ms 2003 and Vista simultaneously irremediably corrupts the database, erasing all forms.

    EMERGENCY: Opening of a MS Access 2003 database in Ms 2003 and Vista simultaneously irremediably corrupts the database, erasing all forms.  It is a progressive company upgrade to Ms Windows and Office 2003 to Ms Vista and Office 2007.  Some users now have the Vista Machines and still others 2003 machines.  They all share the object database, which resides on a SQL Server.  When the database is opened in 2003 and Vista users at the same time, the forms are destroyed and the database is permanently damaged.

    Means of access:

    http://answers.Microsoft.com/en-us/Office/default.aspx

    Office at the above link forums

    http://social.answers.Microsoft.com/forums/en-us/addbuz

    Access support at the link above.

    They will help you with your questions of access when repost you in the Office Forums above.

    See you soon.

    Mick Murphy - Microsoft partner

  • 'Open the drawer out press ok' message with the tray open output and pressed OK.

    'Open the drawer out press ok' message with the tray open output and pressed OK. Seems that the device does not believe that the drawer is open. This has happened directly after deletion of a paper jam.

    Sometimes a small part being out of alignment can make a sensor turn off inside the printer, so make sure you put everything back together right first.  Although you to act this way, looks at the printer closely for any broken pieces.  If you do not see what has obviously broken, try to do a hard reset.  Instructions that are below.  If the hard reset does not clear the error, the output bin sensor may be broken.  If this is the case, you will need to get a new printer, as the sensor is not repairable.

    To do a hard reset:
    1. make sure that the printer is turned on.
    2. pull on the power cord from the printer.
    3. pull out the power cord from the wall.
    4. wait for 30 seconds.
    5. plug in the printer and turn it on.

  • Lets run the multilingual method and input of blackBerry Smartphones

    I've updated the 7.1 os and it took me to multilingual method and input. I had once managed a whole upward. in any case, it seemed now missing on the phone, and on the desktop PC does not show language. I did remove the OSI and reinstall, the the same problem. I want that it multilingual and other language input method. Any suggestion? Please take note.

    OK... that now makes sense... the automatic method detects your BB and the level of operating system installed, but is not able to download correctly what it needs from the Internet to continue. And the Red Star means that there is an update, he wants to offer you, but again he has trouble to download what suits him.

    So, what you need to do is to defeat the automatic method and force instead of things. The easiest way is, on a PC (you can not do on MAC):

    1) uninstall all the BB OS packages from your PC,

    (2) make sure you have the BB Desktop Software already installed

    (3) download and install to your PC, the BB OS package you want:

    • http://us.BlackBerry.com/support/downloads/download_sites.jsp
    • If you want to just reload your current version, you can access your carriers download portal and get the same exact package you are already running
      • KB23393 How to check the model number and the version of the BlackBerry device software on a BlackBerry smartphone
    • But if you want to go for an update, you can see what your company has, or you can dig into all of the companies that support your specific model BB number and compare versions of each provision.
    • Also consider this information as you choose your BB OS package:
      • KB05305 Location of support for BlackBerry smartphones

    4) remove, on your PC, all copies of the SELLER. XML... There will be at least one and maybe 2, and they will be located in the same way or to (it changes based on your version of Windows) these files:

    • C:\Program Files (x 86) \Common Files\Research In Motion\AppLoader
    • C:\Users\(your Windows username) \AppData\Roaming\Research In Motion\BlackBerry\Loader XML

    (5) run the Desktop software and connect your BB

    If you chose to update your BB OS, then the software should immediately offer the bundle of BONES that you have installed on your PC, before you can do anything else. If, during the process, your BB votre BB a '507' error, simply unplug the power cord of the BB USB and reinsert it. do nothing else... This should allow the installation to continue.

    If you have chosen your BB exact same OS package that is already running on your BB, then you should be able to proceed with the installation language you want (assuming, based on the location of KB, you have installed the right BB OS package that includes the language of your choice).

    Do not forget to save.

    Good luck and let us know!

  • Are the AdobeID and inputs of password that I connect on your website are the same entries that I use to install Digital editions 4.5 on my computer?

    Are the AdobeID and inputs of password that I connect on your website are the same entries that I use to install Digital editions 4.5 on my computer?

    Hi % 20% 20mark bark.

    Yes, it would be the same. However, you need to make sure that it is exactly the same adobe id with which you made the purchase.

    Let us know if this helps!

  • I used REGEXP_REPLACE to remove Scott. is it possible to delete all information on Scott and storage simultaneously using REGEXP_REPLACE...?

    I used REGEXP_REPLACE to remove Scott. is it possible to delete all information on Scott and storage simultaneously using REGEXP_REPLACE...?


    Select REGEXP_REPLACE (dbms_metadata.get_ddl('TABLE','EMP'), '("Scott")', ", 1, 0, 'i') twice;


    result:

    CREATE TABLE 'EMP '.

    (SELECT 'EMPNO' NUMBER (4,0) NOT NULL,)

    'ENAME' VARCHAR2 (10),

    VARCHAR2 (9) "JOB."

    "MGR" NUMBER (4,0).

    "SAL" NUMBER (7.2).

    "DEPTNO" NUMBER (2.0)

    ) PCTFREE, PCTUSED, INITRANS 40 10 1 MAXTRANS 255 NOCOMPRESS SLAUGHTER

    TABLESPACE 'USERS '.


    I want to:


    CREATE TABLE 'EMP '.

    (SELECT 'EMPNO' NUMBER (4,0) NOT NULL,)

    'ENAME' VARCHAR2 (10),

    VARCHAR2 (9) "JOB."

    "MGR" NUMBER (4,0).

    "SAL" NUMBER (7.2).

    "DEPTNO" NUMBER (2.0)

    )

    Hello.

    In fact, it's a Japanese forum here.

    I'm sorry, English is not good for me...

    According to the reference,.

    DBMS_METADATA

    The description of the parameter called SEGMENT_ATTRIBUTES, it is written like this.

    > If TRUE , include clauses attributes segment in the DDL. If FALSE , omit them. Default value is TRUE .

    Before you SELECT it, it's OK if you run the following.

    exec DBMS_METADATA. SET_TRANSFORM_PARAM (DBMS_METADATA. False SESSION_TRANSFORM, 'SEGMENT_ATTRIBUTES',);

    I hope you find it informative.

  • Output and group records into several column format problem

    Hi all

    I'm banging my head on the wall with this one. I have a query that displays the result in the form of two columns, it works fine.

    I have a problem when I try to use "group"for the field DSC1 doesn't show duplicates."  He transforms the output in column 2, column 3 and column 4 spots white all along.

    Someone knows how can I get it to display 2 columns of output and does not show in double DSC1 fields? The following are examples of what is happening:


    1 example of what he does without group (note to Apple is twice, which is not):

    Apples apples

    Orange peaches

    banannas grapes

    What I need to do (only show each DSC1 once and continue with the format of two columns) :

    oranges apples

    Fisheries banannas

    grapes

    Here is the code I use:

    < cfquery name = "getProduct" datasource = "mydb" >
    SELECT * from ecitm
    WHERE DSC1 <>' '
    order by DSC1

    < / cfquery >

    <! - start the 2-column output table - >

    < table border = "0" width = "90%" border = "0" align = "center" cellpadding = "5" cellspacing = "5" >

    < cfset newrow = false

    < b >
    < cfoutput query = "getProduct" group = "DSC1" >

    < cfif newrow EQ "true" >
    < b >
    < / cfif >
    < td >
    #DSC1 #.
    < cfif DSC2 NEQ "" > "".
    < br >
    #DSC2 #.
    < / cfif >

    < br >
    < a href = "DetailsList.cfm? ID = #getProduct.ID # & litm = #getProduct.LITM #" > VIEW < /a > DETAILS
    < table >

    < cfif getProduct.currentRow MOD 2 EQ 0 >
    < /tr >
    < cfset newrow = true >
    < cfelse >
    < cfset newrow = false >
    < / cfif >


    < / cfoutput >
    < /tr >
    < /table >

    The currentRow always property will count the number or records in the record setting loop, if you their output or not.

    Since you are not the output values for each record in the Recordset, you must count the itterations yourself.

    Put a meter of itteration before the loop.

    Update the counter at the top of the loop.

    OR on newer versions of CF

    Reset the counter in the true clause of the block, where you also define new line. >

    Then use the variable in the iit instead the currentRow property to determine the number of items have been posted.

    **** OR ****

    You could do a simple SQL command does not get duplicates first and then use a loop of simple without any of the grouping and additional logic that you do.

    
    
    SELECT DISTINCT *
         FROM ecitm
         WHERE DSC1 <> ' '
         ORDER BY DSC1
    
    
    
    
         #DSC1#
         
    
        
    
    
    
  • How to write constantly to analog output and read from analog inputs

    Hi all -

    I had a question about writing continuously to analog output reading simultaneously an analog input.

    It's my first time to post a message to the community, so please let me know if I made mistakes.

    I use Labview 2011 with a NEITHER-DAQ USB 6215.

    I'm looking to generate a waveform and write it continuously in an analog output. It is then connected to an entry on the acquisition of data, where I am trying to sample the analog signal. (I realize, there is a system of trivial, but I'm hoping to build on it once I have run).

    The task of reading from the analog input works fine, as I tested it in several other cases. I have a problem writing to the analog output.

    For this task, I tried to follow the "Gen Cont Wfm Clck Int' VI to generate the wave form and start the task. I then try to write to the output of the analog timed loop. However, it does not seem to transmit a signal and doesn't give me any errors.

    I have attached the VI but also a screenshot.

    Please let me know if anyone has any ideas. I would really appreciate the help!

    Thank you

    Peter Borgstrom

    We will review your tasks one at a time.  First of all, the task of generation/Analog output Waveform.  Generate you a waveform (I'm unsure of your VI if it is a fixed waveform or not) and send it to a defined output function to produce a waveform continuously, using N-channel and samples of N (where you set not these previously).  You should not put this inside has timed loop, as the DAQ hardware has its own clock - if you simply put it in a while loop (with a stop to break out of the loop), the loop will call the function for the first points of N, wait until all N have been taken out, then call it again to another N points (up to what you press Stop).

    Now, suppose that you have the output connected to a load voltage (say a decent resistance).  You can wire the input terminals of your A/D converter through the same load and set up a similar analog input loop, running in parallel (i.e. in its own independent of the OD loop, while loop).  You pourriez start together (with, say, a merged error since the initialization code line loops HAVE and AO become lines of error in "loops of sampling" described above), but you might want to delay loop (a little) the AI so that the OD has a chance to set the voltage before the bed.

    I hope this helps.

    BS

  • Measure the time difference between a digital output and an analog input that responded to the questionnaire

    Hallo,

    I use the following system:

    • OR PXI-1044 with controller NI PXI-8109

    • OR PXI-2564 switch module to turn on the monitor of my test device

    • Data acquisition multifunction NI PXI-6259 to measure the signal that responded to the questionnaire jump

    The two cards are the same - PXI trigger bus. For both, PXI-2564 and PXI-6259 I use DAQmx to set the reading and writing of the channels.

    Now, I want to measure the time between the digital output, my unit turns and the analog input, which measures the response of my system.

    I can't do work by myself, please help me!

    I thank Ludwig.

    Hi Ludwig,.

    If you can't give us any VI we have difficulties with to help you.

    Because I Donat knowledge how your program is mounted it is not easy to know where you should enter signals.

    Here's a question similar to yours:

    http://forums.NI.com/T5/LabVIEW/best-way-to-measure-time/TD-p/178704

    and 2 external links:

    http://www.ehow.com/how_8698983_measure-time-LabVIEW.html

    http://objectmix.com/LabVIEW/385152-how-can-i-use-LabVIEW-measure-time-between-analog-pulses.html

Maybe you are looking for

  • Yamaha AC - XG VDM

    I can't get the update for SP 1 / SP2 on my computer. When I downloaded and installed the file I get an error message saying "the driver was not installed.I tryid running the 'accuinst' to delete the old files, but even the new ones will not be insta

  • I have a laptop Tosiba (old), he fell of the bed when I went to activate it says operating system not found.

    I have the original restore disk came with the computer. It takes 5-6 tries before you can see the computer was backed up on an external drive and it allows me to pass the driver files do not even half of them are installed. I don't have the money to

  • OfficeJet 4500 ADF not power

    When I first set up and ran through the ADF documents using the scanner everything worked very well.  Last night, I used the glass to make a copy and now when I scan it try to read the glass and not the ADF.  There is nothing in the glass and of cour

  • HOW CAN I GET RID OF COPY HS-ERR-PID4132

    I CONTINUE to RECEIVE HUNDREDS OF COPIES OF THE hs-err-pid4132 and pid3760 whenever I open my computer

  • Custom AF:table, the default filtering view filtered etc.

    JDeveloper 12.1.3I am trying to assemble the pieces, I found on these forums and elsewhere on the web, given that I use 12.1.3 do not know if what I found, it is best practice, given that some ideas are dated.Let's say I have a table of addresses, se