Error in DAQ 200524 6216

Hello

I get error 200524. It says channel number does not match the number of the channel of the task. But I have provided an equal number of channels as job number. Can someone suggest what to do to remove the error? And also, I am getting an error when wiring when I am writing the continuous signal of daq support in case 1. Can someone suggest this also?

Thank you

Himanshu Nagpal

So according to the table in the datasheet, each column will be corrospond a digital line on the USB-6216.  You can then either exit the boss along this line to select the network switch port.

For example, suppose that you order two switches.  Accordingly, we will render 0-4 for the first switch and lines 5-9 the second switch.  That would mean there are 10 digital channels in your DAQ assistant (the + 5V and the mass of the lines do not have channels in your DAQ assistant).

So, to connect the two switches to port 0 on the switches, the table that you would spend in the DAQ Assistant would look like this:

Now to connect port 0 of the two switches, then port 1 on both switches, we use a loop For and a 2D array, as well as the autoindexing loop function For.

The table looks like this:

And the code looks like this:

From there, you can add rows to the table based on the number of ports that you plan to use.  You can put all this code in a loop to run it several times

To choose between 5 and 32 ports, simply change the array that you pass.  The table should be 10 x 5 for ports 5 and 10 x 32 to 32 ports.

I hope it goes that you started on the right path,

Tags: NI Hardware

Similar Questions

  • Error with 2 Daq assistant

    Hello

    Another noob to join the community. Here's my question.

    What I am doing wrong? I use 2 assistants for the acquisition of data on the module of NI9401 for output and input digital. I use it to generate signals of 2. If I test with 1 it works but if I go to 2 or more it fails. This is the error I get. I also added the program as an attachment.

    Thanks in advance.

    Hello

    This error means that the DIO task is reserved and cannot be obtained by one of the DAQ Assistant. There is actually a program example on what you want to do. It can be found here:

    https://decibel.NI.com/content/docs/doc-11632

    This example does not use the DAQ Assistasnt but the DAQmx API screws, (which use the DAQ Assistant also still). If the order is not important (and since these DIO tasks are software timed this probably isn't a problem, you can also choose to use the cluster of error one DAQ assistant and connect to another see annex VI.) Do this way force you a data acquisition task to wait on the other a finish. In this way, they don't run to preventing it from time even for the error to occur.

    Kind regards

  • conversion of turbine flow meter

    Hello

    My apologies for the query, but this software is all new to me. I have a cDaq-9188 8 medium chassis containing several modules including 2 off 9401 counter modules, I run signal express version 6.0.0.

    My problem is that I have 3 miniature flowmeters turbine (GEMS units FT-110 series) which give various pulse widths depending on what is the 5V square waves.  I brought to the entrance of my 9401 and look of good signals so guess that's my express configuration signal which is the cause of the problem,

    I connected the + ve and gnd outputs of the flowmeters Com, DIO1 + Com and DIO3, DIO0 + Com on one of my 9401 cards.

    I can see the increment in the number of pulses on measurement & automation Explorer when I run test for this module Panel and watch the chefs of edge that my system can see the pulse from trains.

    When configuring the express signal I need it to read in l/min, 58-575Hz corresponds to 0.5 to 5 l/min, but I can't seem to convert the pulse in l/min.

    If I select DAQmx acquire > counter entry > frequency it gives me the possibility of updated the custom scale, but every time that I run it I get the error signalling DAQ assistant upward.  I tried many synchronization settings with no luck.  The only time where I have this power as successfully is using counter entry > County of edge, but I'm stuck on how to convert l/min as it has no function of scale (I know!)

    Any help appreciated.

    I think that he is referring to l/min in litres per minute, and I guess the Freq of flow are the values of this compilation on the scale.
    If this is the case; Carl, it seems to me you must configure a custom scale. You can do it in the channel settings tab in the DAQmxAcquire stage. Under custom scale select Create new, and then select map scale. Min/max Freq should match your flow min/max.

    I have attached a few screenshots for reference.

    Let us know if we are on the right track, otherwise we might need more information; FOR EXAMPLE. file seproj and a bit more info on the flow meter (type of connection, the output signal, etc.).
    In addition, a brief look at the documentation on this flow meter recommends the use of a pull-up resistance. Might want to look there as well.

  • Help the evolution of the scaling of a virtual channel?

    Can anyone help me please with this block of code that I have?  I don't understand why on the first run it works fine without error exception daq, but on the second run, I get an error.

    More detailed, I create a virual channel in a Sub with a button click event.  This virtual channel is set to the default values (MIN = - 10, MAX = + 10, linear scale with scale and Offset 1 and 0 respectively).

    The click event, is where I'm having difficulties in the other slot.  In this Sub I am creating custom scales and assigning values to them, setting the MIN and MAX values of the virtual channel on the same minimum and maximum values of the custom scale being used and assigning custom for the channel finally this new scale virtual to use.  The code works for the first run.  When I change the scale and then run the code again to a second iteration, I get an Exception of daq error.

    Its seems that the MIN and MAX are ready on the second run, but the scaling is not reset to the new scale of values.  Can someone check and if so, what is wrong and must be changed in my code?

    First execution of the click event of the 'Download' button to assign the custom scale with its values to the virtual chanel... works very well.

    Change the scaling, in the case of 400 to 600 and then run the same code with the 'Download' button click event and I get the daqException error

    myTask.Control (TaskAction.Stop)

    PreScaledVals.TrimExcess (): PreScaledValsArray = PreScaledVals.ToArray
    ScaledVals.TrimExcess (): ScaledValsArray = ScaledVals.ToArray

    If chkBoxTblScale.Checked = True Then
    Try
    min = ScaledValsArray.First
    Max = ScaledValsArray.Last
    Catch ex As Exception
    MessageBox.Show (ex.) Message & "" scale of table must contain at least two values prééchelonnés and two nationally. ")"
    Return
    End Try
    Else if chkBoxLinScale.Checked = True Then
    min = numEdtMIN.Value
    Max = numEdtMAX.Value
    Else if chkBoxMapScale.Checked = True Then
    min = numEdtSMin.Value
    Max = numEdtSMax.Value
    End If

    LinScale = New DAQmx.LinearScale("Linear Scale", scale, offset)
    RMPScale = New DAQmx.RangeMapScale("Ranged Map Scale", prescaledMin, prescaledMax, scaledMin, scaledMax)

    If chkBoxTblScale.Checked = True Then
    Try
    TblScale = New DAQmx.TableScale ("Table scale", PreScaledValsArray, ScaledValsArray)
    Catch ex As DaqException
    MessageBox.Show (ex.) Message)
    End Try
    End If
    Try
    If cboBoxChannels.Text = "6" then
    ChannelSelected = 6
    Else if cboBoxChannels.Text = "7" Then
    ChannelSelected = 7
    Else if cboBoxChannels.Text = '8' then
    ChannelSelected = 8
    Else if cboBoxChannels.Text = '9' then
    ChannelSelected = 9
    Else if cboBoxChannels.Text = "10" Then
    ChannelSelected = 10
    Else if cboBoxChannels.Text = "11" Then
    ChannelSelected = 11
    Else if cboBoxChannels.Text = "12" Then
    ChannelSelected = 12
    Else if cboBoxChannels.Text = '13' and then
    ChannelSelected = 13
    Else if cboBoxChannels.Text = "14" Then
    ChannelSelected = 14
    Other: ChannelSelected = 15
    End If

    Select the ChannelSelected box
    Box of 6
    myTask.AIChannels (lblCh6Wfg.Text). Minimum = min
    myTask.AIChannels (lblCh6Wfg.Text). Maximum = max
    If chkBoxLinScale.Checked = True Then
    myTask.AIChannels (lblCh6Wfg.Text). CustomScaleName = "linear scale".


    Else if chkBoxTblScale.Checked = True Then
    myTask.AIChannels (lblCh6Wfg.Text). CustomScaleName = "Table of scale".
    Else if chkBoxMapScale.Checked = True Then
    myTask.AIChannels (lblCh6Wfg.Text). CustomScaleName = "stood at the map scale.
    End If

    TblScale = Nothing
    RMPScale = Nothing
    LinScale = Nothing

    Thank you

    Look at what you are doing with the New .

    If the object does not exist then prompts you to create it, but when it is created, you must be change it.

  • DAQmx, specify the resources occpaied

    I use a function to get the status of digital DAQ card port. DAQmxErrChk (DAQmxReadDigitalU32 (Handle, 1, 10.0, DAQmx_Val_GroupByChannel, & SSR, 1, & read, NULL)); all of the code as follows: error = Init_DA_Brds (1, & BoardCode); DAQmxErrChk (DAQmxResetDevice ("DAQmxDev1")); DAQmxErrChk (DAQmxCreateTask ("", & handle)); DAQmxErrChk (DAQmxCreateDIChan (Handle, "Line6-port0/DAQmxDev1", "", DAQmx_Val_ChanForAllLines)); DAQmxErrChk (DAQmxReadDigitalU32 (Handle, 1, 10.0, DAQmx_Val_GroupByChannel, & SSR, 1, & read, NULL)); DAQmxErrChk (DAQmxClearTask (Handle)); However, some times I get error this DAQ resource has been occpaid. later if I try to reset in Max, also an error report, whatever i reset driver DAQ traditional according to the instruction. do anyone know of this problem? (I'm with CVI 7.1 + DAQmx 9.0.2) B.R Gerry

    I found the reason.  put on another also read the digital line in order to have the flag.  It seems DAQmx does not support this one as well.  because my previous version was made by the traditional pilot, and I see no problem.

    in any case, thanks for all the peoples attention!

    B.R

    Gerry

  • Why do I get error 200524 for the generating function 2 code example?

    I get the following error message:

    Error-200524 occurred at the generating function 2 channel_lv86.vi

    Possible reasons:

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

    Number of channels of task: 1
    Number of data channels : 2

    Task name: _unnamedTask

    When I downloaded and ran the 2 channel here code: https://decibel.ni.com/content/docs/DOC-3545

    I have a card pci-e DAQ 6259 and a block BNC-2110

    Why I get this error?

    When I open the VI I selected ' Dev1/ao"under physical channels. I tried all the other options (a0 - a3) which gave the same error message.

    If you have 2 channels in your data (as indicated in the error message), then you must choose 2 channels in your task control (the error message says that you have selected only 1.)

    You saw in the example how they were able to identify the 2 channels of analog output?

  • Why is-DAQ-200714 fatal error?

    I'm having a problem where a system that works well for a while, with a good margin (rate of 1 kHz loop, 300uS PCL loop duration), suddenly throws the error-200714 and stops. I have the filter DAQ errors on, and it's performance that are linked, so why this closure of the system rather than increment on behalf of HP?

    Thank you

    The explanation of the error is "Acquisition has stopped because the driver could not transfer the data from the device to the computer's memory rather quickly. This was due to limitations of the computer system.

    Reduce your sample clock rate, the number of channels in the task or the number of programs on your computer that runs at the same time. »

    Hello Stephen,

    You get this error is because the program is not keeping up with the sample clock.

    I recreated this (outdoor VeriStand) by running the example of shipping single HW-Timed Point LabVIEW and increasing speed until I got this error. I actually got error-209802 several times before to do-200714. The first error is recoverable and I could ignore it and continue, the second execution stops when it is thrown.

    Error-209802:

    «DAQmx wait the next sample clock detected one or more examples missed clock of the device since the last call to wait for the next sample clock that indicates that your program is not keeping up with the sample clock.»

    To remove this error, slow down the sample clock, or else modify your application so that it can follow the sample clock. Alternatively, consider conversion errors affecting true property warnings and then assigned to the case of the appropriate warning. »

    Error-200714:

    "The acquisition has stopped because the driver could not transfer the data from the device to the computer's memory rather quickly. This was due to limitations of the computer system.

    Reduce your sample clock rate, the number of channels in the task or the number of programs on your computer that runs at the same time. »

    Based on what Jarrod mentioned above, the original error might be filtered by VeriStand judging by the part highlighted in blue to the first error. I suspect that the error-200714 is fatal because of the part highlighted in red above; the acquisition has ceased.

    If you monitor the DAQ system channel error, you see error-209802 so? Slow down the rate PCL resolve these errors?

    I hope this helps!

    Trent

  • Error-200284 when using two daq cards

    I have an application written in Visual C++ that reads data out of a data capture with success card. However, now we want to add a second DAQ card, so we can increase the number of input channels. However, I have trouble getting the second card works fine. He continues to give the 200284 whenever I try to read the input data. I tried playing with the two loops in the same thread and with them in threads separated without result. Any ideas on what could happen?

    Thank you!

    Hello Kaladin,

    I'll take a look at the link below to see the cause of the error, but also some common things suggested to try.

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

    Best wishes!

  • 201003-error occurred in the DAQ Assistant

    Hello. I use "cDAQ-9178" and "NI 9215" and "NEITHER 9402" are added on. "

    However, when I run Labview code, "Error-201003" occurs.

    {

    Device not available. Possible causes:

    Device is no longer present in the system / device is not powered.

    Device is turned on, but was temporarily without electricity / device is damaged

    }

    (Error appears as the 1st and 2nd figures below).

    (Plans of logic is the figure below).

    Thank you.

    I could be something with the pilot

    Check this box:

    Error 201003 to the MAX test panel or all by running the DAQ Assistant

    http://digital.NI.com/public.nsf/allkb/5413F392D88326148625746B006745C5

    In this forum, they speak the same error:

    Spontaneous error code 201003 for acquisition of data PCI configuration

    http://forums.NI.com/T5/SignalExpress/spontaneous-error-code-201003-for-PCI-DAQ-Setup/TD-p/830707

  • NOR-DAQ + NOR USB-4431: error 233054

    Hello everyone,

    First of all, here is my config:

    -Dev PC: Win 7 32-bit

    -LabView 2009 - 32-bit

    - NI DAQ 9.7.5

    -Card acquisition: NI USB-4431

    The problem:

    When I run my app just after connect my DVR to my PC (or after startup) card, the DAQ Assistant gives me error 233054:

    I not found any explanation on this wonderful tool that is the internet, so I come here!

    The only way I Born to move forward, is the NOT-MAX aperture, ask to make an acquisition, ask to do a generation (that work) and then I can go back in LabView and run my program!

    The problem seems to come from the initialization. But I don't see what I need to do to make it work every time! Any idea?

    Best regards

    Harold

    Hello

    I just checked the daqmx and labview driver compatibility. I noticed your 9.7.5 daqmx driver version is not compatible with labview 2009, therefore, you have this agreement.

    The latest version of LabVIEW 2009 daqmx is 9.7 see below

    DAQmx and LabVIEW version compatibility:

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

    So is this you can 9.7.5 uninstalling and reinstalling daqmx 9.7 see this link

    Uninstall the software

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

    Best regards.

  • USB DAQ error after update to 15.1 DAQ

    Everything worked well (DAQ 9.5) on my windows XP SP3 machine, so I thought that it's a good idea to install the last DQA 15.1, NOW my USB DAQ has a Red Cross in NI MAX and does not

    I tried to reinstall OR DAQ 15.1, restarted the PC, plug the NIDAQ inside and out, but the error remains.

    Any ideas how to solve this problem?

    Thanks for the info. I tried the above and uninstall and reinstall everything, but in the end, the only thing that solved the problem was to install a new copy of the operating system, windows XP in this case.

  • Application (OR-Daq LIC) DLL loading error

    Hi all

    I have an application developed using port, read, write & config of zadvd.lib (lvdaq.dll) which works fine in my XPmachine. In the new machine, I installed labview 7.1 and copy of the application and when the application is loaded, it displays an error:

    Error loading C:\Program NIUninstaller Instruments\LabVIEW 7.1\vi.lib\Daq\lvdaq.dll. Application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.

    I just forum solutions OR that indicates to install .net Framework 3.5 or copy a dll in the folder where the application is. Little confusion. Can someone help me solve this problem.

    See here

  • NI-DAQ-200288 digital output error

    Hi all

    I am using Matlab control PCI-6534. In the code, I try to write not Npulse (= 3). Pulse. Data of the pulse are of size 1 X 1e5. When I try to write in the mode of generation of finite samples it generates error-200288 when you write data pulse 3rd time. 1 twice, it gives no error.

    The flow of code below is 1. Open 32-bit channel to write digital data to the 10 MHz clock.

    2. put sample over genration and disabel regeneration.

    3 write first pulse data to buffer.

    4. start the task

    5 enter the number of data pulse Npulse-1 immediately

    6. wait until the task is done and stop the task

    CLC;
    inputDATA = uint32 (100 * randn(1,1e5));
    NPulse = 3;
    rate = 1e7; % 10 MHz

    If (libisloaded ('myni') ~ = 1).
    [notfound warnings] = loadlibrary ('nicaiu.dll', 'C:\Program Files\National Instruments\NI-DAQ\DAQmx ANSI C Dev\include\NIDAQmx.h','alias','myni');
    end
    taskh = libpointer('voidPtrPtr',0);
    DOtaskhandle = taskh;
    [errCode, taskName, DOtaskhandle] = calllib ('myni', 'DAQmxCreateTask', ", DOtaskhandle);
    DOtaskhandle.setdatatype ('voidPtrPtr');

    DAQmx_Val_ChanForAllLines = int32 (1);
    DAQmx_Val_Rising = int32 (10280);
    DAQmx_Val_GroupByChannel = uint32 (0);

    DAQmx_Val_FiniteSamps = int32 (10178);
    DAQmx_Val_GroupByChannel = uint32 (0);
    DAQmx_Val_DoNotAllowRegen = int32 (10158);
    numSampsPerChannelWritten = libpointer('int32Ptr',0);
    reserved = libpointer ('uint32Ptr', []);
    data2 = libpointer ('uint32Ptr', inputDATA);
    sampsPerChanToWrite = uint64 (numel (inputDATA));
    inDataLen = uint32 (numel (inputDATA));
    sperchan = uint32 (inDataLen);

    [errCode, lineNames, nameoflines] = calllib ('myni', 'DAQmxCreateDOChan', DOtaskhandle, [' Dev1/port3 Dev1/port1, port2/Dev1, Dev1/port0], ", DAQmx_Val_ChanForAllLines);
    [errCode, clockType] is calllib('myni','DAQmxCfgSampClkTiming',DOtaskhandle,'OnboardClock',rate,DAQmx_Val_Rising,DAQmx_Val_FiniteSamps,sampsPerChanToWrite);
    If (errCode ~ = 0)
    errMessage = "Error during clock setting";
    calllib ('myni', 'DAQmxStopTask', DOtaskhandle);
    calllib ('myni', 'DAQmxClearTask', DOtaskhandle);
    return;
    end
    [errCode] is calllib ('myni', 'DAQmxSetWriteRegenMode', DOtaskhandle, DAQmx_Val_DoNotAllowRegen);.

    [errCode, writeArray, numSampsPerChan, zz] = calllib ('myni', 'DAQmxWriteDigitalU32', DOtaskhandle, sperchan, 0, double (10), DAQmx_Val_GroupByChannel, data2, numSampsPerChannelWritten, reserved);
    If (errCode ~ = 0)
    errMessage = "Error when writing the data of Stimulation" 1;
    calllib ('myni', 'DAQmxStopTask', DOtaskhandle);
    calllib ('myni', 'DAQmxClearTask', DOtaskhandle);
    DISP (errMessage);
    return;
    end

    [errCode] = calllib ('myni', 'DAQmxStartTask', DOtaskhandle);
    if(errCode~=0)
    errMessage is ('error in startup DAQmx task');.
    calllib ('myni', 'DAQmxStopTask', DOtaskhandle);
    calllib ('myni', 'DAQmxClearTask', DOtaskhandle);
    DISP (errMessage);
    return;
    end
    for i = 1:NPulse - 1
    [errCode, writeArray, numSampsPerChan, zz] = calllib ('myni', 'DAQmxWriteDigitalU32', DOtaskhandle, sperchan, 0, double (10), DAQmx_Val_GroupByChannel, data2, numSampsPerChannelWritten, reserved);
    % If (errCode ~ = 0)
    % errMessage = "Error when writing the data of Stimulation";
    % calllib ('myni', 'DAQmxStopTask', DOtaskhandle);
    % calllib ('myni', 'DAQmxClearTask', DOtaskhandle);
    disp (errMessage);
    % return;
    end %
    end

    IstaskDone = libpointer ('voidPtr', logical (0));
    [A11 A21 A31] is calllib ('myni', 'DAQmxIsTaskDone', DOtaskhandle, IstaskDone);.

    while(A31==false)
    [A11 A21 A31] is calllib ('myni', 'DAQmxIsTaskDone', DOtaskhandle, IstaskDone);.
    end

    calllib ('myni', 'DAQmxStopTask', DOtaskhandle);
    calllib ('myni', 'DAQmxClearTask', DOtaskhandle);

    Can anyone help me please with this code. Is there some step I'm missing or not setting any parameter not?

    Thank you

    Vani

    Take a look at this:

    Why do I get error-200288?

    http://digital.NI.com/public.nsf/allkb/BFCE83133C0ECAD786256E6000814B68?OpenDocument

    Using traditional DAQ or DAQmx?

  • Error-200524 occurred at .vi:2 DAQmx Write (analog 1-d NChan DBL 1Samp)

    I'm trying to generate a signal to usb-6009 of simulated signal.

    However, he keep poping errors:

    Error-200524 occurred at .vi:2 DAQmx Write (analog 1-d NChan DBL 1Samp) if I choose "1 sample on request" in mx data acquisition.

    If I have chaged to "continuous sample", the error has become

    Error-200077 during the property Node DAQmx Timing (arg) 1 DAQmx Timing (sample clock) .vi:3-> 1.vi:Instance:0:1-> Untitled 1 Untitled. VI

    Can someone could take care of my problem?

    Very appreciate

    The limitations of the analog output of your device is documented in the manual and has been considered on several occasions. Because it supports at the time of the application, you can only pass a single value to a moment, not a waveform. The timing is only the software and you can not generate a signal without a lot of jitter and the max frequency will be by the spec.

  • Mutilates absorbent signals using MCC DAQ in Labview (error 10017)

    Hi all

    I'm working on a project that requires me to acquire several singals of a MCC DAQ and I tried a few differnet ways to do and can not understand. In the attached file, the upper part is the issue. The first waveform that I acquire works perfectly, but when I have duplicate and try to get another it shows a read error and displays a tip and a flat line then in the waveform table. I don't know if it's with the for loop or what. Any suggestion would be appreciated.

    Thank you

    Do NOT duplicate the it. Use a single task with many listed channels - Dev1\ai0:1.

Maybe you are looking for

  • Satellite A200-2 b 7 - number of part of a DC Jack

    Hello I looked the part number for a DC Jack for a Toshiba Satellite A200-2 b 7 (PSAE6E-0HC047PT), but without success. On the old DC Jack I can not register part number. Another option to search or to know the reference number of the CC? Thank you,

  • 5 GHz Dell Inspiron 1501

    My Dell Inspiron 1501 laptop can only support 2.4 Ghz. Is it possible to upgrade the hardware so I can support 5 GHz or with a computer laptop, can't I? P.S. referring to a Wi - Fi connection If it is possible any ideas where I can buy a Wireless N c

  • Pavilion G series: upgrade of RAM for a laptop HP Pavilion G series

    Dear HP, I want to upgrade the RAM on a laptop with the specification below. What is the maximum RAM this motherboard can accept? Thank you, mikepa999 Operating system Windows 7 Home Premium 64 - bit SP1 CENTRAL PROCESSING UNIT AMD A4 - 3300M 39 ° C.

  • Where can I find the latest operating system phones smart blackBerry updates online?

    I searched on the Verizon site, trying to find info on where and how to get updates... with NO luck! I would rather not rely on the 2nd or 3rd party sites links and stick to Verizon or RIM for my updates. Any help is GREATLY appreciated...

  • Re: License CS6 Dreamweaver on a new computer?

    I have Dreamweaver CS6 I rebooted after the 'death' of my old computer to a new computer. I need to register the license for DWCS6 on the new computer. How can I do this?