writing cannot be porformed, because data channels number does not match the number of channels in the task

Hello

I'm writing analogues of the buffer to several channels using NOR-6723.

For some reason any, whenever I go to the buffer double function (1-d) that contains buffers for all channels.

I always find myself with exception indicating that the numbers of channels in the data are '1 '.

I use c#:

Task m_TaskHandle = new Task();

string sChannelsList = "Dev2/ao21:23";

m_TaskHandle.AOChannels.CreateVoltageChannel(

sChannelsList,

"", 0, 5, AOVoltageUnits.Volts );

int iNumberOfSamples = 4;

double dSamplingFrequency = 1000;

m_TaskHandle.Timing.ConfigureSampleClock("",

dSamplingFrequency,

SampleClockActiveEdge.Rising,

SampleQuantityMode.ContinuousSamples,

iNumberOfSamples /* Only relevant if mode is FiniteSamples */);

// Data code is heredouble[] adSampleBuffer;// array values removed from this code snippet (here i have function that generates data)// array size is: num_of_samples * total_channels (in this case 4 * 3)

AnalogSingleChannelWriter ChanWriter = new AnalogSingleChannelWriter(m_TaskHandle.Stream);

ChanWriter.WriteMultiSample(false, adSampleBuffer);

m_TaskHandle.Start();

Not sure I'm I missing, how the MSTDIO determines the "number of data channels", I receive as an exception, it is always equal to 1.

would appricate to help.

Thank you.

Hi idanbis,

As the snippet you posted, you can create more than one channel using the ao21:23 range. That said, you should use AnalogMultiChannelWriter to configure your write instead of AnalogSingleChannelWriter operation.

To write using AnalogMultiChannelWriter::WriteMultiSample (boolean, double, you must know the data you want to write must be stored in a 2D array.) Each element in the first dimension of the array corresponds to a channel in the task, while each item in the second dimension, to a sample of write on its channel. For example, that:

Double [,] data = new double [numChannels, numSamplesPerChannel];

Then:

data [0, 0... numSamplesPerChannel]; It is the set of all samples in the first string (ao21 in your code).

I hope that was helpful. Let me know if I left any doubt remaining.

Best regards

Anzurio

Tags: NI Software

Similar Questions

  • cannot reactivate my account, keep saying that does not match the card

    Don't keep saying cc info does not, but all correct! Need to reactivate the ACCT.

    Hello

    Which account you want to enable, and why you need your cc to activate an account? If for noisy Windows, you can ignore this.

    Kind regards.

  • The application cannot be installed because of a certificate problem.  The certificate does not match the certificate of the installed application, does not support upgrades of the application or is not valid.  Please contact the application author.

    The application cannot be installed because of a certificate problem.  The certificate does not match the certificate of the installed application, does not support upgrades of the application or is not valid.  Please contact the application author.

    That's what I have I am trying to download adobe programs

    which is not a download error unless you use some sort of download manager/assistant that is also trying to install.  do you have a download manager/assistant?

    or is it an error of installation and, if so, what type of program (name and version) are you trying to install?

  • "Make window film can not start because your video card does not support the required level of hardware acceleration when you make a movie in windows vista Photo Gallery

    Original title: Hello. I have usedd to make a movie using Windows vista window photo gallery. Now, I can't. could you please help me

    Hello. I used to be able to make a movie using Windows vista window photo gallery. Now, I can't. could you please help me

    That's how I did.

    Open a pictuer using the photogallery.

    I have in the photo gsllery window, click make a movie tab.

    with this click it used to drive me to another window, but no more, instead ii have a message: make movie window cannot start because your video card does not support the required level of hardware acceleration or hardware acceleration is not available

    Hello


    Were there any changes (hardware or software) to the computer before the show?

    Method 1: Optimize the hardware acceleration and check if the problem persists.
    a: Click Start > Control Panel > display
    b
    : click on change display settings , and then click Advanced settings
    c:
    click the Troubleshooting tab, and then click on change settings of
    d
    : make sure that the slider hardware acceleration is set to full, and then click ok.

    Method 2: update the video drivers and check if the problem occurs.
    http://Windows.Microsoft.com/en-us/Windows-Vista/update-a-driver-for-hardware-that-isn ' t-work correctly
     
    Method 3: Perform the steps in the article mentioned below and see if the problem occurs.

    Hope this information helps.
  • Could not open install Assistant.  I get this error message: cannot install the application due to a certificate problem.  The certificate does not match the certificate of the installed application, does not support upgrades of the application or is not

    How do I download a trial of 12 items, Adobe?

    I followed the instructions to download assistant... but get this message: the application cannot be installed because of a certificate problem.  The certificate does not match the certificate of the installed application, does not support upgrades of the application or is not valid.  Please contact the author of the application.

    Hi alposer,

    Please delete the copy of Adobe Download Assistant you have installed, and then reinstall Adobe Download Assistant.

    Kind regards

    Rave

  • the channel guide does not match the actual string

    the channel guide does not match the actual string that is to say PBS should be Channel 13 but is listed as channel 2 on the guide

    Hello James,.

    Welcome to the community of Sony.

    What is the model # of the TV?

    You can locate the model # of the TV from this link.

    You can try the steps mentioned on the underside of the base article of knowledge:

    http://www.KB.Sony.com/selfservice/documentLink.do?externalId=C408137

    Please mark it as "acceptable Solution" If you find this information useful.

    Kind regards

    Colby

  • What does that mean? -This problem occurred because your graphics card does not support the required version of DirectX. This version of Windows requires a DirectX 9.0 compatible video card or newer.

    I tried viewing a presentation power point and got to page 2 and my computer crashed.  Thought on... what he did previously trying to display a PPP file, but I thought that it was not my computer to the actual file.  now I have my doubts and also this time an error message came that said... This problem occurred because your graphics card does not support the required version of DirectX. This version of Windows requires a DirectX 9.0 compatible video card or newer.  can someone tell me what I should do next?

    You left out which version of DirectX has been shown.

    As far as I know, your Intel 945GM should support DirectX 9 and because you have XP sp3, you must have at least DirectX 9 installed.

    I met the following, but it shouldn't apply to Powerpoint:

    Some such as the Intel 945 GM Intel video cards have a design limitation which may cause problems when you try to run the Source Engine games. 3D graphics kernel does not support transformation of material, light and the vertex shader to similar technologies, which is an important part of the pipeline of 3D acceleration. Instead, this functionality is emulated in software that can reduce the compatibility and performance with 3D games.

    I don't have a solution for you (assuming that DXDIAG, in fact, reports to have DirectX 9 or higher).  You can see if you install a new driver support, but if it were me, I would be first contact Acer technical support or ask your question in another forum as one of the following conditions:

    Intel graphics Forum: http://communities.intel.com/community/tech/graphics
    Forum PowerPoint: http://answers.microsoft.com/en-us/office/forum/powerpoint (select the corresponding forum for your version of Powerpoint).  Include the results of DxDiag, including the version of DirectX.  If there is something unusual about the image that causes the crash, include this info as well.

    Normally, for notebook/laptop computer, it is better to get the drivers of the mfr of computer rather than the manufacturer of the device.

    Acer drivers for your computer are here: http://support.acer.com/us/en/product/default.aspx?tab=1&modelId=535 (you want the Intel VGA for XP driver)

    Intel has a newer driver: http://downloadcenter.intel.com/SearchResult.aspx?lang=eng&ProductFamily=Internet+Devices&ProductLine=Netbooks&ProductProduct=Mobile+Intel%C2%AE+945GM+Express+Chipset+Family
    It's the main Intel support page: http://www.intel.com/p/en_US/support/highlights/graphics/945gm

  • The installed product does not match the installation source (S). Until a matching source is provided or the installed product and source are synchronized... Cannot perform this action.

    Hello

    I'm not able to uninstall Skype on my laptop which is having windows 7 OS.
    It gives below error.
    The installed product does not match the installation source (S). Until a matching source is provided or the installed product and source are synchronized... Cannot perform this action.
    He appreciates if there is someone to support for this issue.
    Thank you
    Sandesh

    Hi Bader,

    Thanks for the kind reply. In fact before checking your response, I checked in my system there was the .msi from the Skype software installation file was missing. so I installed the same version installation file and then uninstalled the software.
    And I have installed the latest version of the Skype software.
    Thank you
    Sandesh
  • I can't install my Adobe Acrobat 9 Pro in my new HP Pavilion all-in-one computer desktop drive, because my new HP does not insert the disc in a disc drive.  What can I do to fix this problem?

    I can't install my Adobe Acrobat 9 Pro in my new HP Pavilion all-in-one computer desktop drive, because my new HP does not insert the disc in a disc drive.  What can I do to fix this problem?

    Hi edwards39572619 ,

    Please visit this link to download Acrobat 9 Pro:-download Acrobat 8 and Acrobat 9

    Let me know how it goes.

    Kind regards

    Christian

  • Date does not match the format DD-MON-RR

    I've created a form, and I have an element bound to a date type field.
    This element is a date picker, and when I choose a date on the calendar, the date appears correctly, in article 28-Dic-12

    The problem is, trying to create the record, I got an error:
    Date does not match the format DD-MON-RR

    But I do not understand how to solve this problem. The date is correct as far as I KNOW.

    Kind regards.

    change Application language derived from-> Application primary language

  • Question SCCM - "LANG_LIST a certain locale that does not match the regional settings of the serial number.

    I have a problem with the error 'LANG_LIST a certain locale that does not match the regional settings of the serial number' recurring.

    I'm trying to install Acrobat XI Std silently by SCCM.

    I used the Adobe Customization Wizard to create an STD which include the serial number of the volume that we have with our license purchases. Note that I am in Australia. I use the command line in SCCM for installation as "msiexec /i"AcroStan.msi"TRANSFORMS = /'D & B_AcroStd.mst' SB ' fails silently. If I install on a local computer using an admin command prompt and replacing /qb in the end, I get the above error.

    I have a few things to try to solve, after searching the forums adobe and other forums for the solution. The mst is only trying to install U.S. English & I even went up to use the Editor directly in the Customization Wizard and change some values in the property table for this problem. In the property table, I can confirm that LANG_SEL_DEFAULT = FRA, REGIONAL_LIST = FRA, LANG_LIST = en_US, ProductLanguage = 1033

    Is there a way to check the language specified for the ym serial number?

    Linda

    I contacted customer service and a live chat session. It turns out that the problem is to use a key volume license, you must download the installer from portal licenses on the adobe Web site. Once I downloaded from there, extract the msi file and used the same transformation, the installation worked.

    In other words, other downloads probably won't work for the silent installation of volume but works by Manuel installs. You will need to download it from https://licensing2.adobe.com/

  • Signature App, number of Folios error does not match the main file Folio

    Hi all;

    I have a standalone application of 250 pages that I'm trying to compile for the Apple Store. I've read through the forums and enabled "AppBuilderLoggingEnabled.cfg" in my home directory of the user to discuss the issue. Here is an excerpt of the newspaper which has been created which, to me, shows why the app is not signed.

    46386 codesign ERROR [main]. Signatory - failure during the signature

    java.lang.RuntimeException: invalid package, number of folios does not match the primary file (Folio.xml or Issue.xml) 251-250 folio

    at com.adobe.devtech.codesign.IPAOutputHelper.convertFolioProduceFormatToFolio (IPAOutputHelp er.java:272)

    at com.adobe.devtech.codesign.IPAOutputHelper.replacePlaceholderFolio (IPAOutputHelper.java:1 92)

    at com.adobe.devtech.codesign.IPAOutputHelper.execute(IPAOutputHelper.java:82)

    at com.adobe.devtech.codesign.Signer.sign(Signer.java:169)

    at com.adobe.devtech.codesign.Signer.processArgs(Signer.java:106)

    at com.adobe.devtech.codesign.Signer.main(Signer.java:46)

    46388 codesign ERROR [main]. Signatory - error: invalid package, number of folios does not match the master folio (Folio.xml or Issue.xml) 251-250

    I deleted special characters in the article titles and rebuilt the app only to deal with the same error. I have advanced and created a new AppID in the portal to Apple developers, created new files available, and the error remains. I am now to create a new folio and import the items into the new folio to see if that will solve the problem of "number of folios does not.

    Any help or idea would be amazing. Thanks to you all.

    -mat

    I created a new folio and all items imported again. After hitting "Create App" for this new folio, to about 10 pages in a 'PDF Export' error stopped the app creation process. I went in InDesign to update the layout for the 10 page to see that the PDF export issue kept me from updating the page layouts as well. Some thing in the InDesign file was not playing nice with the creation of folio, so I created two new InDesign files, deleted the article and built a new article from scratch. I was able to import the new page in a new article to the main folio and click on "Create App" again. This time he had no problems with the creative process. I have synced files available in App Builder and could sign the application code.

    I guess the moral of the story is to double and even triple check each item along the way to make sure there is no problem, is introduced into the process that eventually causes headaches during the phase of distribution of creating applications!

    -mat

  • DataGrid: can I recover the data, BUT it does not show the datagrid control

    Hello

    Hi - I've traced data through php mysql in actionscript but it does not show the datagrid control. Here is my code.

    Import fl.controls.DataGrid;

    Import fl.controls.dataGridClasses.DataGridColumn;

    Import fl.data.DataProvider;

    Import fl.controls.ScrollPolicy;

    Import fl.managers.StyleManager; necessary to format the text in cells

    import flash.display.MovieClip;

    import flash.net.URLRequest;

    import flash.events.Event;

    import flash.events.MouseEvent;

    import flash.net.URLLoader;

    to import flash.net.URLVariables;

    import flash.net.URLRequestMethod;

    import flash.net.URLLoaderDataFormat;

    Create a new instance of the DataGrid component.

    var aDg:DataGrid = new DataGrid();

    var myDp:Array = new Array();

    var myData:URLRequest = new URLRequest ("http://www.cambridgekids.es/kglad/php/getUsers.php");

    myData.method = URLRequestMethod.POST;

    var loader: URLLoader = new URLLoader();

    loader.dataFormat = pouvez;

    loader.addEventListener (Event.COMPLETE, dataOnLoad);

    Loader.Load (mydata);

    function dataOnLoad(evt:Event) {}

    for (var i: uint = 0; i < evt.target.data.cant; i ++) {}

    myDp.push ({number: evt.target.data ["firstname" + i], Apellido:evt.target.data["lastname"+i]});})

    / / trace (evt.target.data ["firstname" + i]);

    }

    myDp.dataProvider = new DataProvider (myDp);

    }

    aDg.dataProvider = new DataProvider (myDp);

    aDg.columns = ['number', 'Apellido'];

    aDg.setSize (800,300);

    aDg.move (150,200);

    aDg.rowHeight = 40; / / allows 2 lines of text in the default text size.

    aDg.columns [0] .width = 80;

    aDg.columns [1] .width = 30;

    aDg.resizableColumns = true;

    aDg.verticalScrollPolicy = ScrollPolicy.AUTO;

    addChild (aDg);

    DOH! I thought I was in the flex forum so ignore my previous answer.

    You must set the dataProvider on the dg after completing the dataprovider with data so spend aDg.dataProvider = new DataProvider (myDp); at the end of the dataOnLoad method

  • 'RT Set date and time' does not define the UTC seconds

    Hallo,

    I tried to set the time on my cRio 9012 with the function settimeUTC which is used by the vi "the Date and time value. But the second I get home are ADDED to the current time and not defined as the new value.

    Even the vi illustrates this behavior: I've set up a vi time where in a loop (100ms delay) and reread. When I put in local time stop the clock (as expected), but when I put the UTC time the Dungeon seconds on the run...

    Can someone help me with this problem?

    Thank you

    Florian

    Hi Florian.

    After posting your version of LabVIEW, I found an answer to your question:

    The behavior you're seeing is a known bug that has been fixed in LabVIEW 8.5.1. Workaround is to use set local time instead.

    Let me know if you have any other questions.

  • I can not load CD on my computer because my windows 7 does not contain the file MSVBVM50. DLL

    my CD for learning English does not work because of lack of file on my system (windows 7)... and the file is DSVBVM50. DLL

    Your question have nothing to do with the Windows Update feature. Try posting here instead: http://social.answers.microsoft.com/Forums/en-US/w7programs/threads ~ Robear Dyer (PA bear); MS MVP (that is to say, mail, security, Windows & Update Services) since 2002. DISCLAIMER: I do not represent nor don't work for Microsoft

Maybe you are looking for