Discover the number of physical channels

When you configure a DAQmx device in LabVIEW code, is there a simple way to discover and to report the number of physical channels that have been selected?  I looked for property nodes to do this, use the "Physical channel" control as well as the indicator 'task out', but I have not found anything so far.  Any help would be greatly appreciated.

Found!

Measurement of e / s-> NI - DAQmx-> Advanced-> Confi task-> task node-> NumChans (number of channels)

Tags: NI Software

Similar Questions

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

  • Impossible to make the link between the consistent readings with the number of physical block reads

    Hello

    The issue is that we have seen consistent readings are more than the total buffers necessary to give back the results.
    I emptied the buffer_cache before you execute the query and also questioned the V$ BH to know the details of the buffer for these objects... After the flush before you trigger the request that we do not have buffers about these tables. Which is expected.
    We are doing sequential reads of DB file with the plan and will result in a single block, read at a time.
    Please take a close look at "TABLE ACCESS BY INDEX ROWID CMPGN_DIM (cr = pr 45379 = 22949 pw = time 0 = 52434931 US)" line in the plan source line below...
    Here we have only 22949 data buffers 22949 means reading physical but we are witnessing gets 45379 coherent.

    Note: We have the CMPGN_DIM and AD_GRP tables in the tablespace size 4 M block and we have only the default db_cache_size. My database block size is 8192.

    Can you please help me understand how the 22949 sequential reads the result in 45379 coherent takes.

    Even the V$ BH query buffer details matches with physical reads.


    line source of 10043 trace query plan:

    SORT ORDER BY 27 (cr = 92355 pr 47396 pw = time = 0 = 359030364 en)
    27 WINDOW SORT (cr = 92355 pr 47396 pw = time = 0 = 359030088 en)
    NESTED LOOPS EXTRA-ATMOSPHERIQUE 27 (cr = 92355 pr 47396 pw = time = 0 = 359094569 en)
    NESTED LOOPS EXTRA-ATMOSPHERIQUE 27 (cr = 92276 pr 47395 pw = time = 0 = 359041825 en)
    VIEW 27 (cr = 92197 pr 47393 pw = time = 0 = 358984314 en)
    UNION-ALL 27 (cr = 92197 pr 47393 pw = time = 0 = 358984120 en)
    HASH GROUP BY 26 (cr = 92197 pr 47393 pw = time = 0 = 358983665 en)
    VIEW 9400 (cr = 92197 pr 47393 pw = time = 0 = 359094286 en)
    9400 COUNT (cr = 92197 pr 47393 pw = time = 0 = 359056676 en)
    VIEW 9400 (cr = 92197 pr 47393 pw = time = 0 = 359009672 en)
    9400 SORT ORDER BY (cr = 92197 pr 47393 pw = time = 0 = 358972063 en)
    9400 HASH JOIN EXTERNAL (cr = 92197 pr 47393 pw = time = 0 = 358954170 en)
    VIEW 9400 (cr = 92191 pr 47387 pw = time = 0 = 349796124 en)
    JOIN by HASH 9400 (cr = 92191 pr 47387 pw = time = 0 = 349758517 en)
    94 the TABLE ACCESS BY INDEX ROWID CMPGN_DIM (cr = pr 45379 = 22949 pw = time 0 = 52434931 US)
    50700 IDX_CMPGN_DIM_UK1 INDEX RANGE SCAN (cr = 351 pr = 349 pw = time 0 = 1915239 US)(object id 55617)
    TABLE ACCESS BY INDEX ROWID AD_GRP 60335 (cr = 46812 pr 24438 pw = time = 0 = 208234661 en)
    60335 INDEX RANGE SCAN IDX_AD_GRP2 (cr = 613 pr = 611 pw = time 0 = 13350221 US)(object id 10072801)
    VIEW 7 (cr = 6 pr = 6 pw = time 0 = 72933 en)
    7 HASH GROUP BY (cr = 6 pr = pw 6 = 0, time = 72898 US)
    162 PARTITION SINGLE PARTITION RANGE: 4 4 (cr = 6 pr = 6 pw = time 0 = 45363 en)
    162 PARTITION PARTITION UNIQUE HASH: 676 676 (cr = 6 pr = pw 6 = 0, time = 44690 US)
    162 INDEX RANGE SCAN PK_AD_GRP_DTL_FACT PARTITION: 3748 3748 (cr = 6 pr = pw 6 = 0, time = 44031 US) (object id 8347241)
    1 DOUBLE QUICK (cr = 0 pr = 0 pw = time 0 = US 9)
    25 TABLE ACCESS BY INDEX ROWID AD_GRP (cr = 79 pr = 2 pw = time 0 = 29817 US)

    user622572 wrote:
    Hi Charles,
    In this test of problem we have not any activity on my tables other than my session. If we do not have all cancel must be applied to the brand CR.

    * "So, which means the above?" *-->, that means the number of times where the blocks was visited is counted as CR not the number of buffers required to respond to a request. "

    * "" Why a plan of execution would change the number of makes more sense? "*--> changes in the method of access to the path and join required a different number of times the same buffer necessary visit." It means NL require more number of same buffer visits to T2, T1 and INT_T1_C2 as the hash join.

    * "' Why not flush the buffer cache would result in the PR drop statistics to 0, but does not change the statistics CR?" *--> each result buffer in physics RAS reads for objects from there which is why it cannot be zero in the first 4 tests where as test5 require PI (we don't rinse prior to that in your test case). " CR cannot be changed with buffer flush. Required CR same amount of pads and tampons visits regardless of buffer flush.

    It seems that we can say that "CR numbers include the number of times the block was visited in a query instead of just the number of buffers required". ""

    user622572,

    You deserve a lot of credit for having read and understood what I posted to correctly answer the questions I asked at the bottom of results and for your ability to answer your original question.

    Charles Hooper
    IT Manager/Oracle DBA
    K & M-making Machine, Inc.

  • Scripture cannot be performed because the number of data channels does not match number of channels in the task.

    My VI works as a motion detector.  Whenever the motion detector is activated, the led lights up and a beep is heard (a switch will exercise my motion sensor).  Once all the lights are on, the system reset is supposed to light up, and then the other three lights turn off back waiting to be activated once more.  My attachment saved as "sensor project", I have the VI working with data acquisition by implementing a case of random number, and the VI works here to give a demonstration of what I'm trying to work in favor. Any information would be greatly appreciated.

    You have some problems of logic and data flow.

    Once all three loops stop sensors, all outputs are necessarily true, then the case and a compound bow structure in the loop (reset) next is useless. Because the boolean in the fourth loop ending is immediately true, the loop to stop and not care about the State of the reset button. Maybe you should connect the termination condition to the wire going to the system reset light instead. Since it is also a polling loop, it needs a small wait. Once you press reset, the VI full and stops. (Do not use the continuous operation mode!).

    Solution: Create a state machine with a single outer loop. You have 4 x code too!

  • Discover the number of activations

    Hi people,

    This is my first message here, I apologize for my limited communication skills, but I'm not native English (I'm a man of Italian family 45 years).

    I recently bought the first el + El Photoshop and I'm very happy for that. I know that I have two activation for first El and two for Photoshop El.

    I installed the first and I activated the license by inputing the license key. On the same day, after the update of the software (14.1), I had too many accidents on 10 Windows, so I decided to uninstall.

    I uninstalled and then I reinstalled again Premiere El on the same laptop and I once again the license registration key.

    So, how much license activation are deployed? I don't want to lose the ability to install on a second PC, because now my product only works on a single PC.

    Is there a way to find out how much activation of license are deployed for the side Adobe?

    Thank you.

    You should always disable before uninstalling.  If you active twice and do not turn off once in between, then you have two activations tied to one machine.  What you can do is contact the Adobe Support when they are available (U.S. in opening week) and ask them to reset your activations so that you have two of them released during use.

    To the link below, click on the still need help? the option in the blue box below and choose the option to chat...

    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If it fails to connect, try to use another browser.

    Serial number and activation support (non - CC) chat

    https://helpx.Adobe.com/contact.html?step=PHSP-PHXS_downloading-installing-setting-up_lice nsing-activation_stillNeedHelp

  • Can I Change the number of physical training of my VM?

    I created a computer virtual to a physical disk, which is actually a mounted disk image file.  Here's my VMDK file:

    # Disk DescriptorFile
    version = 1
    Encoding = "windows-1252".
    CID = fffffffe
    parentCID = ffffffff
    isNativeSnapshot = 'no '.
    createType = "fullDevice."

    # Description of the measure
    RW 625142448 FLAT "------." ------PhysicalDrive7"0

    # The database disk
    #DDB

    ddb.virtualHWVersion = '8 '.
    ddb.longContentID = "ddb2dcd6ef0e3f8540e478affffffffe".
    DDB. UUID = "60 00 C2 95 91 60 5th-89 18 84 dd 46 5f c5 d0.
    DDB. Geometry.Cylinders = "9767850".
    DDB. Geometry.Heads = "32".
    DDB. Geometry.sectors = '2 '.
    ddb.geometry.biosCylinders = "9767850".
    ddb.geometry.biosHeads = "32".
    ddb.geometry.biosSectors = '2 '.
    ddb.adapterType = "free".

    I took a snapshot of the virtual machine and, as expected, VMware has created about 150 segments of the snapshot file.  It is correct, as the virtual machine works very well.  However, when later I returned to my VM, I find that when I go back the target disk, it's PhysicalDrive8, which for lack of place my VM.  Change the base vmdk for PhysicalDrive8 does not work, but maybe I have to change something in each snapshot.  I envisage edition 150 files, but maybe I could write a script or use a tool to do it automatically. As a solution, I could move up or dismantle other disks so that Windows makes my original PhysicalDrive7disk and maybe it's the way to go, but I thought I'd ask.  Thank you!

    Hi Jimmy
    I'm surprised it doesn't - I make these changes quite often.
    The snapshots should be no reference to the physical drive.

    Yust make sure you don't have a virtual machine that open in my computer while you change the vmdk

  • get the number of wired physical channels?

    Hello

    I need to create a Subvi, and in this sub - VI, it is important to know the number of physical channels connected to the entrance of the Subvi.

    Is the only way to do than writing another "channel search and County" - Subvi, which examines the "physical" channels - wire? Something looking for a ': 'and',' and who treats this information then.

    Or is there a better way to do it?

    Or has someone already written such a Subvi, which counts the number of channels wired?

    Thank you very much

    Andy

    If you ask to know how many channels is in a physical channel DAQmx? If so, just the physical channel to Unflatten DAQmx channel chain wire. You'll get a table. The size of table function will give you the number of channels.

  • 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

  • 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

  • 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

  • The Oracle trace: number of physical reads of the signifier of disk buffer

    Hi all


    Since yesterday, I was under the impression that, in a trace file Oracle, the "number of physical buffer of disk reads" should be reflected in the wait events section.

    Yesterday we add this trace file (Oracle 11 g 2):

    call the query of disc elapsed to cpu count current lines

    ------- ------  -------- ---------- ---------- ---------- ----------  ----------

    Parse        1      0.00       0.00          0          0          0           0

    Run 1 0.04 0.02 0 87 0 0

    Get 9 1.96 7.81 65957 174756 0 873

    ------- ------  -------- ---------- ---------- ---------- ----------  ----------

    total 11 2.01 7.84 65957 174843 0 873

    Elapsed time are waiting on the following events:

    Event waited on times max wait for the Total WHEREAS

    ----------------------------------------   Waited  ----------  ------------

    SQL * Net message to client 9 0.00 0.00

    reliable message 1 0.00 0.00

    ENQ: KO - checkpoint fast object 1 0.00 0.00

    direct path read 5074 0.05 5,88

    SQL * Net more data to the customer 5 0.00 0.00

    SQL * Net client message 9 0.01 0.00

    ********************************************************************************

    We can see that the 65957 physical disk reads resulted only 5074 direct path read. Normally, the number of physical reads from disk is more directly reflected in the wait events section.

    Is this normal? Why is that? Maybe because these discs are on a San have a cache?

    Best regards.

    Carl

    direct path read is an operation of e/s diluvium, is not just to read 1 block

  • How to get the number of LUN to physical RDM assigned to VM?

    Hi people,

    Is it possible to get the LUN ID or number of a RDM physical disk attached to a virtual from Windows using PowerCLI machine?

    Thank you.

    Hi Albert,

    the first PowerCLI script will give the LUN ID or the number of physical RDM disks attached to a virtual machine for ESX 3.5 servers:

    Get-VM | `
    Get-HardDisk | `
    Where-Object {$_.DiskType -eq "RawPhysical"} | `
    Select-Object -Property @{N="VM";E={$_.Parent}},
      @{N="HardDisk";E={$_.Name}},
      @{N="Lun";E={$_.ScsiCanonicalName.Split(":")[-1]}}
    

    The second script PowerCLI will give you the LUN ID or number of a RDM physical disk attached to a virtual machine for 4 ESX servers:

    Get-VM | `
    Get-HardDisk | `
    Where-Object {$_.DiskType -eq "RawPhysical"} | `
    Select-Object -Property @{N="VM";E={$_.Parent}},
      @{N="HardDisk";E={$_.Name}},
      @{N="Lun";E={
        $HardDisk = $_
        $lun = Get-VMHost -VM $_.Parent | `
          Get-ScsiLun -LunType Disk | `
          Where-Object {$_.CanonicalName -eq $HardDisk.ScsiCanonicalName}
        [int](Select-String ":L(?\d+)$" `
            -InputObject $lun.RuntimeName).Matches[0].Groups['lunID'].Value
      }}
    

    Thanks to Luke for his blog post the making of a New VIProperty called Monday who gave me the idea for the regular expression.

    Best regards, Robert

    Post edited by: RvdNieuwendijk

  • How to set the number of connections to the server. I am rejected after three connections.

    The following message appears when I consulted three folders in my email...-'unable to connect to the IMAP server. It may have exceeded the maximum number of connections to this server. If so, use the advanced settings of the IMAP Server dialog box to reduce the number of cached connections. »

    You can connect to an IMAP server as often as you like, BUT...
    You can restrict the number of simultaneous channels that are open during this connection.

    Thunderbird sets a default limit of 5.
    You can go higher on some servers, or you can go as low as 1.
    Try to set the limit of connection for 3

    "Tools - account settings - [select your account] - server settings - [settings of the server] - advanced - maximum number of connections to the server for cache - [enter 3]"
    If it is already set to 3, to descend more down - 2 or even 1.
    Out OK

    TB - 38, Win - PC 2

  • call by reference and physical channel OR DAQMX

    Hello

    I call a VI of reference and one of its entries is a physical channel OR DAQMX.

    Normally when I call the VI (no ref) control of the physical channel OR DAQMX fill itself with a list of detected devices / channels.

    Still by reference it does not work because I'm the appellant on a server of VI. He shows me the channels on the local computer instead of the remote computer.

    How will you address the list of physical channels OR DAQMX on a remote machine?

    Here is an excerpt of how find my DAQ card by searching all DAQ hardware in the system, and then query string types I want. Note that this must be running on the remote system. Perhaps could you run on the remote system and use the TCP/IP, Messaging Protocol to transfer the results?

    Charles

  • How to change the number of items in number to Boolean, function VI table

    Hi, I'm working on using the digital output of data acquisition to control the digital input of a DAC, and I used the Number function in Boolean table. VI to convert the number to a Boolean array. The maximum number is 4096, so it must be composed of 12 elements.

    For the description of the VI, it is said that Boolean matrix returns a table of 8, 16, 32 or 64 elements, according to the number of bytes in the whole. Therefore, I change the number of channels in the task to 16, but it still does not work. The suggesitions are greatly appreciated.

    Thank you!

    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: 12
    Number of data channels : 32

    Task name: _unnamedTask<1B>

    Once you have the array of Boolean, you can resize using table tools. For example you can use the "new range" with a length of 12 to pad the table of 12 elements of Boolean values (you can also use a subset of table).

Maybe you are looking for

  • Menu fonts in LabVIEW 8.6

    I have problem with menu, of Greek characters in LabVIEW 8.6. I installed the patch to take care of other languages, and everything good in the development environment. But to exe (executable), Greek characters in menu cannot be displayed. To the fro

  • Microsoft auto download computers crash

    I received a phone call last night at 09:30 from some foreign Word lady who said she was with Microsoft and she needed me to go to my computer immediately and she would guide me through measures to prevent that my computer crashes because of somethin

  • I DON'T CODE EROR just A Tech Question

    I added a SLAVE hard DRIVE to an old PC with XP - SP3, but the CURRENT HARD has ONLY 8 CONCERTS , the SLAVE has 80 GB and XP on that too, with 40 CONCERTS FREE, the captain was FREE ONLY 200 MG,I need to know if there is a way of INTERGRATE the 2 DIS

  • Find the network settings of the image of PC card?

    Windows store card settings network e.g. IP address, subnet, default gateway, in a way that I can find and access it from a backup image to a PC that is used off site? A PC on site went down and had multiple configuration of network to the local host

  • Two of the three USB ports works only on Compaq CQ71 (Windows 7).

    Hi, I have a Compaq Presario CQ71. There is a USB port on the left and two on the right. The one on the left works but the two on the right are not.  An "unrecognized" message when you use one of them, but not with each other, however there is power