Switch between outputs, digital and analog input

Forgive me, I'm sure that there is a simple answer to my problem, but being relatively new to LabView, I do not know how to proceed.

With the help of producer/consumer achitecture I am trying to accomplish the following:

Producer

  1. Relay nearby
  2. Read the voltage

Consumer

  1. Compare the voltage to the expected value and append the true/false value in a table.

It will be run 8 times then wait for input from the user through the dialog box run then 8 times.

My question/problem is how I set up so that the digital analog in and out are timed correctly and get a sample of AI after each relay is closed?

Material used is the cDAQ, (2) NI9481 & NI9221 (1)

Attached, is the vi that I came with this day and a diagram to illustrate the intended application.

Any help is greatly appreciated.


Tags: NI Software

Similar Questions

  • 6009 outputs digital and analog input synchronization

    Hello

    I work in a program NI 6009. I want to leds by car with outputs digital NI 6009. For example, leads first will be on until what 200 micro seconds then second led will be on up to 200 micro seconds, and then first of all led will be on up to 200 micro seconds. I'll take led with photodedector signals and connect analog output photodedector input NI 6009. I want to synchronize the outputs digital and analog input and separate the first and second led signals the analog input for NI 6009 channel. How can you do with NI 6009? Please ADV

    You can not do with the USB-6009 case. Its outputs digital are software with a maximum speed of slightly more than 100 samples per second. The outputs can produce 200 microsecond pulses and cannot be synchronized with the analog input.

    You need a device with outputs digital hardware timed or counters that can produce a pulse outputs.

    You can synchronize a bit digital output and analog input recording signal on an additional channel to HAVE. Will allow you to see the photodetector and LED the drive with the same schedule and such resolution as described by the sampling rate I. The maximum sampling frequency of AI on the USB-6009 case is 48 kHz that is shared by all channels. If you have two lights to led and photodetector two signals maximum sampling rate would be 48 kHz/4 = 6 kHz which is barely fast enough for your 200 US signals. For more than 4 channels, it won't be fast enough.

    I suggest a simple oscillator circuit building and use it to clock a flip flop. This will give you alternating signals to drive the LEDs. You can use a line to reset the flip flop to give you control without the need for high speed.

    Lynn

  • Digital and analog inputs simultaneously - NI USB-6009 and NI USB-6212 - ANSI C

    Hello

    I'm reading at all times and at the same time analog and digital inputs. Digital and analog samples must be sampled at the same clock and acquisition should be started (triggered?) at the same time (I don't want, after some time, analog reception more digital samples - the opposite is also true).

    I found an example (in C source code) "National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Synchronization\Multi-Function\ContAI-Read dig Chan" and tried to run with two USB cards: NI USB-6009 and NI USB-6212. Unfortunately, the two results by mistake, as described below:

    DAQmx error: the requested value is not supported for this property value.
    Property: DAQmx_SampTimingType
    You asked: DAQmx_Val_SampClk
    You can select: DAQmx_Val_OnDemand

    Task name: _unnamedTask<1>

    State code:-200077
    End of the program, press the Enter key to exit

    -Is it possible sync analog and digital acquisition in the paintings?

    -If so, how?

    Thank you

    Hello tcbusatta,

    Two of these modules, USB = 6008 and USB-6212, support only timed software inputs and digital outputs.  This means that you cannot define material timing (like finished sampling or continuous) for these modules.  Digital lines can be retrieved or written once to each call DAQmx read.

    This means that you will not be able to get any type of synchronization tight between the analogue and digital channels.  You will need a Board such as the NI USB-6341 in order to synchronize the AI and DI closely.

  • 9174 triggered output pulses and analog input synchronization

    Hello

    I have a cDAQ 9174 with a 9215 analog and a 9401 module. I wonder if this configuration is suitable for my use: a trigger digital extern is sent to the system to trigger a task of analog input, trigger a generation of pulses, with another counter, count of trigger events. Using two counters on 9401, it seems I have no left Terminal at the entrance of my trigger signal. The trigger DAQmx vi does not show counters entries in the list of signals; and if I select a PFI line, an error that says that the line is already in use..., I missed a few obvious solution? I have change my 9401 to a 9402 did?

    Thanks for any help,

    Vincent

    Hi Vincent,.

    So, looks like you need a single line to use as input to trigger events and another line to use for a generation of pulse output.  This should indeed be possible, since the 9401 has 8 lines that are configurable nibble (i.e. lines 0:3 could be configured as inputs, while the 4:7 lines could be taken out, or vice versa).

    However, a big caveat with the 9401 is that the lines must be reserved before each task is started.  This is a limitation of the direction of the line is implemented in hardware and is common as customers when something they using the 9401.  Explicitly reserving your tasks before starting must correct the behavior if that is indeed what you see.

    Best regards

  • M6-1105DX: M6 Envy laptop allows you to quickly switch between classic interface and metro

    My phone starting son suddenly quickly switch between desktops classics and metro when you log on his user account.  When I booted in safe mode it is moved, and I was able to move normally between two desktop computers using the touch pad and start of the windows key.

    I then tried selective startup, disabling each item displayed in the Manager of tasks (one at a time) and reboot.  These changes had no effect.  Startup items listed are:

    HP Coolsense

    HP Messenger service

    hpww ECS application

    IDT Audio of PC

    Power DVD RC Service

    Scan the Activation App toPC

    Synaptics touchpad enhancements

    I don't know what to try at this point.  Any suggestions would be greatly appreciated.  Thank you

    Bill

    Hi there @Bill38,

    You should be able to run a virus scan and use the Microsoft Fix tool, check the drivers etc without failure or Mode in Mode safe mode with networking.

    Let me know how it goes.

    Thank you.

  • keyboard shortcut to switch between the background and outline in flash?

    It becomes tedious to have to scroll over the swap icon to switch between the background and outline. I'm on a macbook pro and had no chance of finding a shortcut or hotkey for it.  This would make my work flow a lot faster if there was a.  If anyone knows a shortcut, please hit me with it. It would be greatly helpful!

    -Steven

    To do this use jsfl:

    setStrokeColor.jsfl:

    fl.getDocumentDOM () .setFillColor (document.getCustomFill("toolbar").color);

    setFillColor.jsfl:

    fl.getDocumentDOM () .setFillColor (document.getCustomFill("toolbar").color);

    Link these jsfl files in your commands menu and assign shortcuts to them.

    To locate the folder where these commands on your machine/OS google: "Flash orders location JSFL.

  • Keyboard shortcut to switch between the pixels and inches?

    Does anyone know if a keyboard shortcut allowing me to switch between the pixels and inches in photoshop cs6/cloud?

    You can change your keyboard Short and add your own shortcuts.  An easy thing to do would be to write a small script him would recover the units of Photoshop preferences and rule if its pixels switch in inches and if he switch inch toggle pixels between the two.  Once you have this script record an action that uses the scriot and assign a shortcut to the action key.

    if (app.preferences.rulerUnits==Units.PIXELS){app.preferences.rulerUnits=Units.INCHES;}
    else { if (app.preferences.rulerUnits==Units.INCHES){app.preferences.rulerUnits=Units.PIXELS;} }
    
  • SHORTCUT to switch between the paragraph and not in CS 5.5

    344_PARA.png

    Y at - it a shortcut to switch between both PARAGRAPH and CHARACTER?

    See above.

    On Mac it's command + option + 7; Windows is Ctrl + alt + 7.

  • Questions about the synchronization between output and analog input

    Hi all

    I now have a simple task which head a signal voltage (from PXI ao0) on a circuit and then your comments a voltage at the terminals of a component, for example, that one of the resistors in the circuit, through ai0 on PXI. So in this case, the synchronization between analog input and analog output must be made to avoid error of phase shift.

    I tried to build my VI by learning this example: https://decibel.ni.com/content/docs/DOC-3882

    However I have a few questions.

    1. I noticed that there is a merged error fed the "start task" sub VI for the analog output.  What is the point of fusion to mistake?

    2. I enclose my VI (also shown below) for the output voltage. I put my writing of DAQmx Subvi in the while loop so that I can change the voltage while the VI is running.

    However, in the example, the author has been reading outside of the loop and before even the start task. What difference will it make?

    3. I have also attached my synchronized VI. I always put the wavegeneration and the DAQmxwrite in the loop. A bulging guard error saying about samples is not available and needs to a higher sampling rate or a longer wait time. What causes this?

    I appreciate that these problems can be solved. Thanks to you all.

    (1) first you need start the task of acquiring, he'll wait for trigger here. And then you start the build task that provides this trigger. If acquisition could trigger and never start.

    (3) you must first write something in the buffer (writing DAQmx), then only you can generate it (Daqmx Start).

    Check Cont Gen tension Wfm - Int Clk - no Regeneration.vi in the help-> examples for example.

  • How can I impliment a delay between the analog output and analog input (started by an external analog trigger)?

    I am acquiring several channels of analog voltage input at the same time, I need to send an output analog two seconds after the start of the entry.

    I'm running an experience with accelerometers on a query table.
    I start the trigger and the table remains still for two seconds, which allows a reference level for all sensors.
    Then the output signal of the VI removes the break in the motor controller.
    The speed measured by the encoder is sent to one of the input channels.

    In this way, our accel and speed data are synchronized.

    After it acquired the analog input data out put must be reset to zero.

    MULTI.vi

    I've updated the link above works of VI, I used a property node to solve the problem.

  • Synchronous Digital and analog I/O daqmx

    I have 2 PCI - 6254 s in a linux machine and I am trying to sync the analog input (ai0:1) with the incoming digital data (port0) data.  I fed a sample

    clock to Dev1/PFI0.  (I currently use a little the e/s from one of the boards installed) Somehow, I can't align the analog and digital data.  I know because I use digital data to reverse the polarity of the analogue data still incoming digital data (print buffer) are correlated with what is happening in the name of the analog data.

    If I use the AI/sampleClock internal as the common Terminal analog and digital data seems functional and are repeatable.

    Thanks in advance for your suggestions.

    The problem is that the two tasks are not guaranteed to start at the same time because they are not sharing a common start trigger.  In other words, there will probably be a nondeterministic number of samples of phase difference between the two acquisitions.  Unfortunately, the digital I/o on this forum does not support any which trigger feature you can not use just a common starting trigger.  Probably the best thing to do in light of what you have described so far is to use PFI0 as the AI sample clock and change the clock for your digital/Dev1/I/SampleClock task.  You must then make sure you start your digital task before the task to HAVE it.  This should actually slave of your digital clock to the clock of the analog task and actually start both at the same time.  Given that each task physically uses a different signal than its clock (PFI0 vs an exported version of AI/SampleClock), there will be a small amount of latency between the two.  However, this should be the order of tens of microseconds, so I do not have a significant impact.  Also, as the digital task is actually controlled by the clock of the analog task, it will actually start and stop the analog task you called stop task on the digital task.  I hope that this will not be a problem for your application.

  • Switching between the AV and other terrestrial channels

    I have currently my Qosmio in my room connected to a box digital sky (free channels only) using the AV-IN jack. Now, my question is really about Windows media Center 2005. If I added an aerial socket, can I switch the av in and other channels?

    Thank you

    Hello David

    I didn't try because I have at home only Sam receiver, but as much as I know Windows Media Center cannot change between two separate signal sources. The only thing you can try is to plug land into Sky box and loop by digital signal box.

    Please try it and let us know if it works. It's very interesting question, and it may be useful for other users.

    Bye and good luck!

  • Digital and analog simultaneous inter channel delay

    I need to a simultaneous analog input 1 channel and 1 entered digital who intend to make possible acquisition of maximum speed. Of course I expect no delay channel inter if the two entries on the edge of clock sample even sampling. But this example shows unexpected behavior. Restart acquisition regularly shows different delays inter channel. I hope there is someone there to help out me. See the included example.

    I asked the support of National Instruments and they came with an adequate solution.

    Time t (0) stamp in the waveform is NOT the start time of the acquisition but it is the time the buffer is read.

    To demonstrate this applies the same "pulse train" to the two channels and t (0) all forms of wave at the same time of departure. Observe that the edges of both signals match exactly. Because a single channel is a digital input, we make the logic of levels of tension into account.

    Thanks to Henk Talsma
    National Instruments
    Engineering applications

  • Switch between the graph and the table as in the DAQ Assistant

    I was wondering if it is possible or if anyone has any success making a user interface, such as the DAQ Assistant, where you can switch between a graphical output or an array of the recorded signals.  I would like to have this feature in my code .VI.  From now on, I'm just a waveform graph in my front panel.  I'd love to be able to alternate between this waverform table and a table of output values. I have attached a few screenshots to explain what I mean.

    Hello

    Personally, I like the TAB ideas that have been validated, but you can also use property nodes and the visible value.

    Good luck.

    Steven

  • Switching between primary CARS and standby instance

    Hi all

    I'm using Oracle 11 g 2.

    I'm redoing a switch between the primary data base (RAC 2 knots) and physical standby (single instance)

    If my primary is the only forum I've followed the steps below:
    On the standby
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT;
    
    On the primary database:
    alter database commit to switchover to standby with session shutdown;
    shutdown immediate;
    startup nomount;
    alter database mount standby database;
    
    On the standby again:
    
    alter database commit to switchover to primary WITH SESSION SHUTDOWN;
    
    On the new standby:
    
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT FROM SESSION;
    now, and since my first is CARS when I'm working on switch I get the below error:
    SQL> alter database commit to switchover to standby with session shutdown;
    alter database commit to switchover to standby with session shutdown
    *
    ERROR at line 1:
    ORA-01105: mount is incompatible with mounts by other instances
    In addition, when I want to apply the remaining steps (below step), can I do it on every single instance? or is it all still to do using srvctl command:
     
    alter database mount standby database;
    Kind regards

    Hello

    Since you are using 2 primary CCR node, so for the failover operation, you need to stop
    instance (instance 2 assuming) database.

    Assume your node1:
    host name is dcpdb1
    and node 2:
    host name is dcpdb2

    and Eve hostname is drpdb1

    Then follow these steps for the digital switchover .

    How to transition from primary school on the eve of the database?

    Process:

    On the principal server, check the log of the last archived redo and force a log switch.

    * # Connection as the user Oracle Dcpdb1 # *.

    SQL > SELECT sequence #, first_time, next_time
    V $ archived_log
    ORDER BY next_time;
    SQL > ALTER SYSTEM SWITCH LOGFILE;

    Check the new archived redo log has arrived on the standby server and is enabled.

    * # Connection as the user Oracle Drpdb1 # *.

    SQL > SELECT sequence #, first_time next_time, applied
    V $ archived_log
    ORDER BY next_time;

    * # Connection as the user Oracle Dcpdb2 # *.

    SQL > SELECT sequence #, first_time, next_time
    V $ archived_log
    ORDER BY next_time;

    SQL > ALTER SYSTEM SWITCH LOGFILE;

    Check the new archived redo log has arrived on the standby server and is enabled.

    * # Connection as the user Oracle Drpdb1 # *.

    SQL > SELECT sequence #, first_time next_time, applied
    V $ archived_log
    ORDER BY next_time;

    * # Connection as the user Oracle Dcpdb1 # *.

    SQL > SELECT SWITCHOVER_STATUS FROM V$ DATABASE;

    SWITCHOVER_STATUS
    --------------------
    IN THE STANDBY MODE

    * # Connection as the user Oracle Dcpdb2 # *.

    SQL > SELECT SWITCHOVER_STATUS FROM V$ DATABASE;

    SWITCHOVER_STATUS
    --------------------
    IN THE STANDBY MODE

    * # Connection as the user Oracle Drpdb1 # *.

    SQL > SELECT SWITCHOVER_STATUS FROM V$ DATABASE;

    SWITCHOVER_STATUS
    --------------------
    NOT ALLOWED

    * # Connection as the user Oracle Dcpdb2 # *.

    SQL > shutdown immediate
    The database is closed.
    The database is dismounted.
    ORACLE instance stops.
    SQL >

    * # Connection as the user Oracle Dcpdb1 # *.

    SQL > ALTER DATABASE COMMIT to SWITCH STANDBY mode PHYSICS WITH the STOP of the SESSION;

    Database altered.

    SQL >
    SQL > shutdown immediate
    ORA-01507: database not mounted
    ORACLE instance stops.
    SQL >

    SQL > startup mount
    ORACLE instance started.
    System Global area 1.5400E + 10 bytes
    Bytes of size 2184872 fixed
    7751076184 variable size bytes
    7616856064 of database buffers bytes
    Redo buffers 29409280 bytes
    Mounted database.
    SQL > SELECT SWITCHOVER_STATUS FROM V$ DATABASE;

    SWITCHOVER_STATUS
    --------------------
    AT THE ELEMENTARY LEVEL

    SQL >

    * # Connection as the user Oracle Drpdb1 # *.

    SQL > SELECT SWITCHOVER_STATUS FROM V$ DATABASE;

    SWITCHOVER_STATUS
    --------------------
    ACTIVE SESSIONS

    SQL > alter database validation at the transition to the primary with the stop of the session;

    Database altered.

    SQL > shutdown immediate
    ORA-01109: database is not open
    The database is dismounted.
    ORACLE instance stops.
    SQL >
    SQL > Startup
    ORACLE instance started.
    System Global area 1.5400E + 10 bytes
    Bytes of size 2184872 fixed
    7717521752 variable size bytes
    7650410496 of database buffers bytes
    Redo buffers 29409280 bytes
    Mounted database.
    Open database.

    * # Connection as the user Oracle Dcpdb1 # *.

    SQL > alter database open read-only;

    Database altered.

    SQL > change recover managed standby database disconnect log file using current;

    Database altered.

    * # Connection as the user Oracle Dcpdb2 # *.

    SQL > startup mount
    ORACLE instance started.

    System Global area 1.5400E + 10 bytes
    Bytes of size 2184872 fixed
    7751076184 variable size bytes
    7616856064 of database buffers bytes
    Redo buffers 29409280 bytes
    Mounted database.
    SQL > alter database open read-only;

    Database altered.

    SQL > change recover managed standby database disconnect log file using current;

    Database altered.

    SQL > SELECT SWITCHOVER_STATUS FROM V$ DATABASE;

    SWITCHOVER_STATUS
    --------------------
    NOT ALLOWED

    SQL >

    * # Connection as the user Oracle Drpdb1 # *.

    SQL > SELECT SWITCHOVER_STATUS FROM V$ DATABASE;

    SWITCHOVER_STATUS
    --------------------
    IN THE STANDBY MODE

    * # Connection as the user Oracle Dcpdb1 # *.

    SQL > SELECT SWITCHOVER_STATUS FROM V$ DATABASE;

    SWITCHOVER_STATUS
    --------------------
    NOT ALLOWED

    SQL >

    * # Connection as the user Oracle Dcpdb2 # *.

    SQL > SELECT SWITCHOVER_STATUS FROM V$ DATABASE;

    SWITCHOVER_STATUS
    --------------------
    NOT ALLOWED

    SQL >

    * # Complete passage # *.

    Check

    * # Connection as the user Oracle Drpdb1 # *.

    SQL > alter system switch logfile;

    SQL >
    SELECT the sequence #, first_time, next_time
    V $ archived_log
    ORDER BY sequence #.

    SQL > archive log list

    * # Connection as the user Oracle Dcpdb1 # *.

    SQL >
    SELECT the sequence #, first_time next_time, applied
    V $ archived_log
    ORDER BY sequence #.

    SQL > archive log list

    * # Connection as the user Oracle Dcpdb2 # *.

    SQL >
    SELECT the sequence #, first_time next_time, applied
    V $ archived_log
    ORDER BY sequence #.

    SQL > archive log list

    Thank you
    Solaiman

    Published by: 876149 on April 12, 2013 11:51

Maybe you are looking for

  • I can't use the email application to send emails.

    I was wondering if the port are bad or whatever, I've included a few screenshots, hoping that they will contribute.

  • My Inbox keeps asking for a password, but when I put in it does not work. How to fix?

    "(kay, je ne sais pas quel est le problème, mais j'ai quelques théories: 1) I sent a set of images slap to my"[email protected]"email account (I use e-mail to contact you because I can't go on my main email)." The account that I signed up with is 'tvq

  • wireless signal

    Why is my aspire a cloudbook 14 internet signal keep going up and down and logout

  • How can I restart my computer?

    last night I turned off the power my computer without closing correctly, today early upward, I received this error box instead of opening windows: error isass.exe - application (this is the title of the box) it is written in the box: failed to initia

  • Good way to create a fluid page

    Ok... I'm new to Dw and its my intention to create a fluid page Web site. During the creation of the index page, I got the following below< div class = "gridContainer clearfix" >< div id = "LayoutDiv1" >I don't know if I need to change these containe