How to use multiple digital channels on a 9474 when generating a pulse on a 9172 train?

I use a 9172 with 9474 module to the location 6.  I want to generate the PWM signal 1 but, I have to be able to provide up to 4 amps.  I have a solution but, I'm not sure it's the best way to do it.  I'm basically starting and stopping the task and change PIN output in my startup routine.  DAQmx does not disconnect the old pine when he signs so new, I'm able to run 1 signal via the 4 outputs.

   /*********************************************/   // DAQmx Configure Code   /*********************************************/   DAQmxErrChk (DAQmxCreateTask("",&taskHandle));    DAQmxErrChk (DAQmxCreateCOPulseChanFreq(taskHandle,"cDAQ1Mod6/ctr0","",DAQmx_Val_Hz,DAQmx_Val_Low,0.0,1.00,0.50));    DAQmxErrChk (DAQmxCfgImplicitTiming(taskHandle,DAQmx_Val_ContSamps,1000));    DAQmxErrChk (DAQmxRegisterDoneEvent(taskHandle,0,DoneCallback,NULL));

   /*********************************************/   // DAQmx Start Code   /*********************************************/   DAQmxErrChk (DAQmxSetCOPulseTerm(taskHandle, "cDAQ1Mod6/ctr0", "PFI0"));  DAQmxErrChk (DAQmxStartTask(taskHandle)); DAQmxStopTask(taskHandle);    DAQmxErrChk (DAQmxSetCOPulseTerm(taskHandle, "cDAQ1Mod6/ctr0", "PFI1"));  DAQmxErrChk (DAQmxStartTask(taskHandle)); DAQmxStopTask(taskHandle);    DAQmxErrChk (DAQmxSetCOPulseTerm(taskHandle, "cDAQ1Mod6/ctr0", "PFI2"));  DAQmxErrChk (DAQmxStartTask(taskHandle)); DAQmxStopTask(taskHandle);    DAQmxErrChk (DAQmxSetCOPulseTerm(taskHandle, "cDAQ1Mod6/ctr0", "PFI3"));  DAQmxErrChk (DAQmxStartTask(taskHandle)); 

What is the best way to do that with my current hardware?  Also, I got to spend the 4 amp uses this method?

Thank you

P.C.

Hi P.C.,.

DAQmxSetCOPulseTerm() only accepts one signal, but DAQmxExportSignal() accept multiple signals, so here's a simpler way to do the routing:

DAQmxErrChk (DAQmxExportSignal (taskHandle, DAQmx_Val_CounterOutputEvent, "/ cDAQ1Mod6 / PFI0:3")); "))

DAQmxErrChk (DAQmxStartTask (taskHandle));

Brad

Tags: NI Hardware

Similar Questions

  • How to use the digital TV tuner on Qosmio G30?

    Hello, I recently got a qosmio G30-175. Could someone tell me how I can use the digital TV tuner mode qosmio player? Thank you

    Hello

    You won't like this, but unfortunately the digital tuner is not a musician Qosmio option.

    QosmioPlayer software is actually quite limited you really need to start Windows Media Center to get all the features of your machine which is a shame. There is always a chance toshiba can update the software of PS in time to take into account items such as the digital tuner.

    Despite this, you still have one of the best phones on the market, so I would like to concentrate on that.
    :-)

    Kind regards

    Mark

    Post edited by: Mark Nettleton

  • How to set up digital channels to change values on the trigger and the counter in c#

    Hello world!

    I work with the driver NI - DAQmx 6025 and want to know, how do I configure the digital channels in c# for control lines different ports by trigger rising "PFI0" and the meter "ctr0.

    digitalWriteTask = new Task();
    digitalWriteTask.DOChannels.CreateChannel ("Dev1/Port3 / line0:7", "", ChannelLineGrouping.OneChannelForAllLines);
    digitalWriteTask.Control (TaskAction.Verify);

    digitalWriteTask.Triggers / / how to configure to change Digital line on rising "PFI0"?

    digitalWriteTask.Timing / / how to configure to change Digital line on County "ctr0?

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

    Hi an alle!

    Am mit dem OR-DAQmx 6025 und möchte like wissen, die ich wie digital channels in c# konfigurieren muss um einzelne Ports der Leitungen auf dem Trigger "PFI0" und dem Zahler "ctr0' anzusteuern.

    digitalWriteTask = new Task();
    digitalWriteTask.DOChannels.CreateChannel ("Dev1/Port3 / line0:7", "", ChannelLineGrouping.OneChannelForAllLines);
    digitalWriteTask.Control (TaskAction.Verify);

    digitalWriteTask.Triggers / / Wie konfigurieren, um den logical Pegel eines feature pine bei der der zu winds PFI0 goods?

    digitalWriteTask.Timing / / Wie konfigurieren, um den logical Pegel eines pines beim ctr0 zu go digital?

    NEITHER told me, with the NOR-DAQmx 6025 driver not supported!

    ICH habe von NOR learn, dass dies mit der 6025 OR AQmx supported wird nicht!

  • How to use the digital pen on W700 (Win 8 version)

    Expert HE,

    How to add the digital pen for W700 with my digital "BAMBOO PEN - CTL-470' pen?

    or I buy Acer digital pen?

    Thank you

    A pen that works with a bamboo tablet is not compatible with the W700. Pens like that (fine point, sensitive to pressure, etc.) require what is called an active digitizer, which does not have the W700.

    You can use an inexpensive capacitive stylus like those that are advertised for the iPad and the iPhone, but those who are actually just a substitute for finger; the contact surface is a bit smaller and so maybe a little more specific than the finger and you will find perhaps more comfortable, but it does not add capacity.

  • How to use the digital inputs? (PCI-6010)

    Hello

    I have a PCI-6010 card and I tried to use a pulse generator in one of the channels of entry without success, I m using panels of 'Test' in MAX.

    How can I configure dthe hardware to make it work?

    Thank you

    APOs instalar a ultima versão labview refazer tudo bem mouse conexoes as w.

    Any forma, obrigado pela a definition.

  • How to use several collaborators channel of BBM BBM?

    He said we can use several collaborators for the channel of BBM surveys for the new update...

    http://press.BlackBerry.com/press/2015/BBM-introduces-new-ways-to-customize-your-chat-experience.htm...

    but I can't find any source to the place where to use it?

    Thank you

    Jay

    Channel of BBM of multiple contributors: BBM channels now supports several collaborators channel via the web client; makes it easier for the owners of BBM channel 1 million to manage and publish new content.

    The web client:

    Access your channel of BBM through BBM Channel Manager

  • How to use Multiple Select in for tabular

    Hello

    I use a tabular form to update data .i want to use Select Multiple tabular.

    How can I do it...



    Thank you
    Maury

    Published by: Ed on December 27, 2009 23:47

    Hello

    Go to declare attributes-> element in the form of--> the list of selection based on query replace

    Specify the query in the lov box

  • How to use multiple columns for the bookmarks instead of column 1

    Bookmarks always appear in a single column. As I have a lot you have to scroll to see all.

    How can I set bookmarks in several columns so that I can see them all at the same time.

    You can use the above. The Bookmark Manager works just like the
    folders on your computer. Create folders by using the sort and general name
    your list in these files. In addition, when you open the Manager, it
    a search box is at the top right.

  • How to use multiple profiles within the same instance of Thunderbird

    A month ago, I got Thunderbird set up with three profiles,
    and all three could be used in a start only one of
    Thunderbird. That the PC is now gone. I've reconfigured the three
    profiles on a new PC, but can't do all three
    can be used in the same instance of Thunderbird. Can you help me?
    Both computers are / were only Windows7 64 bit.

    Thunderbird opens on the default if a profile
    or
    The Profile Manager is responsible to ask at startup it will allow you to choose which profile to open if it opens the last used profile...

    Thus, it shows a profile at a time within a single instance of Thunderbird.

    However, only one profile can have multiple e-mail accounts.
    for example: I run 4 e-mail accounts in a profile.

  • HP FIRST: How to use multiple keys such as key #17 I need related Theta keys in a line program.

    Hello everyone, on the first of HP, I have to enter the key of theta in a program line, can not find in the manual on the functioning of these keys.   It's the key # 17 n x t theta.         How these keys to switch type or shift to use each key?

    101bil of survey

    Hi!, @surveying101bil:

    How are you?.

    See, Theta and the symbols of the other...

    Also, with...

    With App Polar, you can solve any confusion in this system.

    Example : #17 h * Theta

    Other, for example...

    Another example:

    #17 h * t * SIN (Theta) * n

    To store variables, you must et...

    (1) in degrees.

    (2) expressed in Radians.

    Comparison of the fr, with Wolfram Alpha... #17 h is interpreted as decimal = 23

    In degrees:

    In Radians:

    Note: If you have a QWERTY keyboard, in your PC, the Greek symbol theta in ASCII, you can obtein, with... Alt + 233.

  • How to use multiple cameras in same model for mirror (if that's the only way)

    Hi all

    I am creating a shot where the camera pans on a range of objects on the table which is a mirror. Now, I want the reflection in the mirror to move when the camera moves just like in real life. But I can't understand how do. a technique that I've imagined is to create another device and place it on the surface of the mirror and then have somehow connected to the main camera so that it records the image while moving the way ray of light will react on the main camera. later, I can make that camera mirror to place videos in the model so that it looks like a reflection on the other hand. But then again, I don't know how to establish that, as I don't know how I can connect a camera with the main camera that also reacts to the movements of the cam as a reflection of the light. Is there any expression for her? Help, please.

    Thank you.

    Here is a version of CS6 project: reflections (CS6) .aep

    It's corrected workflow

    • In the model of the hand, make sure that the mirror of anchor point is in the center of the layer and the scale is 100%
    • In the project Panel duplicate the model containing the 3D scene
    • Rename duplicate reflection
    • Open the model of reflection for editing
    • Here is where the fun begins. Select the lights and the 3D layers and their parent to the mirror
    • Make sure that Local axis mode is selected in the toolbar
    • Select the rotation tool and make sure that it is set on the direction
    • Move the cursor on the y-axis of the mirror, hold down the SHIFT key, and rotate the x 90 ° mirror (should be the 4th snap)
    • Select the scale property of the mirror layer by pressing the s key
    • Disable the locking of the scale, then set it to x-100% scale
    • This should reverse the lights around
    • Divide the timelines and reveal the position of the cameras properties
    • Add an expression to the camera position of thinking Comp by Alt/Option click on the stopwatch, and then drag the pickwhip to the model of the camera hand Position
    • Nest the Comp "reflection" in the original model and condense the transformations
    • Make a duplicate of the mirror layer and use it as a track matte for the model of reflection
    • Set the properties of the layer of mirror to get the final look wanted by using as an adjustment layer or change the material options or specular blend modes to pick up

    That should do it.

  • How to use multiple WSDL operations in BPEL process a receive activity?

    Is anyway to attach several WSDL operations with a single BPEL process? How?

    If you have your messages and the operations defined in your wsdl file, they will also be available to BPEL. So, for each onMessage branch, you can select a different wsdl operation which is available from the customer partnerlink. According to me, because now you have defined your BPEL process on a single XSD message and corresponding operation is generated. So now, open the wsdl file and add additional messages and operations before you create additional onMessage branches.

    Kind regards

    Melvin

    (it helps if you mark answers as useful or correct, it also gives us points ;))

    Published by: Melvin van der Kuijl August 21, 2011 22:44

  • Integration Service Broker - how to use multiple managers?

    With the Agent, it has well documented how to add a registry key to point to a manager of 2nd (or more).  How can achieve us this with the Broker of integration?  As far as I can tell that you can only point to a single Manager.  Our plan is to get the balancing of the managers behind a VIP, but from here, it is possible to have the redundancy?

    This is not possible without a VIP and to be clear it still is about a unique vCenter as well, today.

  • How to use multiple expression in a single layer

    I need help loop expression: loopOut (type = "cycle", numKeyframes = 0);

    and remove the numbers behind coma:.value.toFixed(0);

    I tried to use ';' but only works for the first expression

    toFixed() is probably not the right tool for what you do. Try this:

    Math.Round (loopOut (type = "cycle", numKeyframes = 0))

    Dan

  • How to use multiple operating systems on my M40-244?

    Hello
    I have a M40 244 with Windows XP, but I would like to install Windows98SE and XP.
    Can it be done? Guidelines to give me?
    Thank you
    Pete

    Hello

    in general there is no problem to install Windows 98 SE on a second partition on your hard drive. But you will have problems to find the drivers for this operating system, because it is not supported by Toshiba for this model. You must also bring.

    Good luck!!

    Good bye

Maybe you are looking for