Can I create a task that includes the 2 c series modules?

I am trying to create a single task that includes 2 modules of the series C OR - 9425, but when I wire the constant "Mod3/port0, Mod4/port0" physical channel in the DAQmx create Virtual Channel.vi I get error-200086 which indicates the syntax range physical channel in the input string is not valid because several devices have been included in the chain.  It is my understanding of LabView help this multidevice tasks are allowed.  Also according to article KB http://digital.ni.com/public.nsf/allkb/CF85114C6025C84C862571C000722DDA devices multiple tasks are supported for devices of the series S, series C and DSA devices, and according to this article KB http://digital.ni.com/public.nsf/websearch/78E44565FD87E7D686257108007F94F8?OpenDocument I formatted my constant of physical channel correctly.

Please can someone explain why I get this error when all indications are that this should be a simple thing to do?

My C Series modules are in slots 3 and 4 in a chassis cDAQ-9188, I'm currently under LabView 8.5.1, with Windows XP

Thank you

Eric

Hi Eric,.

I am afraid that you cannot configure the hardware timing with the module 9425 in CompactDAQ. The NI 9425 data sheet explains: «the NI 9425 is a static digital module, so you can use it to perform only call by the software or static operations when installed in a chassis NI CompactDAQ.»

For I, AO and countertops, daisy chaining multiple calls to DAQmx create channel equivalent to specifying a list of physical channels, but it's different for DIO. Only one virtual channel DIO can contain several physical channels (lines). It would be quite reasonable to assume that by specifying a list of lines 'with a single channel for all lines"would cause DAQmx put all the lines in a single virtual channel, but see how it is implemented under DAQmx, is not possible when the lines are on multiple devices. Also, it would be reasonable to assume that if DAQmx could not put all the lines in a single virtual channel, it would create a virtual ring road, but that is not how it is implemented-, it returns the error you received.

Instead, here are two approaches to all 64 lines in a single task. Either we have to work.

Approach: create a single task, containing two virtual channels (MyChan0 and MyChan1). MyChan0 contains cDAQ1Mod3/port0 / line0:31 and MyChan1 contains cDAQ1Mod4/port0 / line0:31. Digital 2D Bool NChan 1Samp read VI returns a 2 x 32 table of Boolean. To flatten it into an array of 64 elements D 1, you must use the table to reshape or some other method.

The task of DAQmx > ownership of channels is here to show that there are two virtual channels named MyChan0 and MyChan1. Also, I used a loop for to show that you don't have to encode multiple calls to DAQmx Create Channel. The constant "a channel for all lines" is redundant because it is the default value.

B approach: create a single task, containing 64 virtual channels (MyChan0 through MyChan63). This example uses the constant 'a channel for each line', which is not the default. MyChan0 contains port0/cDAQ1Mod3/$line0, MyChan1 contains cDAQ1Mod3/port0/line1, etc.. Digital 1 d 1Samp Bool NChan read VI returns an array of 64 D 1 of Boolean elements. If you have used the Digital 2D Bool NChan 1Samp VI instead, you would get a 64 x 1 matrix, there are 64 virtual channels with 1 line of each.

Brad

Tags: NI Software

Similar Questions

  • Can I create an action that includes a shortcut for the patch tool?

    I am trying to create an action that includes a shortcut for the tool room.  I changed the patch (now R) tool shortcut to be different from the correct place (J), it works fine on the keyboard, but it will not record in action. Is there a way to include this point in the action?

    Something do not have in stock, and there is no menu item for the function you want to save.  The easiest way around your problem is to create a tool preset for the tool part then record by selecting this predefined in your action patch toll to pass to the tool room.

  • How can I create a watermark that has the text and graphics?

    Lightroom does not seem to offer a text watermark OR graphic, can create a watermark that has both?

    Basically, you need create a chart with text it contains.

  • Captivate 7 - can I create a button that triggers the video?

    Hello

    I'm 99.5% positive, he is a stupid question, but I can install a button that plays video as its action on success? I know I could use the skin to allow the user to play the video, but I want the video to play once the user clicks on a button that I created.  I do not see 'video game' as an option for the action on the success.

    Hi rscharfer,

    You can also try the below.

    (1) insert a video of the event with autoplay.

    (2) clear visibility of PI.

    (3) insert a button, make its action of success as evidenced by the Video_Object_1.

    In the published output, when you click the button, movie starts to play. Please let me know if it solves your problem.

    Kind regards

    Alexis

  • How can I create an animation that puts the cycles from 1 to 100

    Hi guys this is my first time on the forum so I hope I do everything right.

    For my school project, I create a flash game and I need to have an animation of the text/number from 1 to 100 - randomly showing some in-between numbers for example 1,5,12, 20... etc. over a period of 2 seconds.

    I have a very basic knowledge of flash and so do not know how to do this, can anyone help?

    Thank you

    Oops, we need a

    t.Start)

    to start the countdown and fill your textfield.

    var t:Timer = new Timer (.2,10);

    t.addEventListener (TimerEvent.TIMER, f);

    t.Start ();

    function f(e:TimerEvent):void {}

    TF. Text = String (Math.ceil (t.CurrentCount * Math.Random ()));

    {if(t.CurrentCount==t.repeatCount)}

    TF. Text = "100";

    }

    }

  • How can I create a mouseover that expands the scene

    I have 4 circles on a scene that is px 1000 px wide and 200 high.  When I go on one of the circles I want to step to extend the 1000 px wide and 500 px high.  But I want that to happens only once when I fly over any one of the circles.

    SO I guess my question is how to make a make a passage of the mouse which only happens once and doesn't repeat itself when I fly over this item again.

    Thank you!

    Just add a variable in compositionReady

    Open var = true;

    Then add on you the mouseover event in compositionReady

    SYM. $('circleName') .bind ('click', function() {}

    {if(Open==true)}

    code for your mouseover

    Open = false;

    } else {}

    code for your State

    }

    });

  • Two tasks that share the same resource in sequence

    I'm the current exception "the specified resource is reserved.". I understand that you can not run two tasks that share the same resource at the same time. However, is it true that you can not run two tasks that share the same resource, one right after the other, without the eliminate completely from the first task?

    for example

    Task1 and task2 share the same resource
    Task1. Start();
    Task1. Stop();
    Task2. Start(); This will always throw an exception until you have a task1 (i.e. task1.) Dispose()?
    Task2. Stop();

    Hi cafarm,

    You're right, the fact to just stop at one task does not allow that run you another task with the same resources immediately after. That being said, you can start the next task without having to erase or dispose of the first by making use of the task status template DAQmx. As you can see on the next page, stop a task simply going to the State of "Clerks", which means that the material is still used by the task even if she does not actively.

    http://zone.NI.com/reference/en-XX/help/370466AC-01/mxcncpts/taskstatemodel/

    Instead, you can use the control functionality of task for the first task of transition to the status "verified" after stopping it, then start the second task. This keeps the parameters of the task without having to have the task, but it should free up resources to be used by other tasks.
    http://zone.NI.com/reference/en-XX/help/370473H-01/mstudiowebhelp/HTML/verifycommitstartstopdaqtask/

  • Can I create two tasks of IA using the same unit of data acquisition?

    Hi all

    Sorry for the question of gumby, but I'm new to all this stuff DAQmx, and I'm trying to understand how it all works.

    I use a USB-6229 with LabVIEW 8.6.1.

    I would use 30 lines HAVE to monitor 30 voltage remote signals.

    I would use the other two lines of AI to perform input voltage independent tasks.

    I tried to create and start the two tasks, but I get an error message when I try to start the second task.  He tells me that the resource is not available.

    What is the cleaner way to configure things working for me?

    Thanks in advance.

    -FB

    Hi diarmaede,

    You can only create one task to HAVE on your card. Read all your DO this card in a loop. You can divide the result and send it to different loops to work on it.

    It will be useful.

    Mike

  • How can I force DAC to run always full load for one of the task that executes the stored procedure? And remaining tasks load incremental in the second and sub sequent executions.

    Hello

    How can I force DAC to run always full load for one of the task that executes the stored procedure? And remaining tasks load incremental in the second and sub sequent executions.

    Thank you

    Jay.

    Hi if your task is running an informatica mapping you can set your DAC task to run the full mapping for incremental and full loads, so tab task just point to the mapping.

    Hope that helps.

    Thank you

  • Can I create a button that the copy is a certain test for my Clipboard?

    Can I create a button that the copy is a certain test for my Clipboard?

    For example, when I click the button on the site, then the next time to paste it somewhere, a specific text appears?

    If possible, could someone please explain to me how? =(

    Hi Travis,

    There is no native function to Muse to achieve this goal. However, you can use custom code to achieve this. Please see the following link for the code example: How to copy to the Clipboard in JavaScript?-stack overflow

    Kind regards

    Aish

  • How can we create a promotion that is not out of the box?

    Hello
    How can we create a promotion that is not out of the box?

    Hello

    You can create a new descriptor from point to point in atg/commerce/pricing/pricingModels.xml.

    ~ Abdelali

  • Issue of multiple Disqualification tasks that use the same snapshot

    Details of the environment

    ======================

    Disqualification Version: 12.1.3.0.0


    A snapshot has been created in which the WHERE clause is outsourced and this snapshot table is used in a data quality process.

    Since there are different values passed to the WHERE clause, different jobs who have their own data quality process, but these process reads from the same snapshot table.

    Disqualification does not allow execution of different tasks that uses the same shot to run at the same time.

    Job1 is in operation, job2 throws an exception that the snapshot is locked.

    Any reason why Disqualification has this restriction? Processes are just doing a read on the snapshot table operation, so I was wondering why it was necessary to lock the object.

    We have more than 60 jobs that use the same snapshot and it would inhibit scalability if we are forced to run 60 jobs in sequence and not allow them to run in parallel.

    Can you advice how to fix this problem?

    The short answer is that each task must be executed with his own label of execution. Otherwise, each work is actually being run in the same context, and you will have problems of blocking.

    Please read on the labels of the execution and run profiles in the online help.

    Note that when running with a label of execution, complete results are not written; you need to decide exactly what to write work featuring the views of results you need. All data staged (including the snapshot itself) will be written with a label execution context and you can view the results in the Console of the server. Director will only show the results of the last run.

  • Is it possible for an index that includes the condition 'GOLD '?

    Hello, I have a few questions.

    The test was conducted in the following procedure.

    ################################
    create table test
    (
    VARCHAR2 (10) C1.
    C2 varchar2 (10),
    key (c1) elementary school

    );

    create index test_idx1 on test (c2);

    Command > explain select * test where c1 = 'JOHN' or c2 = "JOHN";

    Query optimizer plan:

    STEP: 1
    LEVEL: 1
    OPERATION: RowLkRangeScan
    TABLENAME: TEST
    IXNAME: TEST
    CONDITION INDEX: < NULL >
    NOT INDEXED: TEST. C2 = 'JOHN' OR TEST. C1 = 'LUCY '.

    Command >


    Command > explain select * test where c1 = 'LUCY' and c2 = "ABDELLAH.

    Query optimizer plan:

    STEP: 1
    LEVEL: 1
    OPERATION: RowLkRangeScan
    TABLENAME: TEST
    IXNAME: TEST
    INDEXED CONDITION: TEST. C1 = 'ABDELLAH.
    NOT INDEXED: TEST. C2 = "ABDELLAH.

    Command >
    ################################

    By adding the status of "GOLD" in this test does not use the index.

    Is it possible for an index that includes the condition 'GOLD '?

    Thank you.

    GooGyum.

    A database can generally use indexes in this way for one 'or' with two different columns. However, for this example specific can easily rewrite the query using 'UNION' to use the relevant hints while still giving the same result (correct):

    Command > explain select * from t1 test where t1.c1 = 'LUCY' union select * test t2 where t2.c2 = "JOHN";

    Query optimizer plan:

    STEP: 1

    LEVEL: 1

    OPERATION: RowLkRangeScan

    TABLENAME: TEST

    IXNAME: TEST

    INDEXED CONDITION: T1. C1 = 'ABDELLAH.

    NOT INDEXED:

    STEP: 2

    LEVEL: 2

    OPERATION: RowLkRangeScan

    TABLENAME: TEST

    IXNAME: TEST_IDX2

    INDEXED CONDITION: T2. C2 = "ABDELLAH.

    NOT INDEXED:

    STEP: 3

    LEVEL: 1

    OPERATION: OrderBy

    TABLE_NAME:

    IXNAME:

    INDEXED CONDITION:

    NOT INDEXED:

    STEP: 4

    LEVEL: 2

    OPERATION: UnionMergeSort

    TABLE_NAME:

    IXNAME:

    INDEXED CONDITION:

    NOT INDEXED:

    Maybe you can apply something similar? If you know that there is no possibility of duplicate lines then you can optimize it (in terms of performance) by using UNION all.

    Chris

  • How can I create a separate page in the menu bar?

    How can I create a separate page in the menu bar?

    I want to create a page that does not contain the bar, other pages, and I don't want other pages to include this new page in their menu bars.

    I want to create a different page (s) completely independent in an existing menu bar and maybe add it's own menu bar...

    Is there a way to do it?

    Yes, you can right click the page you want to have separate and select "exclude of the Menu.

  • I can now create a folder that will hold all of my photo files?

    Original title: search folder

    I did a search with the little dog under (music photos or videos).  I have all my photos gathered.  I can now create a folder that will contain all the? I use Microsoft Word or Word Perfect 10, but most of my documents are in WP. I have photo files in Picasa and Photo Shop as well as those of Word Perfect.

     

    Hello


    What documents are there in WordPerfect?

    Yes certainly, you can create the folder that holds all of the image files.

    See the following steps to create a folder.

    (a) to highlight all the images files or press Ctrl + A on the keyboard

    (b) go to the location where you want the folder to be (example: Office)

    (c) right-click and click New, and click folder

    (d) the name of your choice.

    (e) open the folder, right click and click on paste.

Maybe you are looking for