generation of functions to create channels of AO

I'm trying out a sinusoidal signal through a USB-6211 using this task Create Channel. I can't find a single example of using this function once the task has been created. All the 17 examples provided by OR use the adjustment of the tension of the AO create and must use an external function generator. Examples exist on how to use this thing? List of specifications of USB - 6211 BTW ' AO waveform modes:

"Non-periodic waveform.

"Periodic regeneration mode waveform of FIFO aboard"

'Regeneration of periodic signals of buffer host, including the dynamic update'

I don't know what the previous alternatives that seem to indicate that it is capable of producing waveforms, unlike other queries that came during my search for previous question.

Hi walter donovan,.

Only two devices support .vi DAQmx Create Channel (AO-FuncGen): NI ELVIS II and NI ELVIS II +, which have a function dedicated to the hardware level generator. You cannot use the channel type of the generation of AO functions with any other device. Sorry for the confusion.

Brad

Tags: NI Software

Similar Questions

  • Generation of series in multiple channels

    Hi forum, I need to ask a few questions. Any help is appreciated.

    (1) I need help with the generation dynamic series in several channels. Here, we can see how the dynamic data set generated by a single channel. But I can't find anywhere, how to generate several series signals in multiple channels.

    (2) what is the limit for this generation series? I think it depends on the material, but I don't know, what is the limit. My hardware is SMU-6544.

    (3) it is possible to generate different signals in different channels using scripts? and to start the production in these channels at the same time? the example given in the script generation labview is unfortunately only for the generation of a channel.

    Thanks in advance,

    Kind regards

    Yan.

    Hi Yan,

    Produce on several channels with multiple data is difficult without a tool to view the data, or series of each channel bitstream concatenated into a software ADE and transposed before be downloaded into memory.  To make Visual things here, I'll assume that you want to generate a pattern of 3 bits on sample of channels 0, 1 and 2 is 8 wide.  Assume the following models of the series bit for each channel:

    ch 0: 0101 1010

    CH 1: 0000 1111

    CH 2:0100 1101

    So the question now is, how do you load this in the SMU-6544(or any other HSDIO hardware)?  Of the two options, you can use Digital Waveform Editor (NEWS) to create visually and save to a file type HWS then load a DJ using the API HSDIO.  It is the easiest in my opinion.

    The second way is construction examples of data based on a basic example.  I want to say is you take it all binary streams and built a 2D table so that it looks like:

    01011010

    00001111

    01001101

    An array of 3 x 8 and then transpose the table that turns into:

    000

    101

    000

    100

    111

    011

    110

    011

    Here you can see we have 8 lines, each line is a sample, and in the form of U32 read in decimal, you get 0, 5, 0, 4, 7, 3, 6, 3.  That's what you can load into our niHSDIO U32 function write a waveform.  I hope you can see how this translation occurs and how it looks like in terms of load on the jury.  Each sample usually contains data for all channels, where each bit in the U32 is one of the 32 channels available on your device.  So if you want to write a '1' on Channel 5, you would load a value of 0000 0000 0000 0000 0000 0000 0010 0000 in the form of sample, where the 5th bit is 1 and all the other bits 0.  In decimal, you would write '32' value.

    With regard to the limitation of the size of series, if your flow rate is slow enough you can disseminate and make an almost endless stream, but assuming that you are running at the maximum rate, your series of waveform size is limited by the size of your on-board memory.  Since each sample generation is 32-bit, which is 4 bytes for example, if a memory size of 32 MB will correspond to 8MS bitstream series max.

    For any questions or comments are welcome.  Thank you.

  • Get a ref to a newly-created channel script

    I'm a noob to scripting tiara and it's been well over a decade since I did any significant vb coding, so please forgive me for what is inept.

    I use the function ChnFiltCalc to operate my data by a low filter pass, and this function automatically creates a new channel containing the signal filtered at the end of the group.  In the data portal that I would move the new channel so that immediately follow the unfilitered channel, it is, however, ChnFiltCalc is not a reference to the new string.  In addition, the new channel may or may not use the name I assigned to it (Tiara will add a number if it's a duplicate name) and based on what I read in the help files, it may be the element with the largest index.

    Is there a standard way of robust way get a reference to the new channels created by the functions?

    Hi Rose Dalban,.

    My personal preference must first obtain a channel object variable when you create the target channel in the Group and the location of the channel (TargetChannelIndex) that you want to be (where the name of the desired channel will be unique), then go this channel object variable to the order of ANALYSIS in his channel of target setting.

    ' Set Group = Data.Root.ActiveChannelGroup
    ' Set Group = Data.Root.ChannelGroups (1)
    Set Group = Data.Root.ChannelGroups ("DesiredGroupName")
    Set RChannel = Group.Channels.Add ("result Channel", DataTypeFloat64, TargetChannelIndex)
    Call ChnFiltCalc (XChannel, YChannel, RChannel,...)

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

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

    Hello

    I used the myDaq in my electronic class earlier today and the suspect, I have damaged the myDaq. I had an external power supply connected to my circuit on a Protoboard - the circuit was not directly related to +/-bus on the protoboard, but the Council itself was hung in the myDaq.

    I noticed this caveat statement myDaq Manual:

    Power supplies
    Caveat! Do not mix the power nor myDAQ with power of external power sources.
    When you use an external power supply, remove all connections to the power supply terminals on
    NEITHER myDAQ.

    Since then, I get the following error message when I try to take my multimeter (NI Elvismx) readings:

    Error-50303 occurred at ELVISmx_DAQmx create channel %2528AI-Resistance%2529.vi%253A1

     

    This message means that I damaged the myDaq? Could I have generated too much current with voltage circuit / applied and brought to save in the myDaq? If so, it would damage the myDaq or are there internal safeguards in order to protect the device (i.e. recognizing when internal resistance reduction) and trigger an error code (i.e. could reset you HAVE resistance)?

    I am new in the field of electronics, so please forgive me for any obvious incorrect statement above!

    Also, I went then to download the troubleshooter of myDaq - I managed to unpack the file, but it would not be completed installation (i.e. the 'next' button is grayed out on the summary screen, the only options to the choices were 'save' and 'Cancel').

    Thanks in advance for any guidance/direction you can give me!

    Sincerely,

    Melissa

    Found a miracle solution!

    Under the tools NI MAX button, there is an option to select "reset Configuration data".

    After selecting this, he reset the Configurations OR and restarted my computer. I noticed that when I reopened NI MAX, I had more options to choose when I click on the myDaq device (i.e. before I could only choose 'Save' and 'Refresh'... now I have more options including a reset, self-test function, test panels, etc.).

    I was able to use my features NI Elvis DMM and no longer see the error message (just did a simple test with a resistance).

    See you soon!

    -Melissa

  • What is a request only to create channels once?

    Dear all,

    An application can receive push message, only need to create channel once and use the token to grow in the future?

    Or is it necessary to create the channel whenever the application is started?

    Thank you

    Dong

    For the example you gave, there is a signal to handle this: simChanged() (https://developer.blackberry.com/native/reference/cascades/bb__network__pushservice.html#function-si...

    Apparently, there are other cases where it can happen as well, and it looks like this area is badly managed and documented. I said a case is where the user has used a backup to restore their device (or a new device), in which case the channel will be lost and must be re-created.

    If your application is run frequently, I wouldn't advise create a channel every time, but as far as I know, is what most people do. (I'm relatively new to push stuff so don't take my words as expertise).

    If you have a way to detect that the channel can must be created using your application logic, such as if an application should normally receive many grows every day but one day happens without any entry in, then maybe it's the best approach.

    Manage backup/restore... not sure. If you could follow (recorded in your data folder) the latest version of the OS and type device that the application was running and that the changes, which would cover sometimes, but obviously not everything.

    Note that 10.2 seems to have some additional possibilities in the API that can be useful in this area, although I have not yet tested. (Including the reconnect() and the other connectionClosed() things... but it doesn't seem to be specifically on the channels, so it is unrelated.)

    Last but that occurs to me: at least save a timestamp indicating when the latest creation of the channel and don't bother doing it again if the application is running in a short period of time after that, as a few hours. I think that's what I'll do in my application until we can get more details on those situations where the channel can be lost.

  • Generation of functions NI PXI-6704

    Hi forum people,.

    I have a question about the generation of functions, to be precise, without the adequate hardware PWM. I'm under NI SMU-8135 embedded controller in a chassis NI SMU-1078. It is equipped of PXI3 OR-8532 (DeviceNET), NI PXI-6515 industrial digital I / 0, NI PXI-6225 (M: multifunction DAQ series) and NI PXI-6704 (analog output). My question is: can I generate PWM of any of these materials?

    Thank you!

    Start with help > find examples or search the site of pwm.

    Fix your code if you want to help with it.

  • Error-200431 occurred at .vi DAQmx Create Channel (I-acceleration-accelerometer)

    Hello

    I tried to use DAQmx Create Channel to accelerometer and yet it responds with error (see below). When I use max OR to measure the accelerometer (I-acceleration-accelerometer), there is no error, and I see that acceloremeter works.

    OR PXI-1042 and I use OR-4462 card to measure vibration vith acceloremeter.

    Error-200431 occurred at DAQmx Virtual Channel Create

    Possible reasons:

    Physical channel selected does not support the type of measure required by the virtual channel you create.

    Create a channel to a type of measure that is supported by the physical channel, or select a physical channel that supports the type of measure.

    Property: I. MeasType
    Requested value:
    You can select: sound pressure, voltage: Microphone, accelerometer, Position: Eddy Current proximity probe, Force sensor: IEPE, speed sensor: IEPE

    Task name: _unnamedTask<104>

    Hi serdaryilmaz,

    I'm not sure why the accelerometer mode does not work, but it works very well in normal mode - it maybe has to do with the accelerometer, you?  Whatever it is, if it works with the voltage mode, I am happy that we found a way to make it work.  Is this an acceptable work around you?

  • DAQmx - create channels to channel-not found

    Hello

    I'm new to labview. So maybe my question is simple...

    I want to generate a signal. That's why I use the DAQmx-create channel.vi. I have, I've created a control to selected the channel, where the signal is generated. But no channels are found.

    I use 5412 PXI and my camera is visible in MAX. So I don't know what the problem is. Can someone help me?

    Thank you

    Ratta

    The 5412 is an arbitrary signal generator. It does not use DAQmx. It uses NEITHER-FGEN.

  • Problema con el DAQmxBase Create Channel

    Hola, soy nuevo LabView en y como are existential veran tengo problemas con el. Ayudenme a smear of ellos para seguir creciendo.

    Estoy intentando realize no generador señales in LabView, utilizando una placa DAQ: NI USB-6009.

    Aquí el programa than I am doing editor para lo miren what y can see el error.

    PROBLEMA:

    El programa genera las señales (senoidal, convex Tower, triangular, are of sierra y dc) y me muestra las in pantalla, pero no las envia has the DAQ y por lo tanto no las puedo ver en el osciloscopio conectado has the same.

    Revisando el block, hago doble click in el DAQmxBase Create Channel mientras esta in run y me muestra a salida error, that is the error 200559 y en source States: "task cannot contain a string with the specified channel type, because the task already contains channels with a different channel type. Create a task for each type of channel.

    Antes of purchased otro error (as no recuerdo el ID) said only: "I/O of the physical channel type does not match the type of I/O required for the virtual channel you create."

    Bueno estoy muy grateful ago desde y espero sus responses. Gracias!

    Mariano Garcia

    CMG Electronica

    No ha designed application correctamente. Try to use a single VI simulate Signal Express and place the DAQmx Base create Virtual Channel.vi and the DAQmx Base Start Task outside the while loop. That should el problema as esta receiving delivery.

  • DAQmx (Version 9.1) Create Channel for accelerometer will NOT convert m/s ^ 2

    I use DAQmx create channels for accelerometer to get results in the unit (m/s ^ 2)

    It worked until DAQmx Version 8.9.

    Now, I tested it with DAQmxVersion 9.1 and the results are in g (not converted to m/s ^ 2!)

    I use wth .vi DAQmx Create Channel (I-acceleration-accelerometer) entries

    units = m/s ^ 2

    sensitivity units = V/g (there is no sensitivity unit V /(m/s^2) available)

    sensitivity sensitivity value in V/g =

    I have read the data with

    . VI DAQmx reading (analog 2D DBL NChan NSamp)

    In DAQmx<= 8.9="" the="" double="" numbers="" are ="" correct="" converted="" to="">

    but in DAQmx 9.1 not (values are in g and low by 9.81)

    My solution is the following change

    units = g

    sensitivity units = V/g

    sensitivity = sensitivity value in V /(m/s^2)

    Then the double numbers are not converted, but m/s ^ 2.

    And this work in all versions of DAQmx.

    The problem is:

    An older program that uses the settings of the first and tested with DAQmx<=8.9 will="" get="" wrong="" measurement="" result="" with="" daqmx="" 9.1="" and="" no="" error="">

    Peter

    Hi Peter,.

    I'm not in my office at the moment and I can't try it by myself, I have forwarded your request to one of my colleagues, I hope he will contact you soon.

    Sorry for the delay,

    Tobias

    The language of MAX settings depend on the regional settings of your Windows operating system. See the following page:

    http://digital.NI.com/public.nsf/allkb/9893C1767C93D20E86256F49001CDA92

    Kind regards

    Tobias

  • Possible bug: DAQmx create channel w/o specified in task

    The VI DAQmx 'DAQmx create channel (I-voltage-Basic) .vi' requires no task should be connected, and claims his detailed help "" task in specifies the task to add virtual channels, this VI creates. "." If you do not specify a task, NOR-DAQmx creates a task for you and adds the virtual channels that this VI creates to this task. »

    My recent experience, I think that there is a problem with this feature. If no job is specified, sometimes this VI will create a new task without problems, but other times it will overwrite an existing task, causing errors later when you try to reference the crushed tasks.

    In my code, I have 7 tasks, two digital (DIO), an analog to (HAVE) and four analog out (AO). One of the AO and the tasks of the AI does not use a task VI before the channel VI create. I recently added this AO task without creating a new task manually, based on the reproduction of legacy code for the channel of AI that also not create a new task. With two spots missing the task of creating VI, I found it fairly common (20% of the tracks) a further task would be crushed, causing errors when the task has been used, either be the wrong type IO, a wrong number of channels, etc. I think I saw this error until I added the second task without creating a task, but it's so rare that he didn't pay much mind, and I would just restart my VI. Now that was occurring more often, I've been tracking it. Simply by adding 'DAQmx create Task.vi' before calling Create Channel and the new task of wiring in the task, the problem seems fixed.

    It is easy to add to create a task to avoid this problem, but it seems to me that the detailed help for Create Channel indicates that it is an unnecessary step. Thank you.

    Hi MDI - AJT.

    This looks like a problem with the code you posted, by suggestion of Norbert. When you create the task handles, you should do this only at the beginning of your code outside the loop, otherwise you will create errors that you overwrite memory locations at each iteration. If you move your virtual channel calls create outside of your loops, and does not call the handle of the task to be authorized beforehand (and implicitly create the task rather than explicitly), then this behavior must stop.

    I recommend to try this with a single line, and not 7 DAQmx calls and follow the DAQmx architecture as seen in the examples under 'Help' "'find examples' and see if this behavior persists. Later architecture, I was not able to re-create this behavior.

    BeenCoughin

  • What channel DAQmx property corresponds to "name" entry "DAQmx create Channel.vi?

    Hello people,

    I am changing a program, I have inherited so that it uses DAQmx virtual tasks rather than have the task and the channels created by programming of in the code.

    In the existing code, the entry 'name' on the 'DAQmx create Channel.vi' is wired with a value.  When you use a virtual task DAQmx, I do not use the 'DAQmx create Channel.vi', but I still want to set the values of the "name" in the code with the help of a property DAQmx node.  However, I can't find a property called "name".  Such a property exists with a different name?

    Best regards

    Chris


  • Error-200431, DAQmx create Channel .vi (I-voltage-Custom with excitement)

    Where is past ".vi DAQmx Create Channel (I-voltage-Custom with excitement)?

    I tried to use this VI of force measurement with an NI PXI-4472. He responds with the 200431 error... You asked: more: voltage: Custom with excitement, you can select: sound pressure, voltage: microphone,...

    It seems to me to be an internal error of the VI's Version of LabView 8.6.1

    Hi Suse,

    Thanks for your reply.

    It's the right device but the bad VI.

    PXI-4472 is an excellent camera for the dynamic force measurement using Quartz sensors. I was intending to use the .vi (I-voltage-custom with excitement) to configure entry and IEPE excitement, but I got the error code. I have now managed by using the pure (I-voltage) .vi entry configuration and IEPE using the DAQmx channel property node.

    However, I tried the .vi (I-voltage-Custom with excitement) with appropriate PXI-4220 simulated device, no error.

    Concerning

    T.Knox

  • How two generations different wafeforms on ao channels USB-6353

    I'm use DAQmx driver from a C++ code to control a device USB-6353. It is possible the same task to generate a sinwave on Dev1/ao0 and a Triangle on ao1/Dev1 waveform?

    Thanks in advance

    Yes you can, simply create a task generation to the MAX with two channels, set this task as in DAQmx Timing input and then create an array with 2 elements, one for each waveform.

    I send you an example where you just change the enter task and the table. You need an array containing two elements, one for each waveform.

    Of course, you will have the same frequency of sampling for two generations!

    I hope that helps!

  • A different function is created instead of the expected (table Index instead of initialize array) Labview - a 8.5

    Hey all,.

    I have a really strange behavior here. I'm using LabView 8.5. I open a white VI and try to use the function "initialize the array.

    No matter where and how I find (using search functions, or by accessing the 7.x-> table-> table initialize function), when I drag and drop it off at my VI, what I get is "Array Index" instead!

    Even when I hover over the icon table inside the palette is initialized, with aid switched on (Ctrl + H), what I see is the help page for table of Index. It's as if somehow the index table replaced function Initialize array entirely, with the exception of the simple icon in the palette...

    I tried to restart Labview and my computer nothing works.

    Someone at - he never experience a similar problem? that means, one different function other than for being created. I have attached a screenshot.

    Thank you

    -Anne Marie

    Thanks for your replies.

    My palette is screwed a bit isn't it? Most likely because the installation I chose a bunch of older versions in favor... and I regret it now.

    Funny enough, during the search in the functions that it only brings me version 7.x of functions of table etc... but I can manually find the standard in my palette, and of course, version 8.5 standard functions seem to work...

    I need to finally do an install of cean, but for now, it's all good!

    Thank you

    Anne Marie

Maybe you are looking for