Simultaneously reading multiple channel types programatically

Hi, I'm completely new to using NI DAQ so please forgive me if this is trivial. I am need to be able to simultaneously read 5 analog lines and up to 20 digital lines of an M-series multifunction card completely programatically, i.e. with no involvement of MAX, LabView, etc. (it's going to be incorporated into a Matlab program and has to be as independent as possible). I simply want to write a piece of C code that reads these channels at 2KHz and stores the data for later analysis. Is this possible with the NI DAQ library? (and if not, why not?) From what I've read so far, for some reason it doesn't seem to be a supported function of the DAQ library. Any advice welcome. Many thanks
Tom

Your M series board is not supported by the old NI-DAQ driver. It can only be used with the newer DAQmx driver included with the board. and while you can't have true simultaneous analog acquisition you can synchronously acquire 5 analog channels 20 digital inputs. The DAQmx driver includes some C example programs. You can download the latest version of DAQmx by going to http://www.ni.com/support/.
If you're not going to use LabVIEW for the data acquisition, you shouldn't post to this message board. There is a dedicated Multifunction DAQ forum and Measurement Studio vot VC++ message board.

Similar Messages

  • Reading multiple channels for multiple graphs

    Hey I am fairly new to Labview and am using it just temorarily. My project is to take in readings from a Gaussometer (X,Y, and Z axis) and graph them in read time. The Gaussometer outputs a DC Voltage equal to the gauss of the magnetic field. The X,Y,Z all come in on three differnet channels. Connected to a NI USB-6009
    I know I can use the Express> DAQ Assistant, however that outputs "Data" and I was hoping to use this in an Array. So I used the DDT to Array to convert it to the Array format that I needed (thanks to the forums for the help there). My only problem is that I don't know how to do this with multiple channels at the same time. But I have possibly been going about this all wrong.
    So I just wanted to know if I could get some help on how to read multiple channels and write to them to three different graphs in real time that would be of great help.

    Whether or not you use the Convert From Dynamic Data or the Split Signal, your data should be shown as soon as the DAQ Assistant returns. How you format the data is irrelevant. If the number of samples you request is greater than the sample rate, then it will take longer to acquire the data and there is nothing you can do about that except reduce the number of samples and acquire in a loop. You can append new data to old and display everything in a graph if you want.

  • CAN read multiple channel

    Hello
    i want to read multiple CAN channels simultaneously,
    and diaplay the data received from the channel.
    i attached my vi
    give me an idea how to do this
    thanks
    sk
    I am using LabVIEW 7.1/ PCMCIA CAN series 2 h/w 
    Attachments:
    files.zip ‏81 KB

    Hi,
    Did you actualy see the advanced channel api example shipping with the driver. perhaps this is something you can take as an example.
    DirkW
    Attachments:
    Channel Monitor.vi ‏141 KB

  • How do I read multiple channels at one time using labview with the Fluke Hydra Data Bucket 2620a using serial port?

    I need to take a reading of 15 channels about once a second. I can read one value at a time using the monitor function on the read values.vi driver, but this takes forever to read all the channels.

    I don't have this instrument but I took a look at the instrument driver and it appears that you can only configure one channel at a time to read from. You might want to take a look at the command set for this instrument and see if it allows for configuration of multiple channels. It could be that the instrument driver just doesn't have that built in.
    J.R. Allen

  • I have a DAQ Assistant configured to read multiple channels at the same time. When I wire a graph indicator to the output, I see all of my signals jumbled together. How do I split them up into seperate signals?

    I have a DAQ Assistant configured to read 2 channels at the same
    time. When I wire a graph indicator to the output, I see the 2
    signals jumbled together. How do I split them up into seperate signals?
    When I wire any type of indicator it is showing just one output of a single channel.
    I want 2 indicators showing 2 different signals as expected from the 2 channels configured. How to do this?
    I have tried using split signal but it end up showing only 1 output from 1 signal in both the indicators.
    thanks in advance.
    Solved!
    Go to Solution.

    Yes you are right. I tried that but I did not get the result.
    I just found the way. When we launch split signal, we should expand it (split signal icon) from above and not from below. It took me a while to figure out this. 
    thanks 

  • Steps to create a VI to read multiple channels

    This is the first time I've used LabView.  I want to create a VI to be able to read viltages from multiple channels and output the value of each channel to individual numeric indicators in the VI.  I know how to read a single channel and I've created a task in DAQmax with multiple channels but how would I put that into a VI that will do what I need.
    Thanks,
    Albert

    Assuming you are using the DAQ Assistant and getting one sample per scan, then you just use the Split Signal and wire the outputs to your indicators.
    Message Edited by Dennis Knutson on 04-30-2007 09:49 PM
    Attachments:
    Split Signals.PNG ‏4 KB

  • Reading multiple channels in one task

    Hi i am trying to read three voltage inputs in one task. I have configured the task and used generate code to get the example. But i am now getting the data from all three channels in one waveform, but i would like to work independantly on the three channels. What should i do.

    Hi vamy,
    If you read all channels with AI Read, it should return an array of waveforms (not just a single waveform). You can use "Index Array" to get the waveform from each individual channel, or use "Index Waveform Array", which is basically the same operation.
    Dan

  • Reading multiple channels in labview with 6062 e series dac card

    To whom ever can help,
    I have the e series dac card 6062 pcmcia as well as labview 7.1. I am trying to setup a program just to continuously read all of the analog channels and display them on the front panel via meters. I have setup
    one channel quite easy but after setting the others up the only one that actually works is ai0, the others
    don't seem to want to communicate.
    with thanks
    Nathan

    Hi sag666,
    By "don't seem to want to communicate", do you mean that no signals are acquired after selecting the specific channel or the string as suggested by zenith (ai0:15)? To first verify that all channels are working properly, try using the Test Panel in Measurement and Automation Explorer (MAX). When you enter the Dev1/ai0:7, you should acquire readings from the first 8 channels. If you can acquire proper signals from here, try running an example in LabVIEW 7.1 (e.g. Help >> Find Examples, then in browse tab, Hardware Input and Output >> DAQmx >> Analog Measurements >> Voltage >> Acq&Graph - Int Clk.vi). Setting the channels in differential mode, you should be able to acqurie signals from Dev1/ai0:7 (Assuming the card is device 1).
    Thanks,
    Lesley Y.

  • Reading acceleration channel properties programatically

    I am creating a virtual channel that is reading a TEDS compatible accelerometer. Prior to creating the channel I execute "DAQmx Configure TEDS" on the physical channel in order to read the TEDS information. What I can't figure out is how to find and read several of the accelerometer channel properties so I can verify the TEDS information is correct. Specifically, I cannot find properties for sensitivity, or sensitivity units. I looked in "DAQmx Channel" and "DAQmx Physical Channel" porperiy nodes but could not find sensitivity. Thanks for your help.

    Hi,
    I used to have the same problem. I spend a lot of time trying to find a property node or a VI in order to retrieve the information previously defined in the document, but unfortunately I wasn’t able to find one.

  • I need to read multiple counters using PCI 6601 can I do this, and How?

    I am reading 4 TTL signals from a Magnetic Pickup how do I read multiple channels using PCI 6601?

    Not concerning my primary question, I would like to point out to an N.I. Rep. that there is a typo in the help section concerning "posting a message".
    I have built a large format, two axis digitizer using linear encoders, a 6601 counter/timer, and labview 8. In building my application program, I  initially am using two daq assistants, with each set up to accomplish  the task of reading two encoders simultaneously. In doing some research, It has come to my attention, that, with my current configuration, errors may result, due to one daq assistant attempting to access the cards driver while the other is acquiring data.  All attempts to get two channels working through a single daq assistant have resulted in an error message informing me that I can only have one task per counter.Thus far, I have not seen any noticeable errors, thought I would like to have this device "rock solid", as it will be used extensively.
    Is it possible, that I should have purchase  an "S" series board instead?

  • Multiple channels displayed in curves

    Is it possible to simultaneously diplay multiple channels side-by-side with their respective curves and histograms when making curves adjustments?  --Not just simply overlaid upon each other in a single grid.

    No. I'm not even sure what that would be good for other than gobbling up tons of screen space, since it really doesn't tell you anything. It's one of the less endearing features in som color correction tools. Anyway, you have two redundant sets of keyboard shortcurts for switching channels inside such panels, and I'm sure that this allows switching fast enough to get whatever adjustments you need done just as quickly.
    Mylenium

  • Agilent 548xx multiple channels

    I downloaded the driver off Ni's site and am able to configure scaling and trigger and read from one channel. Problem is my client's testing requires sometimes reading 2 and sometimes reading 3 channels also. The configuration sub-palette has a VI for configuring 2 channel mode or 4 channel mode, but I can't get this working. Tried changing the order that I configure things in, no help there. Anyone using an old Agilent scope and reading multiple channels, or know of an example along these lines?
    Thanks,
    lmd2
    Lawrence M. David Jr.
    Certified LabVIEW Architect
    cell: 516.819.9711
    http://www.aleconsultants.com
    [email protected]
    Solved!
    Go to Solution.

    Thanks Rob, yes I am using a 54825A which is supported by that driver, but the Configure Multiple Channels function is only valid for the 54845A. Found the work around though, in the Action-Status subPalette is a function called hp548xx Actn On Off.vi
    I used this to force three channels to be enabled, and was then able to configure them and retrieve the waveforms from all three channels.
    Thanx for the reply, weird that the one function is limited to a single model while the rest of the functions are valid for the entire family, but at least there is a simple work-around.
    Thanks again
    lmd2
    Lawrence M. David Jr.
    Certified LabVIEW Architect
    cell: 516.819.9711
    http://www.aleconsultants.com
    [email protected]

  • How can I read two channels with fieldpoint and labview

    I'm trying to read two or more channels with the TC 120, and I follow the examples of sopport page, but doesn't work.
    What can I do?

    For more information about reading or writing to or from multiple channels in Fieldpoint, please refer to:
    How Do I Read or Write to Multiple Channels on a Fieldpoint Module in LabVIEW?
    This should enable you to read multiple channels. The only other option available is to use one fp open.vi, multiple Create Tag.vi's and multiple FP Tag Read.vi's.

  • How to Read from multiple channels

    Dear Sir
    I am acquiring data using FP-RTD-122 using OPC Client software. I ahve made one socket for that and i am using command
    CWDataSocket1.AccessMode = cwdsReadAutoUpdate
    CWDataSocket1.URL = "opc://localhost/National Instruments.OPCFieldPoint/FP Res\FP-RTD-122 @1\Channel 0"
    CWDataSocket1.Connect
    v = CWDataSocket1.Data.Value
    where v is a variant type.But this is 8-channel RTD so how can i read values from all channels using single socket connection Because at presnt i have to use 8 sockets for all eight channels.

    At least as of FieldPoint 4.0 and earlier (I do not know about 4.0.1 or later), the OPC Server did not support multiple channel analog items. Thus to read all eight channels of a FP-RTD-122 module, you would need 8 separate socket connections. For discrete modules (boolean), the "All" tag, is treated as a single 8 or 16 bit number.
    Regards,
    Aaron

  • 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

Maybe you are looking for