Question about multi analog outputs voltage outfit

I am programming my NI USB-6008 with V ++.

Now, I have a question. The unit has 2 analog outputs.

When I put the "ao0" channel to a certain tension, then stop this task. Start another task, then the string value "ao1" some tension. When I do the second task, ao0 held the voltage set in the first task?

Thank you.

Hi Lowsfer-

Yes, the analog output of AO1 status will remain in the last State it was before the task is stopped.  As long as the device is not reset or the computer is not turned off, the analogue output will maintain the last tension that you specified, regardless of what did the other Ao channel.

I hope this helps.  Good luck with your application!

Tags: NI Software

Similar Questions

  • Scan USB 4431 DC analog output voltage

    Hi all

    I have NI USB 4431 Analyzer of dynamic signals. I want to generate constant tension on the port AO0 of this material. I tried to use the Gen Update.vi blood sample, but it is said that only updated the HW Timed mode cannot be used with this equipment. When I use the Test of MAX Panel, I can generate a constant tension.

    How can I make it happen in Labview? Can someone help me?

    The USB-4431 can be used to generate a voltage, but to do this, you actually create a timed task equipment.  This is because it uses a DAC delta-sigma, which must be clocked to produce output.  To do this, I would recommend that you set up the device to perform a finite generation.  The data you write are just the DC value that you want to copy, repeated.  Then you want to define the area of OCCUPANCY. Property of IdleOutputBehavior.  In LabVIEW, this is located in DAQmxChannel-> outputs Analog-> General Properties-> output Configuration.  In the C API, you would call DAQmxSetAOIdleOutputBehavior to DAQmx_Val_MaintainExistingValue.

    To summarize:

    (1) create output over task

    (2) configure the IdleOutputBehavior property

    (3) write the data (value of DC, repeated)

    (4) to start the task.

    This should lead to the value of the DC output.

    Hope that helps,

    Dan

  • Error-200524 when you try two analog output voltage signals

    I am train to the output of two signals to analog voltage simultaneously using Labview 8.2.1. One is a waveform to produce sound, and the other is a trigger on another computer (using labview 6.1). I've been doing error-200524 write DAQmx. Here is a screenshot of my VI:

    The error message says:

    "Measurements: writing cannot be performed because the number of data channels does not match number of channels in the task."
    When writing, provide data for all channels in the task. You can also change the task so that it contains the same number of channels as the written data. "

    How can I solve this problem? Thank you.

    Show you only a waveform in the block diagram.

    Here is a picture that shows what I told you to in my previous post.

    The waveform connected at element 0 of the 'picture to build' will be emitted on channel 0.  The waveform that is connected to the item 1 of the 'picture to build' will be emitted on channel 1.  The instance of 'DAQmx writing' is 'Analog 1 D Wfm NChan NSamp.

    Hope that is more clear!

    d

  • Equium L20-198: Question about BIOS and output s-video

    I seem to have two problems with it and that's when I put the bios password on above it on the screen is rubbish, scrammble symbols. Also is it supposd to come with s-video output, but it is a black plastic in place place

    Hello

    I certainly know that the S-video port is not available on all models Equium L20. Please check the specifications of the laptop even though I think that your model should have S-video port. Please contact your local dealer and talk with them about it.

    Your device has a valid warranty and if you think that there is a technical problem, contact the Service partner and explain the problem. Please don t make some BIOS update experiences if you are not familiar with this procedure.

  • Question about multi-channel information

    Hello I am trying to get a CSV file with some information on the paths with this script:

    $lunpathinfo = @ () $esxName = "My_HostName" $vmhost = Get-VMHost-name $esxName = get-view $hostview $vmhost.id $hostview.config.storagedevice.multipathinfo.lun | % {' $lunname = $_.id = $lunpolicy $_.policy.policy $_.path | % {$pathstate = $_.pathstate $lunpathinfo += "' |}} {Select @{name = "Hostname"; expression = {$vmhost.name}}, @{name = "LunName"; expression = {$lunname}}, @{name = "LunPolicy"; expression = {$lunpolicy}}, @{name = "PathState"; expression = {$pathstate}}} $lunpathinfo | Export-csv Q:\POWERCLI\Out.csv

    I see that "$hostview.config.storagedevice.multipathinfo.lun" information like:

    Key: key - vim.host.MultipathInfo.LogicalUnit - 02001 a 000060060

    e800565540000006554000000b74f50454e2d56

    ID: 02001a000060060e800565540000006554000000b74f50454e2d56

    Mon: key - vim.host.ScsiDisk - 02001a000060060e8005655400000065

    54000000b74f50454e2d56

    Path: {fc.20000090fa6a8950:10000090fa6a8950 - fc.50060e8005655}

    461:50060e8005655461 - naa.60060e80056554000000655400000

    0 b 7, fc.20000090fa6a711e:10000090fa6a711e - fc.50060e800

    5655470:50060e8005655470 - naa.60060e8005655400000065540

    b 00000, 7}

    Policy: VMware.Vim.HostMultipathInfoFixedLogicalUnitPolicy

    StorageArrayTypePolicy: VMware.Vim.HostMultipathInfoLogicalUnitStorageArrayTyp

    ePolicy

    DynamicType:

    DynamicProperty:

    And I want to extract file CSV, the path information (fc.2000...) but I can't. Is it possible?

    Thank you very much

    Try like this

    $lunpathinfo = @)

    $esxName = "My_HostName".

    $vmhost = get-VMHost-name $esxName

    # $hostview = get-view $vmhost.id

    $vmhost. ExtensionData.config.storagedevice.multipathinfo.lun | % { `

    $lunname = $_.id

    $lunpolicy = $_.policy.policy

    $_.path | % {

    $pathstate = $_.pathstate

    $pathName = $_. Name

    $lunpathinfo += ' | Select @{name = "Hostname"; expression = {$vmhost.name}}.

    @{name = "LunName"; expression = {$lunname}},

    @{name = "LunPolicy"; expression = {$lunpolicy}},

    @{N = "Path"; E = {$pathName}},

    @{name = "PathState"; expression = {$pathstate}}

    }

    }

    $lunpathinfo | Export-csv Q:\POWERCLI\Out.csv

  • Questions about multi-core use - Intel Core 2 Quad CPU - Q6600

    I have a virtual server running on my box of the hypervisor. I want to give him access to all four cores in my CPU. The processor is:

    Intel Core 2 Quad - #Q6600

    I'm runningUbuntu on this particular server. I did the following:

    cat/proc/cpuinfo

    I expect to see 4 separate the kernels listed, but this is what I see:

    =======

    Processor: 0

    vendor_id: GenuineIntel

    CPU family: 6

    model: 15

    model name: Intel(r) Core (TM) 2 Quad CPU Q6600 @ 2.40 GHz

    step by step: 11

    CPU MHz: 2405.970

    cache size: 4096 KB

    fdiv_bug: no

    hlt_bug: no

    f00f_bug: no

    coma_bug: no

    FPU: Yes

    fpu_exception: Yes

    CPUID level: 10

    WP: Yes

    flags: fpu vme pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss nx lm constant_tsc arch_perfmon pebs bts pni ssse3 cx16 lahf_lm up

    BogoMips: 4819.96

    clflush size: 64

    =======

    Although he lists on a single entry, is this set up correctly? If this is not the case, what should I do? Thank you for your help.

    You have already activated multiple vCPUs in comments settings? Which version of Ubuntu? Graphical user interface or command line?

  • acquire the voltage output of a channel of analog output current

    I'm controlling a HV configuration rather sensitive analog output voltages. Is there an easy way to read the voltage level which is currently awarded by an analog output?

    Hello

    If you set your subVIs different voltages, you can be sure that the voltage you set in these screws are similar to tensions, you have to your output PIN. For example, you could write the value you give to the output in a variable and read this variable in you main VI.

    Kind regards

    Peter

  • Analog OUTPUT material

    Hello

    My question is about the analog output (0 - 10V) of the myDAQ unit.

    On the card, you can read:

    "Overdrive Protection +-16 V forever."

    Lets imagine the worst case: 0 V output DQA, but outside a battery or anything else is connected with 15 V to the analog output.

    Fact an "unlimited" current in data acquisition or protection 'Overdrive' works here and the material is safe to destroy?

    The background: I want to OD are protected from transient voltages and toilet on a simple zener diodes clip or a tvs diode...

    Thank you all, Markus

    Markus,

    To use a zener diode as protection, you must also have an impedance of current limiting in series with the source against which you are protecting.  The manual for the device of maDAQ indicates that the lines of the AO are pushed by OPA1642 op amps.  TI the MSDS for this unit shows the current limiting internal ~ 36 my short circuit with Earth and a thermal shutdown circuit that tries to protect against the terms of overpwer.

    However, under your 15 V battery, 11 V zener and 0 V programmed DAQ exit, the situation may be different.  The current from the battery through the zener will be limited by the impedance of cables or any type of resistance on the line.  This has no direct effect on the myDAQ device, but it will probably destroy the zener unless resistance limits the current to a lower maximum current nominal zener.  As long as the voltage at the output of the myDAQ is lower than the internal supply voltage (+/-15 V), on the OPA1642 current limitation should apply.  With 11V applied to the output and the value set to zero the device would probably be to try to sink the maximum current for-15 V power supply.  Which translates to a dissipation of power of more than 900 mW, which exceeds the rated capacity of the op amp. Themal protection should, in principle, reduce the current to a level that does not exceed the thermal limit under development.

    This test can be a costly process. The unit may be destroyed.  Given that the maximum current specified for an analog output channel is 2 my and the maximum voltage is 10 V, I would consider a series resistance of perhaps 1000 ohms and clamping schottky diodes at the + 15 V and - 15 V power supply.  This will limit the current to 10-20 my in all conditions you have mentioned and would also provide protection to the case where the battery is connected the myDAQ device is turned off. He alsoe does not care about the polarity of the external source.  It will drop the output voltage according to the load impedance.  If this should be used in a student lab, the calcualtion of this decline is something they should be doing anyway, and would be a small price to pay for protection.

    Lynn

  • Strange analog output of USB-6211

    I just got USB-6211 to replace USB-6001 to set the clock to external sampling on analog output for LED lighting control. The part of external clock example works fine, but the analog output voltage is strange. To do self-monitoring, I connected control pin LED to AO0 & AI0 of surveillance in the NI MAX test panel and LED control on the ground at AO - GND & GND HAVE since I have both USB-6001 and USB-6211, I conducted tests on two of them with the same setting of wire. When I generate sine wave - 5V to 5V to AO0 (from NI MAX test panel), USB-6001 can monitor the same signal AI0, but watch USB-6211 - 3, 4V to 3.4V voltage truncated. I did the test separately (wiring one device at a time), so there is no interference between the two devices. USB-6211 past self-calibration and self-monitoring. Also, I did reset devices. I don't know why they would behave differently with the same configuration, and I hope that someone could help with this question. Thank you.

    Hi skuo1008,

    The USB-6001 can support + / 5 output current my from terminals to analog output, while the USB-6211 box can provide only +/-2 my current output.  It is likely that the load impedance is too low, causing the 6211 to hit its current compliance and thus cut the tension.  If you try to exchange your load with a resistance of at least 5 v/.002A = 2500 Ohms, you should be able to see the full +/-5V sine wave.  I suspect that your DUT has a words 3.4V/.002A = 1700 Ohms impedance.  You could use a device with higher output current or use a more current source buffer circuit.  If you do not need a bipolar output, you might also consider using digital lines to control the LEDs.

    Kind regards

  • Bad analog output help Every_N_Samples-NI-9263 cDAQ-9172 chassis (works with cDAQ-9178 chassis)

    Hello

    The NOR-9263 analog output voltage geberation works correctly with the cDAQ-9178 chassis but gives wrong result using the chassis NOR cDAQ-9172.

    In the attached code example, a single cycle of a sine wave is composed of 40000 samples and came out in the background using Every_N_Samples at a rate of production of 5000 samples per second.

    The output buffer size is set to 10000 samples.

    Prepare us the buffer writing 10000 samples 1, then write the remaining data in the background using the Every_N_Samples callback.
     
    Bug: Using the cDAQ-9172 chassis, to the 5000 s/s sampling rate with the help of an external field (or through closure to another HAVE), we observed that 1 10000 samples came out twice, followed by the rest of the waveform. The last 10000 samples are never exits. If you are working properly, we would expect to see 1 full cycle of a sine wave.

    The bug does not occur with the chassis NOR cDAQ-9178. I use the driver NIDAQmx v9.2.1f0 on Windows XP
    The bug does not happen with simulation devices, so you will need to use harwdare real to reproduce.

    Please find attached an example of code C based on the example program OR "ContGen - IntClk.c" to reproduce this bug.

    Thank you

    whemdan,

    The MathWorks

    Hi whemdan,

    By default, DAQmx regenerate old samples if no new data is available.  To give the correct behavior, you can:

    Use DAQmxSetWriteRegenMode to disable the regeneration (DAQmx_Val_DoNotAllowRegen).  In most cases, this is recommended if new data are written continuously in the buffer as the build is in progress.

    If you just need to generate 40 k samples, you can write them just all at once, rather than in 10 pieces of k (the code you attached probably is just an example, so I'll assume that you have a reason to write the data into segments in your actual code).

    I think the difference in behavior between 9172 and 9178 can if explained by the different way, buffering is set up on each product.  The 9172 uses a buffer of 8 k (on the STC2) in all cases (source).  The 9178 uses an 8 k of memory buffer (on the STC3) If you use regeneration shipped, but uses the 127 samples FIFO cartridge, if you use no on-board regeneration (source).

    Then... on the 9172 8191 samples are immediately transferred to the FIFO.  By default, the hardware is going to request new data when the FIFO is less to fill (this is configurable with DAQmxSetAODataXferReqCond).  I'm not sure what the transfer data request size is in your case (you can set the maximum value with DAQmxSetAOUsbXferReqSize), but obviously it is bigger than the other 1809 samples that you have not yet sent to the Board of Directors of your first entry.  At this point, the pilot will regenerate 10 existing k samples so that sufficient data will be available to meet the demand of data transfer.

    The 9178 however use the FIFO of 127 smaller samples so you will not have the same behavior in your case.

    In summary, the behavior is explainable by the difference of material.  If you want to avoid to regenerate old samples, you should ban the regeneration using DAQmxSetWriteRegenMode.

    Best regards

  • Problem of generation of the analog output on PCI-7342

    I use for the control of servo motor with encoder Axis 1 of my PCI-7342 feedback

    and trying to out of the velocity of the encoder on the analog output of the axis-2 which is currently not used.

    For testing purposes, I pulled out a constant 16383 (half of 32767) to the analog output

    through load DAC.flx permanently, but there is no voltage on the map of the motion.

    I read

    http://digital.NI.com/public.nsf/WebSearch/102BE3EEED8A8B0DC1256EDA0059EC47?OpenDocument

    http://forums.NI.com/T5/motion-control-and-motor-drives/analog-output-voltage-from-UMI-7764/m-p/5219...

    http://forums.NI.com/T5/motion-control-and-motor-drives/configuring-the-analog-output-of-PCI-7358-mo...

    and configure my 2 axis to be a stepper motor. I also tried to disable axis - 2. None of them works for me.

    Also, I tried to read the value of CAD using reading DAC.flx right after that load DAC.flx is called.

    Correctly, the value was shown on the screen. (See the attached figure)

    I'm really bad now. Please, please, please help!

    Any possible solution is fully appreciated!

    Ron Liou


  • Analog output on USB6008 in C ANSI does not work

    I tried to program the analog output on a device of USB6008 under MSVC ++ 6.0 with the latest NOR-DAQ 8.8.

    The lines of the example of the ANSI C program ' MultVoltUpdates - IntClk.c ' work very well with a device emulator, but not as soon as I try to access the real device of USB6008.

    /*********************************************/
    DAQmx Configure Code
    /*********************************************/
    DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
    DAQmxErrChk (DAQmxCreateAOVoltageChan(taskHandle,"Dev2/ao0","",-10.0,10.0,DAQmx_Val_Volts,NULL));
    DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandle,"",1000.0,DAQmx_Val_Rising,DAQmx_Val_FiniteSamps,4000));

    During the call to the last line concerning the synchronization setup, an error occurs:

    ________________________________________________________

    DAQmx error: measurements: request the value is not supported for this pro value
    Property.
    Property: DAQmx_SampTimingType
    You asked: DAQmx_Val_SampClk
    You can select: DAQmx_Val_OnDemand

    Task name: _unnamedTask<0>

    State code:-200077

    ________________________________________________________

    Is there a work around?

    Finally, I want to set unique values for the analog output voltage in a loop.

    In commenting on the "DAQmxCfgSampClkTiming" call, no voltage is defined in a "DAQmxWriteAnalogF64" call to handle this task.

    Thanks for the tips!

    'DAQmx_Val_OnDemand' is not a valid option for "DAQmxCfgSampClkTiming...." and leads to errors of execution, if I put it anyway.

    As an alternative, I tried in the meantime:

    DAQmxErrChk (DAQmxCreateTask("",&AO_V_taskHandle));

    DAQmxErrChk (DAQmxCreateAOVoltageChan (AO_V_taskHandle, dev + ao0 "",""-"))
    0.0,5.0,DAQmx_Val_Volts,null));

    DAQmxErrChk (DAQmxSetSampTimingType (AO_V_taskHandle, DAQmx_Val_OnDemand));

    DAQmxErrChk (DAQmxStartTask (AO_V_taskHandle));

    DAQmxErrChk (DAQmxWriteAnalogF64 (AO_V_taskHandle, 1, 0, 1.0,-))
    DAQmx_Val_GroupByChannel & data_v_out, & writing, NULL));
    (data_v_out = 2. ;--> back: written = 1) not--> no measurable output voltage

    DAQmxErrChk (DAQmxStopTask (AO_V_taskHandle));

    --> still no measurable output voltage

    Any other idea?

  • 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.

  • multi channels data acquisition, a single frequency, counter a pulse, two voltage inputs, a power meter (by USB) and an analog output spontaneous and recording

    Hello

    I have a power meter which provide the USB driver and a Labview program to get the data and NI USB-6221. The project I am currently working on the needs of:

    1 acquire two signals (inputs of simple tension), pressure frequency KHz

    2. acquire a flow signal, the output signal is 0 to 5V pulse, each pulse means 0.4 ml volume. So I use a voltage inflows to count impulses in certain period of time (in this case, 1 S) for water flow. ; KHz sampling frequency and the 1 Hz update rate

    3. acquire a signal of engine speed. The output signal is pulse square wave whose frequency is related to the speed. I use a REIT port to measure the frequency. Sampling rate: Auto

    4 give output voltage sine or square wave, I use AO do that.output rate: Auto

    5 acquiring by VISA electricity meter data.  Data update rate: every 50ms

    Currently, all the 5 tasks work well separately. But when I put them together, some signals are beginning to hang, for example, pressure signals sometimes give nothing.

    Another problem is the data record. I programmed the VI in such a way that whenever I press the button 'save start', he begins to record data and save them in a .cvs file. For some reason, I always get only the data in the first table. Coult someone help me? I download my code as follows

    Hello

    What I meant by open, write, close.  For any type of file you are using.

    Open the file, which produces a reference, then put the mention in a registry to offset.

    Write data, using the function write (for this type of file) and the reference.

    When you are finished, close the file reference.

    Writing in the spreadsheet opens, written, close all at once.  It is very good for this type of application.

    ***

    The issue of the loop is more general.  I would like to say first of all, I want to say that since each loop works on its own, it is own VI, and that this program has put all this into a single VI, which has a method to solve the problem is to disable all the loops and allow them one at a time to see if there is a culprit responsible for.

    Using multiple loops executes the code at the same time, and some loops would be cycle faster than others, especially if some of them are loops just as they are.

    Communication between the loops is a test to the address if necessary.

    Running all these signals through different loops DAQ must also be examined.  Don't know what questions are for read and write somewhat randomly in the channels.

  • Want a ramp of output voltage over time and measure input 2 analog USB-6008

    Hello

    I want to produce an analog voltage output signal that increases over time with a certain slope, which I'll send in a potentiostat and at the same time I want to read voltage and current (both are represented by a voltage signal) that I want to open a session and ultimately draw from each other. To do this, I have a DAQ USB-6008 system at my disposal.

    Creation of the analogue output with a linear ramp signal I was possible using a while loop and a delay time (see attachment). Important here is that I can put the slope of the linear ramp (for example, 10mV/s) and size level to make a smooth inclement. However when I want to measure an analog input signal he's going poorly.

    To reduce noise from the influences I want for example to measure 10 values for example within 0.1 second and he averaged (this gives reading should be equal or faster then the wrong caused by the slope and the linear ramp step size.) Example: a slope of 10 mV/s is set with a 10 step size. Each 0.1 s analog output signal amounts to 1 mV. Then I want to read the analog input in this 0.1 s 10 values)

    Because I use a timer to create the linear ramp and the analog input is in the same loop, the delay time also affects the analog input and I get an error every time. Separately, in different VI-programs (analog input and output) they work fine but not combined. I searched this forum to find a way to create the ramp in a different way, but because I'm not an experienced labview user I can't find another way.

    To book it now a bit more complicated I said I want to measure 2 input analog (one for the voltage of the potentiostat) signals and one for the current (also represented by a voltage signal) and they should be measured more quickly then the bad of the analog signal. I have not yet started with because I couldn't read on channel work.

    I hope someone can help me with this problem

    An array of index. You want to index the columns for a single channel.

Maybe you are looking for