Daq create channel

Hi all,
Here is my story - I have a daq application. I basically use the cont acq&graph voltage.VI (in the examples coming with LV) to do the acquisition, but instead of one channel, I have like 20. What's wrong with this?:Nothing, the application goes well. But after this, I run the same application on another computer, with the settings all right, and I get problems seemingly just because I have too many channels. On this second computer, when I leave only one channel, the daq stars aquiring. From this I get 2 questions:
1. Why the same application runs well on one computer and works bad on another?
2. Why does the application, copied on the second computer, runs well for one channel and pops up an error when I switch to more channels?
If you can have some answer for this, I appreciate it a lot.
Thank you,
Dana
Attachments:
create_channel.JPG ‏34 KB

It is the DAQmx Create Channel. See the little box with a down arrow below the DAQmx functions? Click it to select the type of channel you want.
This is LabVIEW/DAQmx basics. See http://www.ni.com/academic/lv_training/how_learn_lv.htm and http://zone.ni.com/devzone/cda/tut/p/id/5434. You should also have the context help window open at all times and be using it.
Message Edited by Dennis Knutson on 06-13-2008 08:41 AM
Attachments:
Polymporphic Type.PNG ‏8 KB

Similar Messages

  • 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

  • Error code -88708 with DAQmx Create Channel (AI-Voltage-Basic)

    Hi,
    I am trying to construct a VI that moves a piezoelectric stage, the VI then needs to scan voltages from the DAQ card to build up arrays of the voltage and coordinates before constructing a 3D graph.
    The VI successfully moves the stage and reads the position back to me but when it tries to scan voltages from the DAQ it fails (I'm using the DAQmx Create Channel (AI-Voltage-Basic).vi example, as this has been used in a previous, similar (and successful) VI within my department.)
    I get the following error code:
    Error -88708 occurred at DAQmx Create Channel (AI-Voltage-Basic).vi
    Possible reason(s):
    The specified resource is not available. The operation could not be completed as specified.
    Task Name: _unnamedTask<1>
    Any help on this would be appreciated - I'm fairly new to LabView and am at a loss with how to fix this!
    Thanks
    -Tom

    Is this working when you restart the computer? It might be that the recources are still recerved because the Clear Task.vi wasn't executed (either it`s not present or you did use the abort button).
    Felix
    www.aescusoft.de
    My latest community nugget on producer/consumer design
    My current blog: A journey through uml

  • Error -200220 occurred at DAQmx Create Channel (CO-Pulse Generation-Time).vi:1

    Hello,
    Just a couple of days ago I was given a task to complete. To transfer a Labview program from a desktop computer to laptop.
    The program itself uses a marlin camera to count the number of seeds.
    The transfer was fine I installed Labview 8.2, installed the DAQmx drivers and labview vision.
    I then transffered the program files over and ran the program on the laptop in labview and found an ERROR: Error -200220 occurred at DAQmx Create Channel (CO-Pulse Generation-Time).vi:1
    I remember that the desktop had a kind of board attached to it: some NI board dont know the model etc.
    can this be a problem? I have ensured that the problem is not the camera by checking it in MAX and it works fine.
    When i do step by step debugging the problem comes to a VI that uses a palette called DAQmx trigger - data acquisition palette.
    please see the attached picture!!
    Is this VI the problem then and is this palette the main problem that is not enabling this program to work??
    thankyou
    p.s. Will it be necessary to use the NI board then? if so i dont think it will work on the laptop then as you will need to install the daq card
    which can only be done on a desktop i think!! 

    Hello Rob W,
    Yes I only use a Firewire to connect the camera.
    And also i am sure that the device shows up in MAX under NI-DAQmx devices and not under Traditional DAQ. and it works under max.
    I am sure the problem is as shown in the image. because i have not connected to the NI board on the laptop and the program is designed to work with the board.
    but i have also tried removing the parts in the program that use the board but because of the complexity of the program i.e. wires i had some other problems i think
    must be the wiring etc
    thankyou

  • Custom scale with Create Channel CI Position Angular Encoder

    Hi!
    In my application I use angular encoders for position measurement. I programatically create channel (task) using DAQmx Create Virtual Channel, CI Angular Encoder instance. Prior to that I use DAQmx Create Scale to create custom scale for the measurement, to convert from degrees directly to meters. The problem is that when I use the task (Start Task for instance) I get the following error message:
    Error -200378 occurred at DAQmx Start Task.vi:4
    Possible reason(s):
    Measurements: Custom scale specified does not exist.
    Custom Scale: RowCounter
    Task Name: _unnamedTask<66>
    Maybe somebody can help me out with this one.
    I use the same principle to create custom scales for AI measurements, and everything works without any problems. I know the scale is created properly, as I tried saving the custom scale to max after I create it. I then used the scale without a problem when I wired it as a constant to the custom scale input of the DAQmx Create Virtual Channel vi. It only gives me problems when I create it dynamically, using Create Scale vi.
    Some technical info: I use USB-6210 Daq card for signal acquisition.
    I will appreaciate any help!
    Jernej

    Hey!
    The error message I get is as follows:
    Error -200378 occurred at DAQmx Start Task.vi:4
    Possible reason(s):
    Measurements: Custom scale specified does not exist.
    Custom Scale: RowCounter
    Task Name: _unnamedTask<66>
    I use USB-6210 Daq card for signal acquisition. The error occurs right after the DAQmx Start Task.vi on the counter task.
    As I said, the code runs sometimes without problems and then sometimes it returns an error. I noticed that if I run the CustomScaleProblem.vi on its own it runs ok. When I open the project with mine application, from where I extracted CustomScaleProblem.vi part, and then try to run the CustomScaleProblem.vi, it stops working. It looks like when I open the project it allocates some space which is in conflict with the scale part of the code. Then if I close the Labview environment and open CustomScaleProblem.vi and run it, it runs again without any problem. Well, for now I did a work around the problem by saving the scale in the program and then using it. This approach works fine.
    About the arm start trigger. I use it because I dont want the counter to start counting before the AI task starts. I noticed that if I use the AI as a start trigger, and I move the encoder before AI starts, the counter will not start with 0, but will start with a number indicating the encoder movement before the AI start. Is that the right approach if I want the encoder to start
    counting from 0 when AI starts?
    Thanks and kind regards
    Jernej

  • Speed up time of AI Create Channel.vi task containing thousands of channels

    I am creating an AI task containing a total of 8000 channels of different channels with each channel being acquired many times before the next channel is acquired.  The channel list is something like 0,0,0,...,1,1,1,...,2,2,2...3,3,3... where each channel number would be acquired 2000 times.  The purpose is to perform averaging.  I am seeing that DAQmx Create Channel.vi takes about 100 msec to create 1000 channels for a total of 800 msec to create all channels (DAQmx 9.4, LV 11, WIN 7, CoreDuo P8700 2.5 GHz).  I would like to speed this up by a factor of 10 if possible.  Test vi attached.
    Attachments:
    Create Multiple Channels duration.vi ‏17 KB

    Hi SteveP,
    The DAQmx task contains data structures representing channels, which in turn contain other data structures representing channel properties and such. Most of the execution time of DAQmx Create Channel is spent allocating and initializing these data structures. They are separate from the task's input buffer (where data is stored until DAQmx Read is called). The input buffer is allocated when you reserve the task (which is normally done by DAQmx Start Task), and it is indeed allocated as a single large array.
    DAQmx support for repeated channels focused on the SCXI use case, where hundreds of milliseconds of channel creation time seemed to be an acceptable tradeoff for measuring thousands of thermocouples. During development of NI-DAQmx 7.0, we used 3072 channels as our large system benchmark for channel creation, since that's the maximum number of channels supported by an SCXI task: 8 chassis x 12 modules x 32 channels (ignoring CJC channels). Repeated channels also make your use case possible, but this wasn't the original goal, otherwise we would have tried to make it easier to use for this purpose.
    When replying to your previous thread on this topic (DAQmx AI Task with many samples CH0, then many CH2, then many CH3), I assumed that you were doing this because you were having problems when you took the straightforward approach to averaging, but Ben is right to point out that there are ways to deal with ghosting, cross talk, etc. What is the source impedance of the signals that you are measuring? How Do I Eliminate Ghosting From My Measurements? lists some options for dealing with high source impedance.
    Failing that, is it possible for you to reduce the frequency at which your program creates and destroys tasks? If you can extend the task lifetime by reusing the same task more than once, you can avoid the channel creation overhead, or at least amortize it over the lifetime of the task. Note that you don't have to clear one task before you create a second one; you only have to make sure that two tasks don't have the same hardware reserved at the same time--if you do, you will get a reservation error. In most cases, stopping the first task before starting the second is sufficient to avoid this. It is possible to create multiple tasks up front, then switch between them throughout the rest of your program.
    Brad
    Brad Keryan
    NI R&D

  • Using two daqmx create channel to acquire signals in random

    Hi
    I am trying to acquire signals from PXI 4472 with two DAQmx create channels. The channel selection is random. For eg. first create channel i have ch. 0, 2, 4, and 6 and the other create channel is Ch. 1,3,5 and 7. This I can do, but the problem is that I need to write the acquired data in seperate files for each channels and that too in sequential order. How can I do that. I know i need to use the loop but how will I will select the channels from two different task.
    Thanx in advance
    Nitin

    Ok, here was my idea, I am not sure if it will work for you or not after looking at your VI. 
    You can use some of your subVIS that you made to make the path different for each file.  But what I had in mind for the channels was what I did in the vi i attached.  You can just repeat the process for each of the channels and you would know that they were saved correctly.  You could also feed in the iteration number of the main VI while loop to have the binary files change sequentially (ie, data1, data2, etc).
    Again, this may not be a route you want to take, you may have other ideas. 
    Ill try to work on it some more later, but I have to get back to work for now
    Kenny
    Kenny
    Attachments:
    pxi subvi idea.vi ‏31 KB

  • Error-200220 occurred at daqmx create channel %28AO-Voltage-Basic%29.vi%3A3

    Hello  
    i need u r help  this  error apeears to me when i run my code on labview 
    and i dont know how i can solve it due  am still wake and dont have background on labviw 
    and coding 
    (error-200220 occurred at daqmx create channel (AO-Voltage-Basic).vi:3)

    ok the first problem is solved...
    but now in the another program
    its appearing:
    Error 1 occurred at Read File+ (string): Read File
    Possible reason(s):
    LabVIEW:  An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
    =========================
    NI-488:  Command requires GPIB Controller to be Controller in Charge.

  • Error -200431, DAQmx Create Channel (AI-Voltag​e-Custom with Excitation​).vi

    Where is "DAQmx Create Channel (AI-Voltage-Custom with Excitation).vi" gone?
    I tried to use this VI for force measurement with a NI PXI-4472. It responds with Error -200431, ... You Have Requested: More:Voltage:Custom with Excitation, You Can Select: Voltage, Sound Pressure:Microphone, ...
    It seems for me to be an internal error of this VI, LabView Version is 8.6.1
    Solved!
    Go to Solution.

    Hi T.Knox,
    error -200431 is a measurement type error:
    "Error -200431 occurred at an unidentified location. Possible reason(s):
    Measurements: Selected physical channel does not support the measurement type required by the virtual channel you are
    creating. Create a channel of a measurement type that is supported by the physical channel, or select a physical channel
    that supports the measurement type."
    The PXI-4472 (8 Inputs, 24-Bit Dynamic Signal Acquisition module for sound and vibration measurement) is the wrong device
    for force measurement.
    I also searched our website and found some helpful links:
    http://zone.ni.com/devzone/cda/tut/p/id/3602#toc2
    The PXI-4472 (http://sine.ni.com/nips/cds/view/p/lang/en/nid/503​1) isn't listed as supported device for force measurement
    there!
    I hope this information helps you!
    Regards
    Suse
    Certified LabVIEW Developer (CLD)

  • DAQmx- create channel- no channels found

    Hello,
    i am new to labview. So maybe my question is easy...
    I want to generate a signal. That's why i am using the DAQmx-create channel.vi . I i created a control to chose the channel, where the signal is generated. But no channels are found.
    i am using PXI 5412 and my device is visible in MAX. So i don't know what is the problem. Can anyone help me?
    Thanks,
    Ratta
    Solved!
    Go to Solution.

    The 5412 is an Arbitrary Waveform Generator. It does not use DAQmx. It uses NI-FGEN.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Error -50303 occurred at ELVISmx_DAQmx Create Channel %2528AI-Resistance%2529.vi%253A1

    Hello, 
    I was using the myDaq in my electronics class earlier today and suspect I may have damaged the myDaq. I had an external power supply connected to my circuit on a Protoboard - the circuit was not directly connected to +/- buses on the protoboard, but the board itself was hooked into the myDaq. 
    I did note this warning statement in the myDaq manual:
    Power Supplies
    Caution! Do not mix power from NI myDAQ with power from external power sources.
    When using external power, remove any connections to the power supply terminals on
    NI myDAQ.
    Since then, I am getting the following error message when I try to take readings from my DMM (NI Elvismx):
    Error -50303 occurred at ELVISmx_DAQmx Create Channel %2528AI-Resistance%2529.vi%253A1
    Does this message mean I damaged the myDaq? Could I have generated too much current with the circuit/applied voltage and caused it to back up into the myDaq? If so, would this damage the myDaq or are there internal safeguards to protect the device (i.e. recognizing when internal resistance drops) and would trigger an error code (i.e. could you reset AI Resistance)?
    I am brand new to the field of electronics, so please forgive me for any obvious mis-statements above!
    Also, I went to then download the myDaq Troubleshooting Utility - I was able to unzip the file, but it would not complete installation (i.e. the "next" button was greyed out on the summary screen, only options to choose from were "save" and "cancel"). 
    Thanks in advance for any guidance/direction you can provide me with!
    Sincerely,
    Melissa
    Solved!
    Go to Solution.

    Hi Nick, 
    Thank you! So far, I went into the NI MAX and took the following steps:
    1) Clicked on the "Devices and Interfaces" tab
    2) I noted it recognized the myDaq as "present" (see attached screenshot)
    3) I wanted to next configure my device - however, I cannot find a "properties" tab after I click on the device
    I have not used MAX before, so I'm not sure what steps I could take to interact with my device?
    Also, please see the attached screenshot for the myDaq Troubleshooting Utility, which shows as follows:
    Start Installation - Review the following summary before continuing.
    Installation Summary - no software will be installed or removed.
    Thanks for your help!
    - Melissa 
    Attachments:
    NI MAX -.docx ‏97 KB
    Screenshot - myDaq Troubleshooting Utility.docx ‏103 KB

  • Creating two channels with two "daqmx create channel.vi"

    Hey guys,
    I'm perform some piezo measurements and my program has one channel for the input (signal that excites the piezo) and one channel por the output (piezo's response).
    Since the amplitude of the piezo's reponse varies a lot, my program adjusts the range of the acquisition changing the "minimum value" and "maximum value" properties in the " daqmx create channel.vi". Such an adjustment makes no sense in the input channel once the excitation has constant amplitude.
    That is why I need to use two "create channel.vi". I could create the two channels with a single VI but if I did so, I would not be able to adjust the "maximum/minumum value" of only one of them.
    The problem is: Labview always returns the error 50103: The specified resource is reserved.
    Below, we have a screenshot of this part.
    I tried also to add one "daqmx timing.vi" and one "start task.vi" for each of the "create channel.vi" and synchronize everything via error cluster but it returned the same problem.
    The program itself is also attached but I don't think it will be useful.
    Please, help me guys!
    Regards,
    Lucas
    Attachments:
    two create channels.JPG ‏108 KB
    consertando burrada.vi ‏330 KB

    Try it like this:
    EDIT:  OOP, I got the Mins and Maxs reversed.
    Using LabVIEW: 7.1.1, 8.5.1 & 2013

  • Missing subVI DAQmx Create AI Channel TEDS(sub_.vi DAQmx Create Channel( TEDS-AI-Voltage-Basic). vi.

    Hi,
        I have seen several discussion regarding this topic, however it seems that none of the solutions are working for me. Here is my situation, i am using LabView 7.1 which I use to generate my .EXE, when I generate my .EXE I use the Tab Intaller Settings to generate the Setup.msi. I then take the folder which contains the .EXE and the installer and bring it over to another machine which is running VM Ware with a freshly installed windows XP. (to make sure nothing is on the machine and then i get surprise at the custormer's site)
       Once this was done, i would start by lauching the installer and then the .EXE the result was the following, I would get the following message:
    Missing subVI DAQmx Create Task.vi in VI instance      1    3tst
    .vi.
    Missing subvI DAQmx Create channel (TEDS-AI-Voltage-Basic).vi
    in VI Instance 1   3tst.vi.
    Missing subVI DAQmx Create Channel( AI-Voltage-Basic).vi in VI
    instance    1   3tst.vi
    Missing subVI DAQmx Timing(Sample Clock).vi in VI instance
    1   3 tst.vi
    Missing subVI DAQmx Read(Analog 1D Wfm NChan nSamp).vi in
    Vi instance   1   3tst
    then as suggested in other discussions of this forum I download (537MB) and installed
    on the target machine (VM Ware) the nidaq710 which i downloaded from
    http://digital.ni.com/softlib.nsf/websearch/C1F802E457EA042586256DD00001B0C9?opendocument&node=132070_US
    This did solve some problems BUT I am still getting the following message when I launch the EXE
    Missing subVI DAQmx Create AI Channel TEDS(sub).vi in VI DAQmx Create
    Channel(TEDS-AI-Voltage-Basic).vi.
    Thank you
    Maldini

    Hi Maldini,
    Thank you for posting to the NI forums.  Is the VM Ware PC using the same operating system as the development PC?  Also, are you using DAQmx 7.1 on the development computer, or are you using a more recent version?  When distributing applications, the driver version on the deployment PCs must match the driver version of the development PC. 
    If this is already the case, then you shouldn’t be receiving any of these error messages.  There are few things that may fix this problem.
    Reinstall the DAQmx driver.
    Perform a repair install the DAQmx driver on the deployment computer.
    Upgrade the DAQmx driver on both the development and the deployment PCs.
    With Windows XP and LabVIEW 7.1, you are able to use the latest version of DAQmx, which is currently DAQmx 8.5.
    After going through these steps, please post back if you continue to have problems.
    Ed W.
    Applications Engineer
    National Instruments

  • How to create channel mixer by script

    How I can create channel mixer by JavaScript?

    If you create a channel Mixer script you will most likely be using Action Manager Coder you modify from Adobe Scriptlitener Plug-in.  There  is a Photoshop scripting forum and scripting documentation you can download. Adobe DOM does not cover all Photoshop function.  Adobe Photoshop Scripting | Adobe Developer Connection  and Photoshop Scripting

  • How DAQmx Create Channel for Accelerometer will convert the voltaage signal into g

    HI all,
    I want to know about DAQmx Create Channel for Accelerometer hoe it will do the convertion any one reply me
    Regards,
    Santhosh M

    Most of the accelerometers that i have used till now are ICP devices.
    They need about 5mA current to power them selves up. Other wise they give inaccurate output.
    I guess you are measuring a raw time domain vibration signal.So you just need to 
    I have attached my own  code of how i acquires a vibration signal usin PXI-4462 and 4461 modules. Keep it secret till i do my thesis .
    You have to specify channel name ,device name, and remember to create the channel using the AI-accelerometer -accelerometer VI ,if you use any other form of this polymorphic vi then ICP source options will not be there and your sensors will not have the current to work properly.
    Attachments:
    New Microsoft Office Word Document.pdf ‏126 KB

Maybe you are looking for