DAQmx showing not readings to multiple channels

Hello

I am trying to acquire values of temperature of 3 consecutive using a task DAQmx channel as shown in the attached photo.

I have a loop of producer-consumer for fast reading and writing samples in a file.

To specify the channels, I typed in the box connected to a terminal of "physical channel" (not shown in picture) as follows:-SC1Mod2 / ai2:4.  This is to acquire a reading of analog channels 2, 3 and 4. The program must then write a file reading on channel 3.

The code works perfectly if I purchase samples of 1 channel only.

When I try to acquire multiple channels, I don't see readings on one of the task of acquiring Wired Digital indicators.

I would appreciate your input on what might be wrong with the code.

Thank you.

kumv10 wrote:

The broken wire seen in the photo is the result of adding more channels to the task of acquiring.  I managed to get around this by specifying a different, but even with an intact wire data type, the program is not displayed readings since the 2 remaining channels.

Instead of use for dynamic data Type, then the channels Split, just use an array of Index to get your three values.

Tags: NI Hardware

Similar Questions

  • Changes of waveform, not extended to multiple channels?

    I work with Adobe Premiere Pro CC and hearing 2014. I sent my sequence of any hearing through first. I edited the first clip on the first track of waveform. It was minor changes, I applied the unclip minor cut, then I adjusted the upcoming volume of Chief sub - 3db on the strongest parts. I saved the file, however, when I switch back to multi-track and play the clip changes that I made to the clip in wave form are not there in multiple ways. The volume of the clip is hitting 0db and not reflecting is not the volume control. Am I missing a step? I closed project hearing, saved and re-opened the file folder, but corrections are not in the Multi-track, yet are there when I switch to waveform. I'm a beginner at the hearing, so not sure I work in it correctly.

    Thanks for any help or input.

    Hi Sonia,.

    If you send a single item (or individual clips slightly) at the hearing, first performs an operation to "Restore and replace", generate new WAV files for each of the clips and sending these new files on hearing.  When you change the waveform for these files, the changes should appear in first immediately.

    However, if you send the entire sequence during hearing, new files are unrelated to the clips in the timeline of the first.  Instead, that refer you to Premiere Pro is a mix of the full session.  (There are other options, but for the sake of explanation, I will focus only on the final mix).  It is a single file that represents the final sound for a project and is inserted into a new audio track in Premiere Pro.  The original tracks could be muted, and exports will contain the audio that was finalized in hearing.

    If you want to fix a single element in your Premiere Pro sequence timeline, just choose item edit in Adobe Audition and you should see the clip update with your changes when you save the file WAV in hearing and go back to Premiere Pro.

  • Select multiple channels for a single task - control and shift keys do not work

    Hello

    Following the advice of several other positions, I try to choose several physical channels in the drop-down list so that I can then use the function "unflatten channel channel" later. It seems that if I hold this key is pressed or cntrl, I should be able to select multiple channels in the list, however, this does not work for me. I tried to go in the "navigation key" property for the control channel to task, but there not all listed associations. Someone else has encountered this and found a solution?  I previously around that by declaring several channels by a colon (for example, ai1:3), but it does not work for the unflatten function.

    Thank you

    Claire.

    If I understand correctly, I think that you need to do is use a task property DAQmx. Try to use the channels property to get an array of strings.

  • How to use DAQmx Read to measure several analog channels

    I have two analog inputs using USB 6221 and I want to measure the voltage of each of them.  I use vi DAQmx-read and I select input analog, 1 sample, several channels, but I do not know how to connect several channels at the entrance of the physical channel.

    Hello, Bernadette.

    For reference - I would recommend ad DAQmx questions here:

    NEITHER Forums: Multifunction Data Acquisition

    http://forums.NI.com/T5/Multifunction-DAQ/BD-p/250

    There are several ways to add multiple channels for a fast task-ni.com look for "select multiple channels DAQmx" gives me this like the hit albums:

    2X8D7F5Z knowledge base: How can I select more than one channel of NOR-DAQmx LabVIEW?

    http://digital.NI.com/public.nsf/allkb/A3A05920BF915F1486256D210069BE49

    Hope that helps!

  • Error reading DAQmx multichannel. DAQmx believes that there are several channels in my task.

    Hello

    I get the error message added when you try to use my VI DAQmx Read.  LabVIEW tells me that I'm trying to read a single channel when my task is configured for multiple channels.  However, as you can see in the task panel, this is not the case!  If I try to use DAQmx Read to generate a waveform with many channels, the VI runs without error, but I don't want a picture of waveform 1 d...  Any tips?

    Kind regards

    Steve

    Without seeing the code all I can offer only a possibility.

    Something else in your code is changing the task of wine and let the reference.  Wine is then stored with many channels, but these changes are not saved to the MAX which means that when the task in this section of code is not identical to the task UP.  Hit a knot DAQmx task over there and read 'Channels' to confirm my suspicions

  • How do switch you between multiple channels to indicate which channel to acquire the data from?

    I'm trying to builld a VI where I can have an option to enable or DISABLE multiple channels depending on the modules plugged into the chassis and then acquires the data of the channels which are turned on and where other acquisition parameters do not change. Is there any specific/switch where can I do this? Please answer as soon as possible. Its quite urgent. Thank you

    You use DAQmx?  To change the assignment of the data acquisition channels, you must close the currently open session and then create a new session with the new channel definition.  So the order of execution:

    Create task or virtual channel - read - clear task of triggering and synchronization of the configuration - set new channel list and to create a task - read - clear task, etc...

  • filter multiple channels

    Hello, I have another problem here, just started to learn the filtering and decided to practice on the job making, im if you have this one question: I have two signals on channels of entry of two pressure sensors that come with high noise. I tried to split the signals, filter, and then merge again to send to waveform, but it does not somehow, and I thought that if there was a specific filter for multiple channels, I read that some TREES can divide signals itself and merge them automatically, but I couldn't find one. suggestions for beginners? Thanks in advance

    PS by the way, managed to filter one of the signals manually split and for some reason, the waveform to the display of the data of pressure with sound sensor stops working after apprx 3 sec, it kind of drags a bit and then goes black blank, so any suggestions on this point, would much appreciate

    PPS two graphics of waveform showing the initial data of the sensors go blank after a while at the same time black

    Hello Pomplamoose,

    I forgot to mention something: If you set playback VI to N samples then wire a constant for the number of samples per input channel. A good way would be to read in samples of 1000 per iteration.

    Part Fliltering:

    First of all, if you want to filter the high sounds you use Lowpass Fliter.

    Attached you will find your VI with 2 ways how you can filter your signals.

    (1) easy solution with express filter VI.

    (2) VI of Butterworth filter, the way in which you the tried.

    Some explanations to 2):

    If you use the butterworth VI as a low pass/high pass filter filter, it ignores the entrance of high cut-off frequency. The entry, you should use is the lowcutoff FREQ.

    In VI I provide you with there is no synchronization of the signal information once it is filtered, because you only use data of Y of the type of waveform. If you have calendar information in your signal you could do that with the construction of a waveform type after you filtered the data Y.

    Therefore, you have no synchronization of the signal you need to resize the chart you can see the filtered together signal.

    To merge the signals after you their filtered, you have 2 ways:

    (1) build an array of filters.

    (2) use the signals of fusion VI.

    If you need help just ask, otherwise mark as resolved.

    Kind regards

    Markus Mayr

  • Replace negative values in multiple channels with "0'.

    Hello

    I'm calculating and then by creating a cumulative channel, multiple channels. Negative values in these channels aren't necessary, and I need a nice way to replace each negative value in these channels with a value of '0'.

    My current code is:

    Do
    Do
    If Data.Root.ChannelGroups (2). Channels (i). Values (II)< 0="" then="" data.root.channelgroups(2).channels(i).values(ii)="0    ">
    II = ii + 1
    Loop until the second > Data.Root.ChannelGroups (2). Channels (i). Properties ("length"). Value
    II = 1
    i = i + 1
    Loop until I > Data.Root.ChannelGroups (2). Channels.Count

    It works, but I don't like. He adds a few seconds when running my script, which was almost instantly. Is there a better way to do it?

    Thank you.

    Hello Kevin,

    The fastest way to go through a channel and check the values less than or equal to 0 is through the canal's calculator. The code below takes all the channel first channel group (with the exception of the first string that is be the weather channel in my example data set) and replaces the values<0 with="" 0="" through="" the="" iif="">

    Set Group = Data.Root.ChannelGroups (1)
    iMax = Group.Channels.Count
    FOR i = 2 to iMax
    Adjust the strings = Group.Channels (i)
    Formula = "= IIF (y '.<0, 0,="">
    Call to calculate (formula, Array("y"), Array (Channel))
    NEXT ' I

    In this example we overwrite the existing values of data channel with 0, but you can also copy the channels to make sure that your raw data is available.

    The calculator of channel is extremely fast for this type of operation because it does not create a loop to go if each line separately and check the values he...

    I hope this is useful,

    Otmar

  • Why do write can not be performed because the number of data channels does not match number of channels in the task.

    Possible reasons:

    Scripture cannot be performed because the number of data channels does not match number of channels in the task.

    When writing, provide data for all channels in the task. You can also change the task so that it contains the same number of channels as the written data.

    Number of job channels: 8
    Number of data channels: 1

    Lama says:

    The DAQmx vi writing gives me the error. If I run a single channel, isn't a problem. Multichannel gives me error.

    You are funny! Why tie yourself to work VI (single channel) instead of one that gives you errors (multichannel)?

    (If your car does not work, you bring car your wives to the mechanic, right!)

    What is the exact text in the multichannel 'physical channels' when you do the AO control?

    Lama says:

    I did a sequence to ensure that each function has been run in the correct order. Wouldn't a race condition.

    All you have to do is wire the 'start of task' error at the entrance of error of the DAQ assistant and then back to 'stop task' and things will run in order. Guaranteed! Think the stream! Everything else can run in parallel or the order is irrelevant.

    First convert the sequence stacked to a sequence of plate, remove the flat sequence and add the mentioned son. Now, do a "cleaning pattern.

    A when stacked with the inhabitants of the sequence is one of the worst construction you can possibly do. It makes the code difficult to follow, impossible to maintain, difficult to debug.

  • Dedicated for each channel from multiple channels in a single task task disadvantage

    Hello

    My current acquisition software (C + c++ / GCC) encapsulates the methods rather clumsy niDAQmx C to interface with the data acquisition equipment in a class that represents a task of acquisition. This way I can create several instances, for example counter input, analog input, analog output, their terminals and the class supports all work low level as ensuring input analog fake internal is started if there are only counter entries such as the sample clock starts, or configure reminders N-sample, etc.

    It seems to work very well, and also the time seems to be good, because first of all the tasks on multiple instances of my wrapper. For triggered early, that I use

    DAQmxCfgDigEdgeStartTrig(mTask,mTriggerTerminal.toAscii().constData(),DAQmx_Val_Rising)

    in-house.

    Now my real question: what is the advantage of multiple channels, when everything seems to work fine with multiple tasks and only one channel per task? I don't see the disadvantage, it would first classify necessary acquisitions in types (I, ao,...) because several strings in a single task must be of the same type. With my approach I need not care because each channel still gets its own task.

    I don't know I'm missing something here. Maybe someone can explain it to me, maybe some limitation of multi-tasking, I have not yet read.

    Hey!

    Unless you specified for managing the it (simultaneous sampling) or modular instruments and hardware devices (see link )

    You cannot perform two tasks at the same time that access to the analog inputs, for example, because the

    ADC is a shared resource that is connected to a multiplexer, and that only one task can work in it at a time given. (see here )

    Similar restrictions often apply to other types of operations.

    I'm not aware of any performance issues, perhaps a little more memory could be used.

    So as long as your hardware supports what you are doing, you should be ok, I think,

    and it is only a question of clarity and intelligibility, ease of use and structure.

    As you use classes, I'm sure you've heard about encapsulation - so it is a

    question of how you want to design your application.

    In addition, when you work in LabVIEW, tasks feel more natural to the principle of data flow, because you have a thread for your data acquisition,

    and it works very well with our modes of standard design.

    So, if it is better for you (and works with the hardware), you can give all the channels its own task.

    Hopefully this might clarify some things,

    Kind regards

    Rome

    OR Germany

  • several channels in... multiple channel out

    Hi all

    I've attached a zip file that hosts a few vi. The vi is downloadable from a manufacturers website in order to facilitate the use of their products.

    See here: http://www.phidgets.com/products.php?category=0&product_id=1018_2

    The vi (s) is used with a Board that includes 7 digital inputs (0,1,2,3,4,5,6,7). However the screw ' attach allows only a single channel read.

    I will read a train of pulses at the entrance of each channel, but do not want to replicate the code for each channel.

    I have considered using a loop For to manage the polling stations across channels (with a table attached to the input control vi channel), but how to go about showing the output of all channels (remember a train of puls), I am quite at a loss.

    Could you please suggest how can I modify the vi to allow all 7 channels to read a train of pulses appearing at the entrances and display it as a graph or boolean (doesn't really matter which)

    Thnaks for your help

    Concerning

    Ray

    I don't know how your hardware might work, so you can have set the timing/s. For now I have disabled the h/w acquisition section and I am generating random data. I hope this helps.

  • Media Center will not register a particular channel, but all other records very well

    Hello, I can not Media Center to record a particular channel unless I am diverted listed steps below.  I get all the live channels.

    -the channel, I can't save is 30.1 in Memphis, TN (subsidiary CW) channel

    -My tuner: AVerMedia AVerMedia Duet - PCTV Tuner (A188 - white box) Interface PCI-Express x 1 MTVHDDUWB

    When I try to record a program at any time on channel 30, Media Center loses signal.

    While playing with it, I discovered that I can click to save while watching channel 30, then after that Media Center loses signal, follow these steps:

    Reach

    Settings/TV/TV Signal / Scan for multiple channels

    So, I have to empty the scanned channels and re-scan.

    Then it will start to record the channel 30.1.

    Help, please!  Why Media Center will not record 30.1 without all this trouble?

    Thank you

    Kris

    Go to settings-guide-add missing channels. Type in right channel # (like 8.1). Then put in the right frequency for the over-the-air station (35 in my case). You can find this info here (http://www.antennaweb.org/aw/welcome.aspx) if necessary. Now, you will have 2 channels in guide for 8.1 lists. Right-click on the new guide that lists you just create and go change the channel-edit lists. Change the source from the list to the channel that you have problems with. Next pass parameter-signal digital tv signal strength and a Coachman television that did not properly record to remove the Guide channel. This will fix your problem.

  • Windows Media Center using only not to Clear QAM channels, at least some of them.

    So check it... I already updated my operating system from Windows Vista to Windows 7 as soon as it became available last year and had been using Windows Media Center on my HP m8330f to record live shows with a digital antenna.  I decided, spotty reception because, as I plug in my TV Tuner directly through my cable (without decoder) and Clear QAM channels this mode of access.  After noticing that my old TV Tuner was missing several channels (not shown 6) I chose to add missing channels, as shown in several forum posts.  I added successfully most of the available channels except the two I wanted most, NBC and ABC.  Since my TV Tuner was quite old (double ViXS ban, card simple tuner), I decided to upgrade to the Hauppauge 2250 encryption that could be a cause for the missing channels... and more, it is a ban on double, double tuner the card.  Alas, the Hauppauge worked in much the same way that its predecessor and the lack of NBC (4.1) and ABC (2.1) are not found... even after attempting to add channels.  All that is visible is a "Service is unavailable" message.

    I am a customer of Time Warner Cable in New York and have had no problem accessing these (Clear QAM) channels on my' computer', the LG 32LH40 thanks its tuner internal.  Moreover, I was able to access these same channels via the same TV Tuner using WinTV v7 and Beyond TV.  This leads me to believe that the problem lies in the Windows Media Center software.

    I am a big fan of Windows Media Center and love how convenient it is (apart from my current dilemma) and still want to use it as my main media look at a software but I'm torn on this issue.  I don't know if you have experienced this problem before, but I am quite stunned, especially since I feel like I've exhausted all channels (which goes as far to add the channels first as a modulation QAM 64 and 256).  Does anyone else have this problem?  Any ideas would be extremely useful.

    Thank you!

    Hi Chris,

    Thanks for your help!  I thought both on the channel number, but I could not find a network ads everywhere about my service area (I had not yet known on that SiliconDust website but I just took a shot and that's exactly what I needed...) (Thank you!) ; or the information that I found were incorrect.  I ended up working all last night.

    After many rescan with WinTV and Beyond TV, I could finally figure what channel were virtual and who were not and add missing channels accordingly.  Remappe MC my 104,2 at 4.2 but not my 104.1 makes my TV as well as WinTV.  Beyond TV didn't display the number of virtual channel while parsing, so I was able to get the numbers of QAM channels how.  He was just working backwards.  However, MC had yet 104.1 (my 4.1 missing such as mentioned in my previous post) in his 'detected chains"(strangely)... so I added it.

    Thank you for this Web site again!

  • Display the source shows not only HTML, but also external JS and displayed in a format that is unorganized, how is?

    When I use the view source feature, the pane shows not only the HTML code, but it sticks in all Javascripts that are in an external file. In addition to this all dashes went making it virtually unreadable.

    I have this problem with each monosite, I try to view the source of the. I turned in and uninstalled all add-ons. Starts in safe mode. But nothing seems to work. I got this in firefox 3.6 and upgraded to 4 it would fix, but is not hope.

    It's strange. How about trying to reset all preferences of view_source to their default values.

    Talk openly about: config (type or paste Subject: config to the address bar and press enter)

    In the filter box, type or paste view_s

    When preferences are displayed, do a right click and Reset those appearing in "BOLD" to return to their default values.

    A little luck?

    Edit: Oops, for Mac, read 'right click' like what you normally do to display a context menu.

  • 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.

Maybe you are looking for

  • How can I get read of qto8?

    A hijacked by a malicious software program. Whenever I start firefox it goes to the page qto8.com instead of my home page. I went to tools/options/reset my home page and nothing. I removed the search box by clicking on manage search engines. I went t

  • pins connected vs topology

    Hello I am currently using a PXI-2529 matrix with a topology 8 x 16. According to the scheme of connection in OR help switch (see attached photo), if I connect R7 to C15 I should have pins C16 and C6 connected to C10. Right? But when I test the conti

  • CDAQ 9201 noise compared to PCI-6120

    Hello I haveproblem with our cDAQ, more precisely with the 9201 tension module. Thesignal resulting seems much too noisy, especially compared to our 6120.Could someone take a look at it and tell me if this is the desired result. I measuredthree thing

  • custom paper size Photosmart 7525

    Is it possible to add a custom for the 7525 printer paper size? Paper format (5.5 "x7.75") does not appear on the drop-down list and the list does not show a custom paper.

  • my daughter has her own ipod and he used recongize or code 43 s me.

    It seems that my daughter has some of the pins folded or even beat some now he used to charge and my computer wont recongize it am I and it screwed