Extract single channel from DAQmx Task

Hello,
I have created a DAQmx output task, which contains two channels.  Is it possible to extract individual virtual channels from the task to be processed by two parallel processes?  I have tried bringing out the Channels Property using a Task Property Node, but I then get the error that the channel is not part of an active task (see attached snippet)
Could anyone advise on a better approach, or how to acheive this functionality - if it is possible?
Regards
Dave
Solved!
Go to Solution.
Attachments:
split out channels from DAQmx task.png ‏34 KB

Sorry, that VI does not make much sense. You have to use a single DAQmx Write for both channels and for 1 Sample mode, you simply have to build an array of the signals as shown below.
Attachments:
two channel write.png ‏12 KB

Similar Messages

  • How to remove channel from DAQmx Task

    I need to add remove channels from the task programmatically. How can I achieve it.
    Also while downloading my program to RT controller my system stops responding if I have DAQmx timing VI in my program. My program is running fine on windows system with DAQmx Timing.

    How are you using the DAQmx Create Task.vi? Are you using it to include a global channel or copy a task that was previously created in Measurement and Automation Explorer (MAX)? If this is the case the only way to remove a channel would be to delete the global channel or modify the physical channels for that task in MAX. If you are creating a new task you can use the DAQmx Create Channel.vi to specify the physical channels that you would like to include or exclude.
    Regards,
    Andy F.
    Applications Engineer
    National Instruments
    National Instruments

  • How to extract single file from multipart zip archives?

    Hello,
    I have a 10 parts of zip files that contains single file. When I extracted these, each program taking an action seperatly to each parts and gave me 10 files in a different folders. In a Windows, it is so simple. Winzip,winrar automaticaly discovering that are the parts of a single file and give me that.
    My question is simple: How to extract single file from a multipart zip/rar archives ?
    I know a way in "Terminal" but it is not comfortable for big parts.

    I tried with UnArchiver but it extracted each file seperately like showen in a photo

  • Change a DAQmx channel property for a single channel from a channel group

    Hi,
    I'm doing some digital output, and I'd like to tristate certain lines in each port. However, I'm having difficulty figuring out how to specify which individual lines to tristate. I input a port and a line range, e.g. PXI-6533/port0/line0:7, specify to use one channel for each line in the DAQmx Create Virtual Channel VI, retrieve the channels from the DAQmx Task Property, and try to operate on the individual channels that way.  However, this results in the following error:
    Error -200428 occurred at Property Node DAQmx Channel (arg 1) in tristate_test.vi
    Possible reason(s):
    Measurements: Value passed to the Task/Channels In control is invalid.
    The value must refer to a valid task or valid virtual channels.
    Task Name: PXI-6533/port0/line0
    The NI knowledge base article that deals with this error code talks about creating a task with the DAQ assistant, or ensuring that a task has been created. However, I'm not using the DAQ assistant, as my I/O is pretty complicated; I'm just using a bunch of virtual channels. 
    Is there a way to specify individual channels to changethe properties of without having to create additional virtual channels? I have 48 digital channels I plan to use, so the less virtual channels I have to create the better. 
    Please reference the attached VI, which demonstrates the problem I am facing. 
    Thanks for any assistance. 
    Attachments:
    tristate_test.vi ‏11 KB

    You can only software-time tristate for the 6533/6534. Have a look at the attached example.
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies
    Attachments:
    tristate6533.vi ‏58 KB

  • Remove channel from DAQmx AI task - reconfigure existing task

    Is there still no way to remove an AI channel from an existing DAQmx task? I know that it's possible to add a channel to a task using DAQmxCreateAIVoltageChan.
    Removing seems to be possible only by clearing the task and creating a new one, but this ends up in error -50103 (The Specified Resource is Reserved.) at creating and clearing a task continuously (after ~ 100 - 1000 iterations).
    Measuring device is USB-6225.
    Any idea ?

    Unless you want to learn how to do this with the Excel add-on called Measure, you should post to the much more appropriate Multfunction DAQ board.

  • How to remove channel from DAQmx create Task.vi

    Vikas H. Kumthekar
    ASE
    Tata Consultancy Services
    Pune-1

    How are you using the DAQmx Create Task.vi? Are you using it to include a global channel or copy a task that was previously created in Measurement and Automation Explorer (MAX)? If this is the case the only way to remove a channel would be to delete the global channel or modify the physical channels for that task in MAX. If you are creating a new task you can use the DAQmx Create Channel.vi to specify the physical channels that you would like to include or exclude.
    Regards,
    Andy F.
    Applications Engineer
    National Instruments
    National Instruments

  • How can I extract single pages from pdf document

    how can I extract a single page from pdf document

    Purchase and install Acrobat XI. 
    Open a multi-page PDF.
    Use the click path of:
    Tools - Pages - Under "Manipulate Pages": Extract
    Be well...

  • Extracting single shot from project library

    I have just converted a vhs vid. tape onto a dvd using imovie and idvd, all successfully but I wanted to extract a single shot from the project to use for an outside application. I have got as far as extracting the shot and it is now in the project library as an additional frame but I cant figure how to transfer it to another application so that I can use it for other purposes, any help please ?
    Regards,
    Colin

    11woodchip wrote:
    ... lol its an age thing . ...-
    naw, me 50+ either ... the nomenclatura is a bit weird, its own lingo ...-
    for iM11 advice is a lot more complicated, because Apple switched some internal stuff from 09>>11.
    you need a (free) 3rd party tool, Mpeg Streamclip
    • ctrl-click on the clip, which contains the future freeze
    • choose Reveal in Finder
    • open that clip with your new tool Mpeg Streamclip
    • select your frame, you need solo
    • choose 'Export Frame' ...

  • How can I extract single frames from an imovie?

    How can I extract sigle frames from an imovie? Thanks for any input on this. Using iMovie 11

    John Codgell has some tips on how to use MPEG Streamclip to do this on this Discussion Thread:
    Helpful AnswerRe: can you make a still photo from clip

  • Extract single channel information from file group

    Hello All,
    I want to perform a repeat operation on one channel of a large number of multi-channel files.
    As a simplified example lets say I want to calculate the max value in channel 1 for each file in a group. I then want to place these values in the row of a new channel in a new file. Has anyone a similar example file I could modify or suggestions on how to do this? I am working with TDMS files. 
    Thanks
    Mark
    Solved!
    Go to Solution.

    I had a very similar approach, so here's another example in case it helps.  This example loops through all files in a specified directory, and if the file is a TDMS file, it loads the first channel in the file and calculates the maximum value.
    DIM MyFiles, iCount, Channel
    CALL Data.Root.Clear()
    SET Channel = Data.Root.ChannelGroups.Add("Calculated Values").Channels.Add("Maximum",DataTypeFloat64)
    MyFiles = DirListGet("C:\Program Files (x86)\National Instruments\DIAdem 2011\Examples\Data", "*.*", "filename", "FullFilenames")
    IF IsArray(MyFiles) THEN
    FOR iCount = LBound(MyFiles) to UBound(MyFiles)
    IF UCase(NameSplit(MyFiles(iCount),"E")) = "TDMS" THEN
    CALL DataFileLoadSel(MyFiles(iCount),,"[1]/[1]")
    Channel.Values(Channel.Size+1) = CCh("Calculated Values/[2]",2)
    CALL Data.Root.ChannelGroups("Calculated Values").Channels.Remove(2)
    END IF
    NEXT
    END IF
    If you can calculate the channel maximum value (or whatever property you're interested in tracking) during the acquisition and saving of the file, you should store that entity to a TDMS channel property.  This would allow you to run queries on the property across all of your files and then very quickly load the results as a channel into the Data Portal.
    I hope that helps...
    Derrick S.
    Product Manager
    NI DIAdem
    National Instruments

  • DAQmx multichann​el read error. DAQmx believes there are multiple channels in my task.

    Hello,
    I recieve the appended error message when attempting to use DAQmx Read in my VI.  LabVIEW is telling me that I am attempting to read a single channel when my task is configured for multiple channels.  However, as you can see in the task configuration pane, that is not the case!  If I attempt to use DAQmx Read to generate a waveform with multiple channels, the VI executes without error but I do not want a 1D waveform array..  Any tips?
    Regards,
    Steve
    Solved!
    Go to Solution.
    Attachments:
    multi_chan_errr.JPG ‏42 KB
    channel_Vin.JPG ‏108 KB

    This is exactly why I ALLWAYS hide my DAQ Tasks inside a "Resource Module" 
    As I use the term a "Resource Module" is a special case Action Engine tha exposes only that subset of functionality that a specific project needs to take on a given resource external to LabVIEW.  And, it provides a single point of entry to access that resource by keeping private data private.  Had you used the technique here you would have had one vi to look at.  and, there likely would have been no "Reconfigure to add channel" method available to cause trouble.
    Jeff

  • Why can I not use the channel name, which is obtained from the function of DAQmx Task, as the input of the channel name for the function of Get Channel Information of DAQ?

    Why can I not use the channel name, which is obtained from the function of DAQmx Task, as the input of the channel name for the function of Get Channel Information of DAQ?

    Not a lot of details here, but my guess is this isn't working for you because you are wiring in the task to the Active Channels Property and not the actual Channel Name. I have attatched a screenshot of what I believe you are trying to do. The Task has 2 channels in it, so I need to index off one of the channels and wire it into the active channels input of the Channel Property node. Then I can read information about that channel
    Attachments:
    channel_name.JPG ‏69 KB

  • DAQmx channel from string

    I am attempting to abstract from the user the internal routing of counters in my DAQ tasks.  So, on the front panel I have a device name control to which I want to add the specific channels to in my code.  The only way I can think to do this is to cast the device name to a string and concatenate the channel to it (e.g. "Ctr0InternalOutput"), but how can I get from this string to a single channel that can be used as the source for a DAQmx timing vi?  Unflatten channel doesn't seem to work as this just ouputs a string and I need an NI terminal type.
    Cheers
    Solved!
    Go to Solution.

    As far as I know you can treat it as a string. Just concatenate. (Note the forward slash)
    If you really want it to be the right type (rather than let LabVIEW typecast it for you) you could insert a typecast.
    Troy
    CLDEach snowflake in an avalanche pleads not guilty. - Stanislaw J. Lec
    I haven't failed, I've found 10,000 ways that don't work - Thomas Edison
    Beware of the man who won't be bothered with details. - William Feather
    The greatest of faults is to be conscious of none. - Thomas Carlyle
    Attachments:
    device-counter.png ‏13 KB
    device-counter2.png ‏14 KB

  • Error Code -50150 from DAQmx Create Channel (AI-Voltag​e-Basic).v​i

    I have an executable, built from Labview 7.1 VI's. All it is doing is reading 6 voltages back from a 6008 USB-DAQ, and reporting the results back. Occasionally, it is throwing an Error -50150 from DAQmx Create Channel (AI-Voltage-Basic).vi. The full error message is:
    Error Code: -50150
    DAQmx Create Channel (AI-Voltage-Basic).vi<append>
    <B>Task Name: </B>_unnamedTask<0>
    Can anyone shed some light on this problem?
    Cheers.

    Hi fellas,
    I have a really similar problem to the one Neilelph had, but I can´t see how to solve it from your answers. I attached a picture of my main .VI.
    It´s basically a photodiode measurment system working as follows:
    1. First the moving stages for the system get ready (X-Y moving stages for the Photodiode and Z stage for the Laser). That´s the CONFIG subVI in the left.
    2. Then there is a For Loop, that repeats N times depending on the Initial Z, final Z and step values. So in this .VI the laser moving stage is the only one changing.
    3. In each loop, the stages go to the X,Y,Z(t) posiition (MOV subVI), wait for the movement (WAIT subVI) and read the position. After that, the DAQmx acquistion part starts. I just sample the output DC voltage coming from the  Photodiode (Dev1/ao1), 1000 samples in 1 second, and then I make an average of all of them with the Basic DC/rms block. So at the end I have 1 position of Z and one DC value. And it worked perfectly. At least for small number of iterations I have no problems. 
    The problem comes with small steps and a great number of iterations. For example last night I ran a measurement. 10000 iterations, the whole range of Z, and today i checked it. It worked fine until 5000 give or take, the half of the range. From that point, the DC ouput recorded in the .lvm file is just 0.00000. It´s the second time it happens, so I´m wondering what´s wrong because I´m affraid to make more long measurments and obtain the same results. 
    The error message I obtained is the same than in the thread title: -50150  DAQmx Create Channel (AI-Voltage-Basic).vi:6<append> <B>Task Name: </B>_unnamedTask<53BC>
    Maybe it would be useful to mention that, sometimes, there is no error and I have some DC Output Voltage value, for random Z potitions, but since the first error message, that barely happens. The output is almost always 0.
    Sorry for my writting skills in English. I hope you can understand my situation.
    Thank you in advance.
    Kind regards,
    frilance.
    Attachments:
    Diagram.JPG ‏83 KB

  • Editing channels in a task using DAQmx in Labview

    Dear All
    A few days back while I was trying to build an application to dynamically change my tasks in Labview ,I have encountered the following problems
    1)MAX is allowing me to configure multiple channels onto the same physical analog input channels.(Which later i found was a bug in MAX)
    2)At times when I try to read the "Channel names configured from the Tasks that have been created , I get the following error
    Task is either invalid or does not exists"
    3)Also I am trying to edit the channel properties such as range and scale values thru Labview but I am not getting any function to edit channels.There is only one function called "Create virtual channel"
    Can somebody help me?
    Thansk and regards
    Pooja Malhotra

    Pooja,
    1.) The ability to create, what I assume is multiple global channels, all referencing the same physical channel, is not a bug.
    2.) Are you trying to read the name of a task created in MAX or in
    LabVIEW? If you are reading a MAX task, this error could occur if the
    device is not present. If you are reading a LabVIEW task, this error
    could occur if the task has been cleared.
    3.) Prasad is correct. All of these attributes are available with the various DAQmx property nodes.
    Does this answer your question?
    Ryan Verret
    Product Marketing Engineer
    Signal Generators
    National Instruments

Maybe you are looking for

  • Signing a document using an image

    I can no longer sign a document using an image with Adobe Ready XI.  I have tried to "change saved signature" and click on the "use image" option.  It then requires me to save a copy but after I do so the box disappears and I don't have an option to

  • Runtime Errors-COMPUTE_INT_PLUS_OVERFLOW

    Dear All, Error analysis     An exception occurred that is explained in detail below.     The exception, which is assigned to class 'CX_SY_ARITHMETIC_OVERFLOW', was not      caught in     procedure "JAHRESWECHSEL" "(FORM)", nor was it propagated by a

  • Field Exit for Z Program

    Hi Gurus, I have created a Z program with a MARA-EAN11 data element field which is necessary to read MARA table and return its material code (MATNR) in a text field after ENTER key pressed. It was created also a Field Exit called FIELD_EXIT_EAN11 and

  • Problem reset the PIN number for the account

    Apple Store account I can not open it I want to change the PIN number and asked for reset from here iforgot.apple.com I do not hit me a reset email to this email I want to change the PIN number <Email Edited By Host>

  • SHOULD I SEND IT IN

    so i got my ipod way back in september when they first started coming out...i just tried to put videos on it from itunes but the screen doesn't do anything and i tried all their hint things to fix it but none of them worked...should i send it in and