Multitask with daqmx

Hello

I am currently working on a Senior design project where I have to measure rpm, torque, pressure and temperature.  I use strain gauges, pressure sensor and a Hall effect sensor, thermocouples for these readings.  A myDAQ collects readings rpm and pressure while a cDAQ collects couple and readings of the temperature with NI 9211 and NI 9237 modules.  I have created LabVIEW screws for each sensor and they work.  The problem I have is when I try to create a VI with DAQmx who reads all the values of these sensors simultaneously.  The VI I joined randomly displays one of the measures while other measures remain empty.  How can I change my VI so I can show all my readings at the same time?

Yes.  Create multiple tasks, where all the strings that are common to a specific device are grouped in the same task.  Then go and run these tasks in parallel.  Do you need a precise synchronization between the tracks in the different devices?  If this isn't the case, then the method should work perfectly.  If you need a precise timing, things would get more complicated, but might not be impossible.

Tags: NI Software

Similar Questions

  • Timing embedded with Daqmx on PCI-6132

    Hello

    My colleague and I are trying to make a program Labview which starts a timer when the first trigger (sensor) is struck and stop the timer when the second trigger (sensor) is reached in 2012. We currently have a program for her, but this program was not sufficiently precise. Also the current program is using the DAQ assistant, but we would like to replace with daqmx triggering. We have also tried to use the OnboardClock on the PCI-6132, but still could not do the work programme.

    Is there anyone who knows how to do this and could explain it?

    (In the attachment is the current program)

    Thanks in advance,

    Tommy van Geest

    Hello Tommy.

    You can share your current code?

  • With a sampling of the data with DAQMX, error-200279 occurs when making 2d array dbl

    Hello

    I did a system of simple analog voltage with DAQMX data acquisition.

    It is made for reading of capacitance, where output capacitance value out of a circuit in the periodic voltage signal.

    What I want is to get data from four capacitors simultaneously through four channels, using samples n n (dbl 2d).

    The structure of my VI is almost similar with examples of continuous sampling of voltage in LabView, with the exception of a few other calculations in the loop.

    And for the synchronization of the trigger, I've corrected the edge of release with the external signal from the capacitance reading circuit.

    Version no. 1 has a channel for data input voltage. Version n ° 2 has four channels for the input data.

    While ver.1 can get accurate reading of four capacitors circuit data each (a single channel at a time),.

    ver.2 acquires four channels of data, with a single thin data channel, all the others were wrong.

    I saw a 200279 error occur in the DAQMX read part 2d dbl, so I tried increasing the buffers by changing the sampling frequency or the number of samples, but it wasn't everything.

    I rose for most of the forums with the 200279 error, but the solution would not work on mine.

    Anyone can find the problem? I will attach my screws it may include a bit of Korean language, but most of them are in English, shouldn't be too hard to recognize. Sorry for the inconvenience.

    Oh I forgot, my DAQ is NI USB-6259, and it works in Win XP sp3 and LabView 8.6.

    Thank you.

    Hello Azurenight,

    The 6259 is a DAQ card of the M Series Multiplexed, which means that it is not possible to sample each signal at the same instant, rather the channels are all sent through the ADC even and must be sampled in order. More information on this can be found here:

    LabVIEW Help: Multiplexing compared with simultaneous sampling

    http://zone.NI.com/reference/en-XX/help/370466W-01/mxcncpts/multisimulsamp/

    It may still be possible to get the data you need with the card you have - could you give more information about the maximum eligible period between samples on different channels?

    If you require * real * simultaneous sampling, you will probably need different hardware.

    Kind regards

  • Is it time stamp with daqmx read

    Hi all

    Simple question.  I have currently not creating a task or starting a task, I simply create a channel and reading that chanel.

    It is...  Why I don't get a timestamp when you do and do I create a task to get one of this?

    There is a timestamp when you use the DAQ Assistant or when you choose to return a data type of waveform with DAQmx Read.

    You can't do a reading without a blemish. You don't have to create the task in MAX, however.

  • time of release with daqmx

    Hello

    How can I set the time of liberation with DAQmx?

    In general, with a single DAQ hardware, the two signals are connected at the same time and the acquisition time is a function of the sampling frequency and number of samples read. For example, with a sampling rate of 1000 samples/s and 50 samples, the acquisition will be 50 msec. You then get a returned array if you wanted to watch a single signal by iteration of the while loop, it is simply a matter of indexing the specific channel to the table. You must set the mode of continuous sampling to avoid gaps and precise timing. Using two separate tasks and switching back and forth would add a lot of overhead to close/create tasks and you have little control over this period.

  • 2009 with DAQmx Installer

    We distributed an integrated application that uses DAQmx 8.x and LabVIEW 8.6 for several years.  I'll call the application MyApp 2.8.  We are working on a new version that uses LV 2009 and DAQmx 9.x, which we will call 3.5 MyApp.  When build us and deploy a Setup program for MyApp 3.5, then try to use it on a computer that already has 2.8 installed MyApp, the installer complains about dependencies and said that the two DAQmx 8.x and MyApp 2.8 must be uninstalled first.  I spoke NOR cela briefly and told me that DAQmx 9 was a pretty radical overhaul that required this change.

    It's annoying and slow for us, but almost untenable for our customers.  First of all, MyApp MyApp 3.5 and 2.8 are compatible, and we prefer to leave MyApp 2.8 installed as a backup as people get used to 3.5.  If the customer needs:
    Uninstall MyApp 2.8

    Uninstall DAQmx 8.9

    Install MyApp 3.5 with DAQmx 9.0

    Reinstall 2.8 MyApp (as if they can still find the disc!)

    Far too many steps and complications.  In addition, it is not really necessary.  If the runtime for 2009 is already installed on the computer (for some reason any), you can simply copy the MyApp 3.5 on the computer and it will run with DAQmx 8.9.  But this only postpones the problem, because at some point the customer will upgrade once again, and we will have forgotten that they were installed with a workaround, and...

    The really frustrating part is setup for MyApp 3.5 refuses to install until MyApp 2.8 is uninstalled.   While we have proven that MyApp 2.8 will work very well with DAQmx 9.0.

    Is anyone else noticing this problem?  Has anyone found any better workaround?  Is the same problem when we jumped 2009 and returned with 2010 and the last DAQmx?

    Thank you

    DaveT

    DaveT,

    You're right - for this aspect of the problem - my proposed solution won't help. At the price of a larger Setup program, including the full version of DAQmx probably will give the upgrade experience you want. If the web download size is a concern, perhaps you could provide two builds of your product - with the acquisition of complete data (for those of you who have your old product) and with smaller data acquisition (for those who do a clean install)?

    In addition, certain registry keys to remove the dependency I guess hacking is sort of an option, but it probably isn't the type of solution you are looking for. (We are currently researching the addition of some extra features in the uninstall program OR allow without taking account of certain dependencies, but nothing is currently available).

    Kind regards

    -WesW

  • VB6 with DAQmx compatibility with Microsoft Vista and Win7?

    Hello

    I'm trying to figure out how what are my options for running my VB6 applications that use the API C of NOR-DAQmx with Vista or Win7.

    I have certain applications that we have maintained in VB6 (with Measurement Studio 6).  I programmed the software for traditional OR-DAQ hardware originally.  I suppose that I used for about 10 years or more.  About 2 years ago or if we needed to use our software with hardware recent DaqMX I've been able to use the API C OR-DAQmx for Visual Basic 6.0.  My application really support two hardware platforms simultaneously.  The person responsible for the project wanted to have 1 single application managed the two platforms (daqmx and inheritance).  So far, it's all great.

    If anyone knows what are my options if I want to use Windows Vista or Windows 7.  We are currently running this app on Windows XP.  I'm ready to upgrade my software if necessary although I have to spend to VB.net and Measurement Studio 7.1 (I currently have).  But if we were to happen tomorrow is there any compatilibility. I read that the traditional / legacy NOR-DAQ is not supported in Vista (Win7).  I googled and found there was a beta version which seemed to weakly in support of the legacy but did not support USB devices which is what I have (6020e (inheritance), SCXI (daqmx), 6259 (daqmx).)  I've heard that Windows 7 will have a virtualization system for XP applications that do not work natively under Win7, but for some reason, I doubt that the drivers and hardware will be run this way.

    Also, should there be differences between Vista and 7? I'm an XP user and computers I support many XP so I really have no experience with Vista.  I plan to install the Windows 7 RC to try some of this stuff.

    Thank you, David

    Use of our released traditional DAQ drivers is not supported on Vista systems, even running in virtual Windows XP mode. The driver works at a lower level which can emulate a virtual mode.

    However, we have a public beta version for a traditional DAQ driver that works for Vista. You can read about this version beta here

    -Abram

  • Impossible to get more than 1 channel to read with DAQmx cDAQ-9172 under Windows 7

    I have the cell load, voltage, and input thermocouple connected to a cDAQ-9172. My sensors entries have been scaled and verified in MAX, and all of them work.  DASYLab 13, the driver is "dcDASY.dll" and the hardware configuration is "NI MAX.

    When I add a task NEITHER-DAQmx Analog Input (that is, a set of scales) it appears correctly. If I add a second channel of the task and select it, I get this message:
    'Channel of task name saved with the module is not available. DASYLab resets the module parameters for usable first channel name task. »
    The name of the task remains the same for each new channel I have Add. If I change the name of the task by using the tab to the drop down menu, it says:
    "You have configured several ways out for the module. If you modify the task, you lose the settings. You want to change the task? »
    Both display the same data channels, and I can't work simultaneously several channels. It seems I missed something obvious, but I can't.

    The parameters are:

    Measurement and Automation Explorer 4.6.1
    NOR-DAQmx 9.0

    Material:-cDAQ-9172
    Slot 1 - NOR 9215 (0-10 Vdc analog voltage)
    Slot 2 - NEITHER 9211 (thermocouple)
    slot 3 - NI 9481 (relay)
    slot 4 - NI 9237 (entry deck w / excitement)
    housing 5 - OR 9402 (DIO)
    slot 6 - NI 9263 (0-10 Vdc output analog)

    Thank you

    You can't perform different tasks (continuous) HERE on a single chassis. The first tasks that starts will be 'the resource booking '.

    Combine the AIs of the various modules in a single task (see photo): start by creating the task of thermocouple. Then add AIs 9237 (e.g. Kraft) and 9215 (volts) using the button with the blue, symbol. Set the mode of synchronization of the task of "continue". Save the task, start DASYLab (second photo).

    Change a task (adding channels, etc.) to the MAX while DASYLab works always, will result in unexpected behavior. To synchronize the configuration of MAX with DASYLab, you will need to close/restart DASYLab or use the 'sync' of the function (see photo 3 "syncmax.jpg"). You can set this function as a shortcut by right-clicking on one of the eight green or grey circle things.

    You should think about an update of the MAX/DAqmx drivers. 9.x is a little outdated.

    Updated at least DAQmx 9.9, better 14.x or 15. 0 (stay far 15 1.x).

  • Problem with DAQmx Schedule VI (sample clock)

    Hello to you all,.

    I'm new to this forum, please bare with me. I have some experience with LV, but I am relatively new to data acquisition projects. I use LV2009.

    I want to make sure that I use the hardware timing (instead of software distribution) in my project so I followed some of the threads here as sugested to use DAQmx Schedule VI. The problem is that no matter how I set the system I get the same error-200300 invalid calendar
    type.

    The project is simple. I encode with 1000 pulses per
    Rev and it is mounted on a shaft of a turbine water goes thru. I'm watching the frequency
    and so the rotation of the shaft which tells me that the amount of water flows through the turbine. In the end, there will be 2 channels
    by every encoder and ~ 3 encoders (turbines) total and calibrated the main meter that will give me constant impulses and all encoders will be compared to this master frequency.

    I'll use PCI6602 DAQ, but
    now, for the development, I use USB6221. Let's say that the
    frequency is between 500 Hz and 10 kHz. What I am doing wrong? Or maybe better to ask - what would be the right approach for this project?

    Thank you

    Marty

    Hi Marty,

    It seems that your question is already answered here, but Jason is correct that the 6221 neither the 6602 support a clock sampling for frequency measurements.

    As Jason mentioned, your best bet is also likely set the mode of synchronization for "implied". This means that the frequency value is sampled at the end of each period of your input signal. In addition, a solution that is clocked by the software (On-Demand) might be acceptable.

    X Series DAQ devices allow an external sample clock to use for frequency measures (described in the Manual of X series). Frequency of sample-clocked measures are useful in very specific
    circumstances, but it does not seem that you need this feature based on what you've described so far.

    (621 x) bus-powered M series can also be configured to use an external sample as the X series clock but do you not have the same features described in the manual of the X series.

    I hope this helps!

    -John

  • PXI-6133 Pulse frequency output and input with DAQmx

    I am trying to set a pulse meter output frequency task and read this signal with a frequency counter input task input pulses.  I use a 2 PXI-6133, each connected to a BNC-2090 case has.  I want to output a square of a certain frequency with the task frequency meter pulse output and then read the frequency of this signal using a task of cost input frequency.  I don't know how to property set up these tasks, or how to define which device to use for each heap.  I don't know what terminals on the BNC-2090 is the counter of entry/sortient channels correspond to them because that is not displayed in the documentation of the PXI-6133 or documentation of BNC-2090.

    Please see the attached VI for my attempt to put this in place.  Currently, I get two errors:

    (1) error-200452 took place at the property Node DAQmx channel meter Test - referred to as property is not supported by the device or is not applicable to the task.

    2. the error-89136 at DAQmx Start Task - specified route cannot be met because the hardware does not support.

    If I remove two channels of property DAQmx where I try to put the terminals for the counters, while the program is running, but then I know not what terminals on the BNC-2090 meters are connected to!  This causes the DAQmx read for the cost in the tasks of frequency to timeout because it does not detect a signal.

    I would really appreciate the help to properly configure these tasks and determine what terminals on the BNC-2090 case has the task of counter will work on.

    I see a few problems in the code originally:

    1. For your CI task, you type is defined as a counter entry > frequency.  But on the node property of DAQmx channel for this task, you modify the CI. Property of PulseWidth.Term.  It should be CI. Freq.Term. set the entry regardless of the PFI line you do not want the input signal on.  Tip: you don't have to type the name of the device in at all.  Enter "PFI0", it's the same as "DevN/PFI0" since the unit has already been specified in the DAQmx Virtual Channel Create function.  The name of the device, leaving aside will make your code more flexible where you decide later to change the name of the device.

    2. Maps of the S series, such as the 6133, do not have the same flexibility to change the output terminals of tasks of meter you might find with M or X series device.  Page 83 of the S series manual watch what signals can be extracted to PFI lines - Ctr0Out is not one of these.  Instead, Ctr0 out is, by default, pin 2.  Cabling to a BNC-2090 6133 is certainly difficult to understand out (probably because the 2090 was designed to work with the materials of the E and M series), but if you compare the pinout of a PXI-6255 0 with the 6133 pinout connector, you will notice that they are essentially a match 1-1.  Pin 2 is PFI12 on the 6255, so I assume the same for the 6133.  All this to say, Ctr0Out always appears on the pin 2/PFI12 for the 6133 and you therefore cannot change the output terminal that your code is trying to do, having for result error-89136.  Remove this node from the property altogether and the error should disappear.

  • Remote access for PXI with DAQmx

    I have a PXI chassis with a real-time embedded (PXI-8186) controller and some modules DAQ (PXI-6259) x 2. I've been programming this via LabWindows with a kind of client-server of RT - UI thing by using network variables and others. For some applications, it would be enough and more convenient to be able to interact with the PXI hardware directly from a connected PC network DAQ.

    The controller running a VISA server, it seems that I could connect to a remote machine with a kind of viOpen ("visa://pxi.somewhere.com//PXI0::15:INSTR"); ") and then contact a particular data acquisition card. But I can't find any information on the programming of the 6259 in any way other than DAQmx or similar.

    First question then: is the interface PXI - 6259 VISA described anywhere?

    More practical would be to continue to use DAQmx, through something like DAQmxCreateDOChan (taskHandle,"pxi.somewhere.com//Dev1/port0/line0:4",...)

    I found references to what we call 'Remote access appliance', for example:

    http://digital.NI.com/public.nsf/allkb/5CC9792C6CD4A34C862565BC0072D5DF

    that seems to put in place something equivalent, but I don't find it to watch it in MAX:

    Start-> all programs-> National Instruments-> NI - DAQ-> the remote device access server

    and I've seen suggestions that maybe it isn't that for traditional DAQ or only pre 7.0, or in any other way was no longer applicable.

    Second question: "Remote device access" are always and how to I install/activate it on my PXI controller?

    Someone at - it clues as to the foregoing, or any other way to get the same kind of features?

    Thank you

    Mike Schacht

    LANL

    Hello Mike,.

    Remote device access was a feature in NOR-DAQ traditional long just now.  This feature was not worn on OR-DAQmx because the framework it was built on does not really correspond with the need of modern times for network security.

    Unfortunately, there is no functionality you describe by saying to DAQmx.  Currently, this type of control is limited to deploying applications to the target of RT.  While the VISA is used for some parts of the DAQmx interaction, these function calls are not documented.  Someone else on the forums may be able to help if they tried to implement something like this in the past.

    Good luck!

  • Communication problem 6210 hardware DAQ with DAQmx 9.2.3 (Err 88302)

    I would use NEITHER-USB-6210 with DIAdem 11.1 under Win 7 Home Premium. DAQmx software and supplied drivers are version 8.6, but does not support this DIAdem 11.1 (DAC-NOR-DAQ interface did not show any existing signal). So I decided to update software DAQmx on latest version 9.2.3 which should solve this problem. After installation, all previous configuration items, MAX moved well and DIAdem DAC block indicated all signals with success but start of acquisition and measurement is impossible since. After firmwareloader establishes the material connection seems to be running, but any attempt to transfer data or start any function Max raises failurie event-88302 "an internal error has occurred." Anyone help me please?

    Dear Mr. Varga,

    After that the PC was clean from previous installed everywhere DAQ and new installation repeated once more, problem has been resolved and now the system is fully capable to work with DIAdem, as well as with the Net. request.

    Kind regards

    Milos Riha

  • How to make a good UI for the selection of the channels with DAQmx

    A lot of my Labview programming accompanied verisons them previous LabVIEW (pre Labview 7), and there are a ton of new features I am digesting (currently using Labview 8.2).

    My question is (in general), how people schedule their user interface for the selection of channels and others when using hardware DAQmx?  What I have in mind is a system compacDAQ with a number of modules.  The user would be able to choose which channels to watch.  With the help of MAX as part of this process seems counter intuative and somewhat static (yes I know you can change out there, but it feels more like something you would use for something that doesn't really change much).  I wish that all the UI within the VI.

    Programmers use the task of creating screw for this or something else?

    Thanks in advance.

    ChuckNRC,

    I tend to avoid using MAX and create all my channels/tasks using the DAQmx functions.  There are also having some DAQmx features that allow you to save/remove channels, tasks and scales to MAX.

  • communication with DAQmx SCXI

    Hello

    I have a problem to connect with a SCXI-1540 module.

    In MAX, I see the module, and I put the "data area" a task NEITHER-DAQmx to reed the voltage on the input.

    I see a standard value of 5, 38V even if I change the entry.

    I missed a setting?


  • synchronize two cDAQ Chassis with DAQmx 9188

    I try to sync analog entry tasks on two 9188 Chassis utilzing the build in the BNC (PFI 0 and 1) ports.  I also have digital entry spots on the chassis of the master, I want to synchronize. Have been referencing http://www.ni.com/tutorial/5376/en/ and examples, I am not sure I have it set up correctly.

    From the link above, I exported the SampleCLK to PFI0 and StartTrig to PFI1 on the chassis of the master.  I have two BNC cables routed between ports on the two chassis.  I put the trigger DAQmx start on the slave to the PFI1 source (this does not seem to do both tasks at the same time), I tried to adjust the pitch of the DAQmx (sample clock) of source PFI0, but it creates an error (requested sample clock source is not valid).

    I can get the application of test runs by seting the slave clock "OnboardClock" sample source  When I use this setting, the task two seem to start at the same time, but I don't think the slave chassis uses the master module sample clock and therefore might drift over time?

    I would like to know how to properly synchronize the two analog tasks.  I also want to synchronize digital tasks on the main frame with the analog task.

    Hello

    If you want to synchronize the two tasks, you share examples of clock and triggers via PFI lines. The only exception is that it is not currently possible to synchronize tasks between the chassis that use AI modules with delta-sigma a/d converters.

    Best regards

    Villanueva of the DSL.

Maybe you are looking for