Number of channels of "scan list" to decode

Is it possible to decode the number of channels in a scan list?  The example of NOR (niSwitch Thermocouple Measurements.vi) that I use, requires the entry of "scan list" and "number of channels.

Hello Ddemara,

If you're multiplexing through a bunch of thermocouple, the scan list will be not complex, then we could easily write code to determine the number of channels.  Our code will have to do the following:

(1) start a counter with the value 0.

(2) Iterate through scan list user-defined and add 1 to the counter whenever you find a comma.  The last element will not have a comma, so we will need to add 1 to the value at the end.

(3) find each instance of a colon (":"), then find the two numbers on each side of the colon, subtract these two numbers and then add them to the value of the counter.  We don't need to add one to the value of end here because we have already included the first item in the series

(4) the value of the counter is at this point the number of channels in the scan list.

If you have any questions to set this up, after. Have a great day!

FYI: The number of lanes in the example you mentioned allows us to recover data from the DMM as the first element of the array is always the thermocouple.  If the number of channels is wrong, extract indexing element 0 will cause plug wrong value to the CJC for thermocouple input scaling of vi.

Tags: NI Products

Similar Questions

  • How to synchronize the start of IT and relaxation the Scan list (DAQmx Switch)

    Hello

    I want to measure samples of N to the AI0 of Council NI PXI 4461. The measurement starts on a rising edge of a digital triggering provided to the PFI0 of the same Board. The measure is configured with samples of N/2 pretrigged. So far, everything is under control...

    Using an NI PXI 2567 Board, the signal applied at the entrance the 4461 (AI0) switches between a V2 and V1 signal. I would like to synchronize the switch between the two signals with the trigger signal applied to the input of the PFI0 Governing Council 4461. In order to obtain samples of N/2 of V1 and V2 samples N/2. Synchronization of 1 to 5 ms would suffice!

    My question is how to synchronize the start of acquisition of AI pretrigged of 4461 with the switch control given by the Council of 2567?

    Thank you in advance for your help...

    PS: the configuration of the system is:

    -LabView 8.5

    -Chassis PXI-1044

    PXI-4461 on slot 2

    Module 4-slot PXI-2567

    Hi Frederic,.

    I came back to this recently and used the following examples to run the desired synchronization.

    PXI-4461: Acq & graph tension-Int Clk - dig Start & Ref .vi

    Samples per channel = 1000

    Rate (Hz) = 10000.00

    Start the trigger Source = / [name of the instrument DAQmx] / PXI_Trig0

    Onboard start = fall

    Reference Source Trigger = DAQmx Device Name] / PXI_Trig0

    Reference edge = fall

    Trigger samples = Variable (100, 500, 900)

    PXI-2567: Switch Scaning-SW Trigger.vi

    Advance the output terminal full = / [name of the instrument DAQmx] / PXI_Trig0

    Scan list = / [name of the instrument DAQmx] / ch0-> com0.

    Scan list = / [name of the instrument DAQmx] / ch1-> com1;

    Hardware configuration:

    The PXI-2567 module controls an external relay that switches between the voltage of 5 V on ch0 and ch1 0 V.

    The PXI-4461 connects to the COM of the external relay and therefore reads 5V when ch0 is connected; 0 v when ch1 is connected.

    Procedure: The above examples are used in the following procedure.

    1. run the PXI-4461 VI.  A start trigger (falling edge) is necessary to start collecting samples before firing.

    2. launch the module, PXI - 2567 VI.  When ch0 is initially (and immediately) on com0, a trigger is sent to PXI_Trig0.  The PXI-4461 will begin to acquire samples before firing.

    3. - click on the "Connect to the next" button on the front of the PXI - 2567 VI module.  This sends a trigger to entry software for the PXI-2567 module and the transitions of the scan for ch1-> com1 list.  Once the PXI-2567 module remains (debounced), advanced complete relaxation is sent on PXI_Trig0 for the PXI-4461.  The PXI-4461 will begin to acquire samples after outbreak.

    Note: Instead of the trigger of the software entry, an external input trigger can be used (e.g. PXI_Trig1).

    Results:

    > Before instant release of samples = 100

    Delay is caused by the time of actuation of external relay.

    > Before instant release of samples = 500

    Delay is caused by the time of actuation of external relay.

    > Before instant release of samples = 900

    Delay is caused by the time of actuation of external relay.

    I hope that the attached screws and the explanation above helps you and/or other customers who have this problem.

    Best regards

    Chad Erickson

    Switch Product Support Engineer

    NOR - USA

  • How to display a certain number of channels...

    Normal
    0

    fake
    fake
    fake

    MicrosoftInternetExplorer4

    / * Style definitions * /.
    table. MsoNormalTable
    {mso-style-name: "Table Normal";}
    MSO-knew-rowband-size: 0;
    MSO-knew-colband-size: 0;
    MSO-style - noshow:yes;
    "mso-style-parent:" ";" "
    MSO-padding-alt: 0 to 5.4pt 0 to 5.4pt;
    MSO-para-margin: 0;
    MSO-para-margin-bottom: .0001pt;
    MSO-pagination: widow-orphan;
    do-size: 10.0pt;
    do-family: "Times New Roman";
    MSO-ansi-language: #0400;
    mso-fareast-language: #0400;
    mso-bidi-language: #0400 ;}

    Hello!

    I'm using LabVIEW 8.5 and I'm trying to display a specific number of channels using several channels...
    I can show in a chart, but I display the 16 analog inputs
    that have NEITHER 6024E and I need to view only the channels that have something
    connected to them (I do not know which channel will have something connected to)
    It). If they have a signal (temperature), I want to show only channel/s in a graph and save this channel/s in a txt file. If it isn't
    I don't want to view or save the channel/s.

    How can I do this with DQA Assistance?

    I am able to do all of this using a single channel, I can view in
    a graph, I can save it as a txt file, but I'm not able to do it for the number n
    only active channels. All advice or suggestion will be appreciated.

    Sincerely,

    Julieta.

    The "AI Multi Pt" looks like an old traditional DAQ example. The DAQ Assistant use DAQmx and it hides a lot of code. It's good and bad. Good if you do not need to change anything. Bad if you do. I don't know how you have configured the task, but you can do what you want by simply using the DAQmx screw directly. There are many examples provided with LabVIEW. Open example Finder (help-> find examples) and navigate to hardware input and output-> DAQmx-> analog measurement. I don't know if you need to go into the directory of the temperature or voltage, because as I said, I don't know how your task is implemented.

    Let's take a simple example. If you open the "Acq thermistor samples-SW Timed" in the directory of the temperature you can see it's pretty simple. The first VI is the DAQmx create channel VI. It has a "physical channel" entry. This can be a DAQmx control or it can be a string when you specify the list of channels to collect. So, to do what you want, you just have to create the string corresponding to the channels you want to collect. LabVIEW help describes how to create this string. The other method is to use the technique of this watch aestat. However, what is shown is only a part of what you need to do. You must have a pre-created range of channels and then you select the ones you want.

    See attached example (LV 8.2) to get an idea.

  • Determine the number of channels selected for traditional DAQ

    The blocks 'DAQmx task' and "Traditional DAQ Channel" look pretty similar (see attachments). The DAQmx block ist an individual selection of channels and I am able to determine the number of selected channels.

    Now I am trying to determine the number of selected channels to a traditional DAQ, but the property DAQmx block does not work here. I already tried the trad to some form of blocks. Range of data acquisition, but failed.

    Any idea?

    In traditional DAQ, there are several ways of specifying the list of channels. Assuming that your picture shows how you use your channel list is just a string of delimited by commas. Wire a constant to a string array node worksheet and specify "comma" as the separator and the number of columns must tell you the number of channels.

    Ben

  • Query the number of channels on all devices

    I would like to know the total number of channels WAS supported by all the devices I plugged into my computer. The snippet of code below works, but it requires me to specify the device with a constant, or a control. When I go to create this constant/control, LabVIEW knows already what is plugged in-how can I access this information?

    The only devices will be a NI 9234 or 9233 in a cDAQ chassis or the sleeve of USB.

    False alarm... Here is the solution, I came with.

  • generic calculations with changing the number of channels

    Hello

    I want to do some math basic with a flexible number of channels. The point is that I get an error if I specify strings that do not exist in my calculations. For example:

    CCh("[1]/CNV",2)-CCh("[2]/CNV",2) + CCh("[3]/CNV",2)-...

    I think that it should be possible to do this using a script, but you have no idea how to do it only with the calculator?

    Thanks in advance

    Jeremy

    You can do this easily using the recoding for VBScript method described in the following KB:

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

  • HAVE sampling frequency is divided by the number of channels + 1 for simulated ENET-9213, WLS-9213 and USB-9213

    Hello

    In the code in the example attached, I create a task with a single channel of AI.

    I get the maximum sampling frequency using DAQmxGetDevAIMaxSingleChanRate (or DAQmxGetDevAIMaxMultiChanRate), both return the same value of 1351 s/s.

    When I try to configure the sample calendar using DAQmxCfgSampClkTiming at the maximum sampling frequency clock he does not accept the rate and returns the following error. Note that the error message shows 2 channels, even if only a channel has been added.

    OUTPUT:
    DAQmx error:
    Sampling frequency is greater than the maximum sampling frequency for the number of specified channels.
    Reduce the sampling frequency or the number of channels. The increase in the conversion rate or
    reduce the time of the sample can also mitigate the problem, if you define one of them.
    Number of channels: 2
    Sampling rate: 1.351351e3
    Maximum sampling frequency: 675.675676

    Why the device driver thinks I have 2 channels in the task, when a channel has been added?

    Please find the code to reproduce this problem attached.

    Kind regards

    whemdan

    The MathWorks

    Hello w,

    By default, the ENET/WLS/USB-9213 in NOR-DAQmx module has the AI. AutoZeroMode the value of the DAQmx_Val_EverySample property. This causes NOR-DAQmx acquire the channel of the internal path of the unit (_aignd_vs_aignd) on each sample to return more specific measures, even if the operating temperature of the device moves over time. If you need the sampling frequencies higher than this allows, you can call DAQmxSetAIAutoZeroMode(..., DAQmx_Val_Once) (who acquires the formatting string when you start the task) or DAQmxSetAIAutoZeroMode(..., DAQmx_Val_None) (which disables the setting entirely).

    Note that for measures by thermocouple with cold junction compensation sensor of the 9213 NOR, NOR-DAQmx acquires channel built-in CJC (_cjtemp) on each sample as well, for the same reason.

    Brad

  • Why do write can not be performed because the number of data channels does not match number of channels in the task.

    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 job channels: 8
    Number of data channels: 1

    Lama says:

    The DAQmx vi writing gives me the error. If I run a single channel, isn't a problem. Multichannel gives me error.

    You are funny! Why tie yourself to work VI (single channel) instead of one that gives you errors (multichannel)?

    (If your car does not work, you bring car your wives to the mechanic, right!)

    What is the exact text in the multichannel 'physical channels' when you do the AO control?

    Lama says:

    I did a sequence to ensure that each function has been run in the correct order. Wouldn't a race condition.

    All you have to do is wire the 'start of task' error at the entrance of error of the DAQ assistant and then back to 'stop task' and things will run in order. Guaranteed! Think the stream! Everything else can run in parallel or the order is irrelevant.

    First convert the sequence stacked to a sequence of plate, remove the flat sequence and add the mentioned son. Now, do a "cleaning pattern.

    A when stacked with the inhabitants of the sequence is one of the worst construction you can possibly do. It makes the code difficult to follow, impossible to maintain, difficult to debug.

  • How to detect the number of channels on an oscilloscope?

    I have various models sitting around the laboratory, some two-channel, a few four-channel oscilloscope.  I would like for my program to be able to detect the number of channels is available.

    I can just tell my program how much string is available based on the model number, but is there a VISA command to request scope directly what channels he has?  I would also be able to ask what, if any, ability to function math there.

    "all drivers of the oscilloscope must return the instrumentID after initialization, and that should be enough to know the number of channels.

    What Albert was referring to is that all compatible drivers IVI in their base class interface have an attribute/property that indicates how many channels has the scope.

    If you don't want to use the driver of the IVI for the scope then maybe download some of the drivers and check the source code to see how they calculate this dynamic repeated capablity.

  • Windows Update fails with error [error number: 0x800A0007]-which is not listed

    Windows update fails with error [error number: 0x800A0007]-which is not listed, so unable to update the system

    The other post:

    Thank you for your reply - but the problem persists - this is mopre complete info.
    The system starts well and runs - BUT I cannot now be updated because when I access "Windows Update" it always returns this error message.
    Also, none of the messages in your "appliesto" step 2 recommended link will be applied effectively.
    As far as I know - we have a standard system and I just ran again ONCE a full system virus etc check - all clean.
    Also your "Mr Fixit" was performed several times, but nothing changes.
    Because it enters the update process, and then always closes with this specific message (which as I said is NOT in your list of error messages), which SHOULD tell your software writers where is the problem.
    This is what is happening in the process of updating before it fails:
    Keep your computer up-to-date
    Check to see if you need updates for Windows, your programs, your hardware or your devices.

    Get updates of high priority (recommended)  

    Select among the priority and optional updates for Windows and other programs

    ... and it does not matter if I say "express" or "custom" - headed then:

    Checking for updates for your computer...

    but fails after a few seconds with the same message as follows:
    [Error number: 0x800A0007]
    The website has encountered a problem and cannot display the page you are trying to view. The options provided below may help you solve the problem.

    -However, it is the State of the system for more complete information for you:
     
    Name of the operating system Microsoft Windows XP Home Edition
    Version 5.1.2600 Service Pack 3 Build 2600
    Manufacturer of operating system Microsoft Corporation
    MISCHU06BLUE system name
    System manufacturer Compaq Presario 061
    ED865AA - ABA SR1610NX NA540 system model
    System Type X 86-based PC
    Processor x 86 family 15 model 47 Stepping 2 AuthenticAMD ~ 1790 Mhz
    Version/Date BIOS Phoenix Technologies, LTD 3.33, 17/08/2005
    SMBIOS Version 2.4
    Windows C:\WINDOWS directory
    System directory C:\WINDOWS\system32
    Boot Device \Device\HarddiskVolume2
    The local United States
    Hardware Abstraction Layer Version = "5.1.2600.5512 (xpsp.080413 - 2111).
    MISCHU06BLUE\Compaq_Owner user name
    Time zone Pacific Daylight Time
    Total physical memory 1 024,00 MB
    Available physical memory 468,50 MB
    Total virtual memory 2.00 GB
    Available virtual memory 1.96 GB
    Page file space 1.51 GB
    Paging file C:\pagefile.sys

    Please get us some help to solve this problem.
    What else can I provide?

    I didn't ask if it was a new issue or a new problem, I asked if she was the same computer?

    [This applies to your recent 'me, too' answer to another thread.]

  • ORA-06550: PLS-00394: wrong number of values in the list INTO a mesh FETCH

    Dear friends,
    I ask you a suggestion:

    The following code inserts a table errors (errori_work), the IDS of the records repeat (in the work of the table), but gives me this error:
    ORA-06550: PLS-00394: wrong number of values in the list of a FETCH statement INTO.

    The work of the table has the 78 columns: the problem of the fields used in the slider flew against the 78% ROWTYPE fields?
    I could use a record declared as the cursor (rec_tabwork cu_tabwork % ROWTYPE;), but in the MANUAL I need a field (ID_WORK) is not present in the cursor.

    declare
    CURSOR cu_tabwork IS
    SELECT CD_STRUTTURA, CD_SUB_STRUTTURA, NR_PRATICA, likelihood
    Work
    CD_STRUTTURA, CD_SUB_STRUTTURA, NR_PRATICA, applications GROUP
    HAVING COUNT (rowid) > 1
    UNION ALL
    SELECT CD_STRUTTURA, CD_SUB_STRUTTURA, NR_PRATICA, likelihood
    Work
    CD_STRUTTURA, CD_SUB_STRUTTURA, NR_PRATICA, applications GROUP
    After HAVING COUNT (rowid) > 2.
    rec_tabwork work % ROWTYPE;
    BEGIN
    Open cu_tabwork;
    loop
    extract the cu_tabwork in rec_tabwork;
    If FOUND then % cu_tabwork
    dbms_output.put_line (rec_tabwork. (ASL); -test
    INSERT INTO errori_work
    (cd_errore, note, ID_WORK)
    )
    VALUES ("ACC", "Record ripetuto nella table work", rec_tabwork.ID_WORK)
    );
    end if;
    EXIT WHEN cu_tabwork % NOTFOUND;
    end loop;
    close cu_tabwork;
    end;

    Can you help me?
    Thank you
    Leo

    Hello

    I loaded your data and ran the query. It's coz the NR_RICETTA contains a null value, so your State A.NR_RICETTA = B.NR_RICETTA will fail when it checks for NULL = NULL. Here is your output from the query

    PRAZY@orcl> select count(ID_AMBS) FROM WORK A
      2  WHERE A.ROWID > ANY (SELECT B.ROWID FROM WORK B
      3  WHERE A.CD_PRESIDIO        =B.CD_PRESIDIO
      4  AND A.GGMM_CONTATTO        =B.GGMM_CONTATTO
      5  AND A.NR_RICETTA   =B.NR_RICETTA
      6  AND A.CD_CONT_PRESCR       =B.CD_CONT_PRESCR
      7  AND A.NR_PROG_INT  =B.NR_PROG_INT
      8  AND A.DESTINAZIONE =B.DESTINAZIONE)
      9  /
    
    COUNT(ID_AMBS)
    --------------
                48
    
    Elapsed: 00:00:00.00
    

    Therefore, I have included NVL to A.NR_RICETTA, which will produce true when it finds null checking 0 = 0 and you will get your result. and this is what you are looking for

    PRAZY@orcl> select count(ID_AMBS) FROM WORK A
      2  WHERE A.ROWID > ANY (SELECT B.ROWID FROM WORK B
      3  WHERE A.CD_PRESIDIO        =B.CD_PRESIDIO
      4  AND A.GGMM_CONTATTO        =B.GGMM_CONTATTO
      5  AND NVL(A.NR_RICETTA,0)    =NVL(B.NR_RICETTA,0)
      6  AND A.CD_CONT_PRESCR       =B.CD_CONT_PRESCR
      7  AND A.NR_PROG_INT  =B.NR_PROG_INT
      8  AND A.DESTINAZIONE =B.DESTINAZIONE)
      9  /
    
    COUNT(ID_AMBS)
    --------------
                61
    
    Elapsed: 00:00:00.01
    

    If you want to insert the duplicate ID in a Table of errors, do an insert with the following select statement.

    INSERT INTO errori_work(cd_errore, note, ID_AMBS)
    SELECT 'CAC', 'Record ripetuto nella tabella Work',ID_AMBS FROM WORK A
    WHERE A.ROWID > ANY (SELECT B.ROWID FROM WORK B
    WHERE A.CD_PRESIDIO     =B.CD_PRESIDIO
    AND A.GGMM_CONTATTO     =B.GGMM_CONTATTO
    AND NVL(A.NR_RICETTA,0)     =NVL(B.NR_RICETTA,0)
    AND A.CD_CONT_PRESCR     =B.CD_CONT_PRESCR
    AND A.NR_PROG_INT     =B.NR_PROG_INT
    AND A.DESTINAZIONE     =B.DESTINAZIONE);
    

    Hope that solves your problem.

    See you soon!

  • Compaq Evo D5pM - problems using this model number, never find what he listed...

    Compaq Evo D5pM - (Pent4 - 1.7 GHz) problems using this model looking for parts or information number.  Serial number has not been useful.

    Someone said "aka Compaq D510." Trying to buy memory model (found on the case) my number wasn't so I tried to use D510 (it was listed). Apparently not the same computer / mine use 168 pins sticks and D - 510 came 188 pins. I did my 'upgrade' purchase by check the number of pins and using the already installed type.

    My computer is a vertical minitower - looks like D - 510-, but like I said the components are different.

    I was wondering if anyone knows a model Compaq Evo w / same components (P4 1.7 GHz; 168 pin memory) I could use for research purposes. The smallest horizontal model Evo often uses different (smaller) maps, etc..

    Tried the Ctrl-Alt-S keyboard shortcut to bring up the model number (etc.), but my keyboard shortcuts do not work on this computer. Run a search for edge came up with nothing to tune.

    I tried HP support and drivers.  With the help of several model numbers and found that absolutely nothing for HP Compaq or "Compaq" is in the list.

    It is a great 3rd computer that I've updated w / spare parts, use it remotely, especially for music. Only problem was the dark model number. If anyone has something useful to add would be most appreciated. Thanks in advance...

    PS I'm currently trying to identify MB for what it's worth, but a number of alternative model that works would be great.

    Hello:

    Your model is a d500 CMT HP.

    1 GB 128 x 64-133 MHz PC133, 168P DIMM, 3.3V, sync

    Type of memory: , (non - ECC)
    Maximum memory: 3 GB
    Slots: 3

    This is the page for support and drivers for your PC.

    http://h20566.www2.HP.com/portal/site/hpsc/public/PSI/home/?cc=us & lang = in & sp4ts. OID = 96294 & Task = & AC.admitted = 1389381517647.876444892.199480143

    QuickSpecs:

    http://h18000.www1.HP.com/products/QuickSpecs/productbulletin.html#spectype=North_America & type = HTML & docid = 10946

    Because nobody does more than the memory, it will be hard to find and very expensive.

    You can plan on paying more $ $70 / 1 GB chip if you do not find the specification above used on a place like eBay.

    You can buy a newer, faster CMT from HP on eBay for less than $70 delivered.  Memory is much cheaper to buy as well.

    http://www.eBay.com/ITM/HP-DC7600-Pentium-4-3-0GHz-40Gb-512MB-DVDRW-XPPRO-30-day-warranty-/281231108334?PT=Desktop_PCs & Hash = item417aae28ee

  • Wait signal generator complete the scan list before sending the next command

    I am writing a program for Agilent E4421B signal generator scan to list between a range of frequencies (ramp up to the maximum frequency and then back down to the original frequency) specified. The signal generator has only a list of 401 points, which is a problem when I want to wash over a wide frequency range. To work around this problem, I would like to perform several scans of list in a row. However, I can't figure out an effective way to "say" the program to wait until the previous scan has finished before sending a new order of scanning for the signal generator. Any ideas? For reference, I use Agilent ESG drivers series LabVIEW.

    Thank you!

    If you use standard VISA calls, I would say just that send the scan command, but add; * mutual fund? (operation ends?) make a query.  Then, run a VISA to read what's coming.  This indicates to the device to send a 1 to the output buffer when the scan is complete (or just about any other operation, also).  As you are waiting for a response, your computer will wait the amount of time to wait so he could see a response, it is not less, your way with the exact amount of time - no more - to be actually taken.

    A few warnings:

    (1) make sure that the time-out is longer than the length of most slow scan.

    (2) there are variants of the '1' being returned.  I saw '1', '01', and even "1.00E + 3" therefore to allocate more than one byte to read."

  • 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

  • several channels switch scanning DMM

    Hello

    I use DMM (PXI of NI 4071) and switch (NI TB 2627). I want to make the measurement by scanning of a channel, then start to measure, after that, go to another channel and start measuring again (the so-called syncronous).

    But I have problem in my code to display the output of each channel. I can just show the output of channel 0 only.

    Here, I am attaching my code. Instead of display the output of the channels, in fact it can only show the output of channel 0 according to how many samples that I want. Which is why I'm trying so hard to show output from the other channels.

    can anyone help?

    Thanks for your help. =)

    Sorry, my code is very messy.

    Try changing your code as shown in the attached file.

Maybe you are looking for

  • Portege M200 - what CPU should I use?

    HelloI purchased a M200 with a processor of Pentium M 1, 5 GHz. Now, I want to put the fastest CPU in it. Which is the fastest CPU you can put in? What is the M745 Pentium, Pentium M745a or Pentium M750?Sorry for my Wnglish, I came from Latvia.

  • HP laptop computer 2000 PC: USB Port

    Hi, have questions about the USB ports on my laptop HP 2000. I know when I put my laptop into hibernation mode turns off USB ports. But reaction place my laptop mode 'sleep', in my opinion, the USB ports are still functional. My question is the USB p

  • How can I get rid of the end of service popup Xp?

    This end of popup XP service turns on everytime I turn on my XP laptop. I have no plan to upgrade my xp computer since only 2 programs I have on it crash on two win 7 and win xp pro virtual 7. The popup is boring and I can't seem to get this option d

  • Cannot download attachments in my documents if you use my hotmail - can anyone help?

    I am trying to download an attachment from my documents folder to email, and nothing downloads.   No picture, no paper, nothing.   I have windows Vista, use on an apple computer.  I use the Mail to apple as an alternative function, but prefer to use

  • HP dv9831ca xp downgrde

    Ive been able to find more pilots on mine. This will be my second attempt to downgrade to xp sp2 my first wasn't stable. is what im asking 1. in what order to install the drivers. 2. just in case I've missed something might make me know please.the dr