How do DAQmx tasks work on several DAQ devices

I created tasks of temperature on cDAQ1 on my development PC.  I moved this DAQ system to the laboratory as well as an executable file.  I connected cDAQ2 to my development PC and none of the tasks that I created will work on this system since all channels of reference on cDAQ1.  Also the executable will not work with cDAQ2 also.  Note that cDAQ1 and cDAQ2 have the same hardware configuration.

How to create these tasks so that they will work with system or additional identical systems in the future?

Ok.  I see the problem.  It's because your devices have different names.  You told your tasks to make reference to a hardware device that has a specific name: "cDAQ1."  This is why your program will always search for a hardware device with this name.  Here are your options:

1. replace the name of the device "cDAQ2" "cDAQ1" on your target computer.  You will need to do this for each computer target on which you load your executable file.

or...

2. After installing your DAQ card and your program to your target computer, go to your tasks in MAX and re - direct to appropriate material (cDAQ2) by selecting "Change the physical channels" for each task and designating the appropriate on cDAQ2 channels.

Alternatively, you can use the vi to "Create jobs" instead and add a control that allows the user to select the channels of material on which runs your acquisition.

Tags: NI Software

Similar Questions

  • How to set up wizard DAQ or DAQmx tasks using an external text such as a CSV file?

    I work in an environment were we have a lot of users VI. I develop the VI and technical personnel using the GUI (cover Page) to collect the data. In order to control the input parameters used on multiple hardware platforms, I'd like to develop a generic VI which will import or read a text file I created, and configures the DAQmx tasks to perform data acquisition. In fact, I have the generic VI full and need to understand how to make configurations DAQmx more transparent for the end user as long as the end user has the text file to import. For example, to generate the wizard DAQ DAQmx tasks based on information from text file?

    I don't have time to do more than just a small example. The VI below contains a table with table fixed index functions. This would have changed to get automatically the correct rows and columns, but I hope that you have an idea. I does not have any code to define the type of temperature measurement or to set the correct configuration of Terminal. All of this plus all other possible options will be treated similarly to the definition of the type of channel and min/max which is located in the example.

    Edit-attach VI

  • How to add DaqMX task to an existing project

    I use Measurment Studio 2010 with Visual Basic. I created a NI Daq Windows application with an element of task Daq to analog input.

    Now, I have to add additional DaqMX tasks (tasks in digital and Digital Out) to the existing Visual Basiic project.

    How can I do this?

    Thank you

    Mike

    Hello

    Here is a link that shows how to add a task to a .NET project

    http://digital.NI.com/public.nsf/allkb/290D84D10809D4C086256FF20076F8B8

    Curt

  • Smart txt reflow - how do you work with several text boxes?

    Hello

    I create ID cards to work, for 650 employees. I had used the reflow of text before smart on other jobs and I don't foresee any problems with its use for this project. To explain my problem:

    I'm doing a template with a trial of ten employees file. The design on each card, it is a name and a unique ID to be used. The name is 18pt and code 10pt.

    On my main page, I have a block of text for the name and a text block for the employee ID. The text blocks are as wide as the work plan but only high enough to adapt to a single name by image to the relevant point size.

    On the first page of my document, I select 'place' and then select the text file with all the names, I get the change of cursor in the image of the text, I hold SHIFT for the debit option and click on my name text box. InDesign automatically creates 9 new pages, and I now have a 10 page document. So far, perfect.

    I select "place" again, choose the employee code text file, click on my block of text in code used on the first page, and repeat the same process as above.

    My problem starts - I want codes for the employee to just flow through ten pages, as the names, but when I place the codes file and select the text on the first page, inDesign creates 10 new pages after the tenth page. So I find myself with 20 pages - the first ten pages with names and nothing in the code text boxes and the last ten pages with the codes but nothing in the name text boxes.

    I am at a loss as to why he does this. I was playing with the settings in the preferences, but nothing changes. I tried to select both the two text files and import at the same time.

    How do you work with several text boxes and several import of text file on a doicument? There are no extra spaces or something like that in my text files.

    I really don't want to have to link all text blocks - that will forever, but right now it's the only way I can get it to do what I want.

    Also, is there anyway to specify the font and the size of the text is important as? Because it keeps import as minion pro, even if the text boxes on the master are set to the correct font and size. Not a big deal though.

    Help, please! Any help is appreciated, thanks in advance!

    Ah, I think I misunderstood your original post and thought you wanted to do 10 badges per page. If it's only one, you need only a set of images. Same procedure for setting in place, but you have no need to screw anything or use the step and repaet to make copies.

    Place the file name in the frames of name and ID will add pages and then return to the first page and place the numbers. Just don't forget to put the bad slider in the space where the framework and to stay away from the guides (if you click on a guide, ID will ignore masters executives) and hold down the SHIFT key when you click.

  • How to store a DAQmx task properties effectively?

    Hello everyone and happy new year!

    I would like to be able to keep track of all the DAQmx task settings (and canals) in a file, regardless of the content of the DAQmx task / channel is. So far, the only way I've found is to use a task DAQmx / channel property nodes and treat every property possible. However, since they are so many properties, each being is not valid for any material or task / channel type, it's a really big job and I'm rather lazy

    So I ask here if someone has already dealt with THIS or have any idea?

    Hi Hillman,

    Thank you very much for the link. Related documents Silly me had neglected tdm... Your link is indeed very useful, as I do right now exactly the same way it's done the:

    • DAQmxTaskInfoQuery.vi
    • General info.VI DAQmx TEDS

    As part of the download in the link you gave.

    Exepted this code is much more readable than mine, so I guess I don't need to view my ugly code incomplete. Many things interresting, thank you very much. I'll be back if I have something better to give as a reference.

  • I use several DAQ assistant but it seems impossible...

    Hello world

    I'm on a project for some time.

    To summarize, I had 3 modules for the project: Anolog, digital, input resistance meter.

    My main program works, but now I have to connect with an excel file.

    I found an easy way of this solution, but now my problem is bigger. The fact is that I use my screws and screws with this how to link my data, but according to LabVIEW Sub, I can't, in the same program, do something in relation to 2 modules different. Obviously, each module works with a DAQ Assistant.

    To be more specific: I want to put the data from the 2 (thanks to the analogue of the module), and wire different sensors 1-> 0 or 0-> 1 (thanks to the digital module)

    And when I link 2 DAQ in the same file or 2 screws secondary who got 1 acquisition of data in entry of a measurement file, it does not work. The error that I can not launch the DAQ second after the first... so...

    I hope you understand my problem.

    You have a solution for this problem? Should I change a large part of my program to do this or is it just a small detail?

    Thank you in advance! I'm really disappointed-_ - I'm for several times... and I'm late for my project...

    Best regards.

    ML


  • How to me to work with Outlook 2016 and 10 windows iCloud?

    How to me to work with Outlook 2016 and 10 windows iCloud?

    1. uninstalled and reinstalled iCloud several times - no luck

    2 reinstalled Outlook 2016 - no luck

    3. the module removed and reinstalled only - no luck

    Help please... step by step would be appreciated.

    Hi xinggirl45,

    Thanks for your question.  Can you elaborate a little bit and let us know exactly what does not work?  The resources below provide some troubleshooting steps basic to work with Outlook and iCloud for Windows.

    Get help using Outlook with iCloud for Windows

    Take care.

  • How to define logical tristate using NOR-DAQ 6212 in c#

    Hello world

    I am very new to NOR & help each of you experts out there.

    As the subject says, I'm trying to set digital output at tristate DAQmx & c# channel. I found the link on the Tristate property, but I don't know how to use it. http://zone.NI.com/reference/en-XX/help/370473H-01/mstudiowebhelp/HTML/bd33b0d/

    Any help would be much appreciated!

    Thank you.

    Hi kasrus,

    You set the property using the following syntax (after creating your task):

    digitalWriteTask.DOChannels.All.Tristate = true;

    As help document states: "you must commit the task for this setting to take effect."  The help document also highlights when the value of property compared to a reading or writing.

    This refers to the status of task template DAQmx:

    State of task model

    http://zone.NI.com/reference/en-XX/help/370466AC-01/mxcncpts/taskstatemodel/

    Methods of configuration will move your task through this model of the State, but you can also control using the syntax in the article below:

    Check, committing, start and stop of NOR-DAQmx tasks programmatically

    http://zone.NI.com/reference/en-XX/help/370473H-01/mstudiowebhelp/HTML/verifycommitstartstopdaqtask/

    Kind regards

    Kyle S.

    Technical sales engineer

    National Instruments

    http://www.NI.com/support

  • How to protect the inductive tension peaks DAQ modules

    I just ordered the USB DAQ 9221 module. He reads voltages up to 60 volts. My loads are inductive. I have been using diodes to avoid the negative peaks. I used a scope on one of the inductive loads with a diode. I have a recorder-560 volts. Led TV type is better? If yes how can I specify a part? I don't want to blow the DAQ module.

    Thank you

    Philippe

    Philip,

    It depends on.  What is the source of your signal? What is the range of voltage and frequency of the desired signal? How it is coupled to the inductive loads? How fast are transients? The amount of energy they contain?  What kind of grounding circuits you have?

    The diodes are often good protectors.  TVS diodes are usually specified and evaluated for transients, then the conventional diodes are usually assessed BOF functions of rectification.  Some systems may require several protection devices chosen to complement each other.  I have seen systems with discharge gas, MOV, diodes and crowbars tubes.

    Lynn

  • NEITHER 9213 working with 9174 DAQ for reading of temperature

    Hello

    I use NI 9213 and DAQ-9174 to monitor the temperature. Without thermocouple wire connected, using NOR-DAQmx tasks, reading is 2.296334 K. When I use DAQmx Read (Analog DBL 1Chan 1Samp) .vi, reading is 1377.69.

    1. What is the good?

    2. why reading is not taken into account the room temperature which is around 26?

    3. do I need to do the calibration for NI9213 before using it?

    Thank you

    Ott

    Hi Ott,

    If you do not have a thermocouple attached to the 9213 module, the module just go read electric noises. This electrical noise has no physical relationship to the room temperature. When you do actually connect the thermocouple, be sure to configure the DAQmx task as a task of thermocouple to HAVE. Also be sure to select the correct thermocouple specifications (i.e. type of thermocouple).

    Here is a good article giving measures by thermocouple.

    Here is the acquisition of data getting started guide.

    Hope this helps,

    Chris G

  • DAQmx task Read DAQmx with sampling frequency of 10 Hz produced much too much data

    I have a simple configuration with a strain of channel 4 OR-9237 amp holds a carrier of series C of WLS - 9163 (wired ethernet mode) - Details probably does not matter.

    I used MAX to create a DAQmx task associated with which all four gauges samples.  The calendar setting is "Scan Loads" is continuous sampling, 2 k buffer (read samples) and 10 Hz rate.  I guess that this task would generate 40 data values per second - 10 for each channel.

    I have a simple loop of reading using DAQmx Read.vi that works always (without any stimulation time).  Playback is set to read all available data and then pump it into a table.
    In the attached example, I also added a few words of debugging to stop the loop after N iterations.

    As the loop is programmed with a 0.2 second period, I expect each pass of the loop to read about 8 samples or 2 samples per sensor.  Instead, I get hundreds each passage.  It's like reading has substituted the sampling frequency specified in the task of the unit.  I absolutely need data to be material to the rhythm.

    Where have I lost?

    Thanks Adnan,

    I changed your example I selected 'Strain gage' entry analog and then lowered the minimum and maximum thresholds to +-1-2.  What happens is that each other in the loop, I 2048 samples or zero samples.  The display flashes a whole line and then it clears any other past.

    In response to your second post, I understand that the loop cannot run quite right that I select.  I think that, but at a sampling frequency of 10 Hz, I have to sleep on the software side for nearly a minute before I built 2 K samples.

    I played with the frequency of sampling, assigning to various values from 0.1 to 10000Hz.  The behavior is the same until I approach the high rates where available samples remains to 2048-4096 sometimes, the display becomes continuous.

    Ahhh, Darn.  Yet another search was this link that points to the root of my confusion.  The 9237 can taste arbitrary rates using its internal clock.  Duoh!  I wish that the pilots are smart enough to warn you if there is a discrepancy between the selected sampling rate and capabilities of the device

  • SE AcceesViolationException NationalInstruments.DAQmx.Task.UnregisterAsyncWaitHandle

    Hello

    I use my own .net application which communicates with NationalInstruments.DaqMx.dll (version 9.7) in order to activate NiDaq in the following configuration:

    Chassis PXI-1033 at two locations PXI-6284, measure differential voltage. This app worked already for a few months and has been tested under high performance - high sampling rate and long hours, without no problems so far. Recently, we tried a new use case - short sessions (60 min) measures running in sample rate = 100 and samples per channel = 100 after a few iterations, we continue to get access violation exception:

    Exception info: System.AccessViolationException

    Battery:

    to NationalInstruments.DAQmx.Task.UnregisterAsyncWaitHandle (System.Threading.WaitHandle)

    at NationalInstruments.DAQmx.Internal.DaqAsyncResult.AsyncOpDone)

    at NationalInstruments.DAQmx.Internal.AnalogMultiChannelMemoryOptimizedMultiSampleReadAsyncResult.WorkItem (System.Object)

    at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context (System.Object)

    at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)

    at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)

    at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem)

    at System.Threading.ThreadPoolWorkQueue.Dispatch)

    at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback)

    Keeping the sampling rate 100, but his definition of samples per channel at 1000 seems to solve this problem.

    Can someone explain to me what is the cause of this exception?

    Thank you

    Hadas


  • Convert DAQmx task IDS in a string

    I'm using LabVIEW to perform a generation analog DAQmx and I call my LabVIEW of CVI code via a dll.  I want to make two separate calls, one to start a task DAQmx and one to stop the task, so I need to either:

    (1) move a task ID DAQmx CVI and then again to LV

    or

    (2) convert a string of the ID for the task, pass it to CVI and then back to LV and then convert back to a task ID in LabVIEW.

    I'm sure that option 2 is the easiest option, but I don't know how to convert back and forth between a string and a task ID DAQmx.  Can anyone help with this?

    Thank you

    Joe

    Nathand is correct, it's pretty easy convert from/to the task DAQMX and String.  The two below

    Hmmmm is note expected or a bug?

    Feedback probably need an expert of DAQmx to answer that - I think it might be related to level DAQmx tasks

  • DAQmx task: MAX or lvproj?

    Experts,

    What are the benefits to declare tasks DAQmx either in the lvproj or Max?

    My question because I'm calling a VI of TestStand test, and when the DAQmx task constant is declared in the project (lvproj) which holds the criterion VI, it does not perform properly, saying can't find the reference or something.

    If I change the DAQmx task to be a global task in MAX everything works as expected.

    What is the best practice to do this kind of things?

    Thank you very much

    LR2

    TestStand does currently not support execution of VIs a project. So unfortunately, we expect the behavior that you see where to call a VI that uses a DAQmx task defined in a project does not work. For now, if you do want to keep your configuration of the task outside the source code and you want to use these task for TestStand, you must store the Max.

    We are looking for by adding support for the performance of screw a project in a future version of TestStand.

    David Rohacek

    National Instruments

  • DAQmx task does not

    Problem Description :Hardware: PXI-8184 (chassis PXI-1042), PXI-6221 (slot 2 in chassis)Software: LV RT 8.5.1, DAQmx 8.7.1 (see MAX.jpg)Problem: Task does not function within program (CounterRead.jpg). I can run the task within MAX (MAX.jpg) while the program is running and I can see the counts. All other tasks work fine. I have eliminated everything else in myprogram except this task and it still doesn't function and I get no errors. Also tried putting the task directly in the main program to no avail. I've tried different types for the task (raw, Counter Dbl 1Samp, etc).Thanks.
    
    NI Software :  LabVIEW Real-Time  version 8.5.1NI Hardware :  PXI Controllers, Chassis, and MXI device PXI-8184Driver Version :  8.7.1OS :  Windows XP
    

    It was a mistake to boot! An event of default would erase the name of task... it's the same for another sub - VI for other tasks so I'm not that. But it works now that I've totally simplified the Subvi. Two other people have worked on it in front of me (newbees) so I have a lot of cleaning up to do.

    Thanks for all the answers and sorry it was something so simple. It took me a while to get back into the swing of debugging stuff RT.

Maybe you are looking for

  • How do you configure L7780 Mac wireless digital archiving?

    I have a L7780 wireless all-in-one. It has an IP of 192.168.1.2 (example) I have a Mac laptop under Leopard, whose IP (example) 192.168.1.3 No matter how I try, I can't get the L7780 do a digital archiving with the Mac... I actually got it to work on

  • iOS 9.2.1 new own iCloud backup does not work

    After updating iOS 9.2.1 and remove backup icloud to start with a clean, can't initialize and start a new backup. On tracking devices: -iPhone 6 sec more -iPad 2 Air 1. peripheral disconnection on iCloud, reboot device and new connection have no resu

  • HP Envy 700-529: hypervisor does not not on HP Envy 700-529

    Need to get virtualization running on my HP Envy 700 - 529 (bought on sale at BestBuy.ca) running Windows 10.  Have successfully installed all the object (I think), but get the following error when I try to commit to Hyper-v: https://www.dropbox.com/

  • docx without MS Office document generation

    Hello I'm trying to understand if it is possible to generate a .docx document or change a docx/docm without having MS Office installed. There is no library G pure lang who create docx documents? Thank you.

  • Wireless button not work (orange rest) after upgradation from windows 8

    the orange wifi light does not change to white light after upgrade to windows 8 windows edition OS Home premium. I don't use the pavilion dv6-7011tx laptop, my product. is. B0P39PA #ACJ this is very frustrating as theres no wifi as well as bluetooth