Copying .vis with DAQmx tasks to a new PC

I have to copy .vis to new machines on a regular basis.  When I copy .vis that have DAQmx tasks, the tasks do not copy over.  (i.e. The label is there, but there is no such task on the new machine).  Is there a way to incorporate the task information IN THE .VI such that copying the .vi to a new PC does not require digging through the code to find all the DAQmx tasks to manually recreate them?
Thanks,
Sean

Sean,
You have a couple of options.  You can export your DAQmx settings from MAX and import them on the new machine.  This will transfer tasks created in MAX to another machine.
You can also create tasks programatically in your vi.  Most of the DAQmx examples that ship with NI use this method.  The 'create virtual channel.vi' creates a task by default.  There is also an entire subpalette devoted to Task Config/Ctrl the DAQmx palette. 

Similar Messages

  • Can read TEDS in MAX but not with DAQmx VIs

    Hi,
    I have a cdaq 9181 with a 9234 accelerometer module.  I have 3 teds equipped accelerometers connected to ai0, ai1, and ai2 repectively.  In MAX, when I reserve the chassis I can read all three teds, no errors.  When I do the same thing in labview (ie reserve the chassis, create a daqmx task, associate teds data with each physical channel, all with daqmx VIs) I can only read two out of three teds.  The third one throws a "no teds sensor detected" error.  This code has been in use for about four months now, though I just rewrote the calling VIs, and hasn't displayed this problem.  I've attached a snippet of the task building VI for reference.
    Any ideas what's going on?
    Thanks.
    Using LV2012 and MAX 5.3.1 running on Windows 7 32 bit.
    CLAD
    Attachments:
    Build Daq Task Snippet.png ‏58 KB

    Nope.  That's a delete from array, length 1, index 3.
    In any case, I eliminated that block since the string array wired to the for loop controls how many devices the VI attempts to configure.  Same result, verified it was trying to configure ai2.  Here's the updated snippet:
    CLAD
    Attachments:
    Build Daq Task Snippet v2.png ‏54 KB

  • Multiple tasks with daqmx

    Hello,
    I am currently working on a Senior Design Project where I have to measure torque, RPM, pressure and temperature.  I am using strain gages, a Hall Effect Sensor, pressure sensor and thermocouples to obtain these readings.  A myDAQ collects the RPM and pressure readings while a cDAQ collects the torque and temperature readings with the NI 9237 and NI 9211 modules.  I created LabVIEW VIs for each sensor and they work.  The problem I am having is when I try create a VI with DAQmx that reads all these sensor values simultaneously.  The VI that I have attached randomly displays one of the measurements while all the other measurements remain blank.  How should I edit my VI so I can display all my readings at once?
    Solved!
    Go to Solution.
    Attachments:
    SD.vi ‏87 KB

    You can form all of your cDAQ readings into a single DAQmx task.  Do the same for the myDAQ channels.  On the read side, you just read multiple channels.  You can then use the Array Index to separate your channel data and do whatever calculations you need.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Multichannel task.png ‏40 KB

  • How can I copy songs with metadata (added in iTunes) from my PC to my new iMac?

    I have iTunes 12.0.1 on my Windows PC. I'm about to get a new iMac (hooray!) and I'm beginning the process of transferring everything on my PC to my Mac. I've got all the documents, pictures, files, etc. covered, but now I have to make a copy of all of my music.
    Most of the music in my iTunes library is not bought through the iTunes Store (I download most of my songs from the Internet). Then, after saving the downloaded song to my computer, I go into iTunes on my computer and add the song. I also add metadata like artist, album, genre, album artwork, etc. to the song in iTunes. What concerns me is that only the songs in iTunes have this metadata: the original downloaded files I saved onto my computer don't have any metadata.
    I really don't want to have to go through the long and tedious process of adding artist/album names, genre, etc. to every single song in my iTunes library on my new iMac. How can I copy songs with metadata (added in iTunes) from my PC to my new iMac?
    Thank you so much for any help!

    Hello! I'd like to learn more about Home Sharing. To do this, would both my PC (which I hope to get rid of) and my new iMac need to be plugged in?
    Also, after Home Sharing with the old PC is initiated, I understand that all my songs would appear on my iMac. Is there a way to copy all of these (with album artwork, name, artist, etc.) directly to the iMac's hard drive and then disconnect home sharing so I can get rid of my PC?
    Thank you!

  • I have copied my iTunes library onto a new computer, but when I play back the songs there seems to be random "miss" or "drop out".  No probs with old computer, just the new one.  I'm onto my third new computer - same problem.  Any suggestions please?

    I have copied my iTunes library onto a new computer, but when I play back the songs using the new computer, there seems to be random "miss" or "drop out" during play back, similar to a small scratch on a vinyl record.  Although when I play the same song over again, the "miss" occurs in a different location during the song.  No probs with old computer, just the new one.  I'm onto my third new computer - same problem.  Any suggestions please?

    You don't say which version of iTunes you are using, but the symptoms you describe have been encountered by some users with the 64-bit version of iTunes 12.1.
    There is an alternative version for 64-bit editions of Windows here:
    iTunes 12.1 for Windows (64-bit — for older video cards)
    that seems to address the most of the playback issues that some users have been reporting with the full 64-bit version of 12.1.0.77 - including problems with Bluetooth speakers where either sound is degraded or completely absent.  The alternative installer here is the same architecture as most previous "64-bit" versions of iTunes, i.e., a 32-bit application with a 64-bit installer.  The "for older video cards" label appears to be something of a misnomer as some people have reported that this corrects problems found on current / high-spec systems.
    Some users have reported that after installing this alternative version it is necessary to adjust the "Play audio using" selection (normally to "Direct Sound" rather than "Windows Audio Session", though this may vary based on your audio hardware/drivers) in Edit > Preferences > Playback to restore glitch-free audio (one part of the reported symptoms is that the "Direct Sound" choice isn't available, usually in Windows 8).  It may also be necessary to ensure that your Bluetooth speakers are active and selected as the default audio device before you run iTunes.
    If this doesn't address the issue, you may want to think about reverting to iTunes 12.0 - see Turingtest2's notes on Troubleshooting issues with iTunes for Windows updates for steps needed to completely remove all installed iTunes components, and for links to the 12.0 installers.

  • Creating a new DAQmx task after building to EXE

    Should I be able to create a new DAQmx Task while running a VI containing the DAQmx Task control that was built as an EXE?
    I can't but would like to know if there is a work around or if I am doing something wrong. See the attached screen shots.
    When I am not running the VI, I can right click the Task front panel control and select "New NI-DAQmx Task" -> "Project" or "MAX", but when it is running or I am using the VI built as an EXE (running or not) I can't. In the EXE I am able to click the Task drop down box -> "Browse..." -> "Create New..." -> "MAX Task" but nothing happens when I click on "MAX Task".
    I would like to be able to create a new task in the software to use different channels and signal types on the fly. The goal is to build a program setup similiar Signal Express but include some on off controls for some machinery and scale it down and customize it so that it is easier to show people how to use it.
    Thanks
    Attachments:
    block diagram.png ‏30 KB
    front panel.png ‏25 KB
    exe front panel.png ‏26 KB

    When running your exe, you'll be able to select from tasks created in MAX.  Instead of right clicking on the task control, try creating the tasks you want directly in MAX (under Data Neighborhood right click on DI-DAQmx Tasks to create a new one).  Tasks that you've saved in MAX will be selectable in the DAQmx Task Name control.

  • Two Counter channels in one task ID with DAQmx?

    I am writing a program which will control the movement of a gimble on the X and Y axis with servo motors while recieving
    position feed back from two encoders on those axis. I am using a 6251M series card's AO to control the movement
    of the gimble, while running the encoders into a 6602 for position. When setting up my task ID in MAX I noticed I could add
    both ctr0 and ctr1 to the task ID, but  when I tried read the counters with that task I got an error in Labview and with the
    test function in MAX  saying I need to use a multichannel read. I can not find a multichannel read under the counter
    section of my DAQmx read, and was wondering if this is even possible. I am used to programming with Traditional DAQ
    and know you have to keep separate counter task ID's, but having bought an M series card and having to use DAQmx I
    was wanting to know if I could combine them.
    Thanks

    You can have multiple channels in a single task, but those channels all
    have to be of the same type.  You can have analog inputs together
    with other analog inputs, but cannot combine digital inputs/outputs,
    analog outputs or counter tasks with that analog input task.
    Once you pair only like tasks together then you shouldn't run into any more issues like this.
    Best of luck,
    Otis
    Training and Certification
    Product Support Engineer
    National Instruments

  • Error when starting an analog read task with DAQmx 8.5 while 8.0 works

    I am programing a measurement application with Borland C++ Builder 6.
    Problem: Every time when I try to start an analog input task with the DAQmxStartTask() command of DAQmx 8.5 the program execution is interrupted and the error message "Invalid floating point operation" is given out. This problem does not occur with DAQmx 8.0 !

    Hello Johannes,
    the error occurs every time, when I try to start an analog voltage input task either with a simulated or a real device (PXI-4472). Changing any of the measurement parameters did not have any effect. I also tried one of the C-source code examples, which came with the original NI-documentation of the DAQmx 8.5 driver, resulting also in the same error.
    However, starting a counter task with a simulated PXI-6601 device worked without any problems !
    Do you have any ideas ?
    Regards,
    Thomas

  • Examples for good programming practice with multiple DAQmx tasks

    I'm writing a program to continuously log data from 8 counters, 8 encoders, and 8 voltages. The proof of concept VI with a single counter was simple and elegant, but scaling up to all signals resulted in a wiring mess. I've been working through the Labview Core courses, and am currently on Core 3. I still haven't come across a discussion on how to work with multiple DAQmx tasks without making a mess of the block diagram. Can anyone point me in the right direction?
    Also, say I have a state machine that has a configure, idle, and logging states. I need to set the initial values of the encoders during configuration, and keep up with their changes while in the idle state so I have appropriate starting values when entering the logging state. Can anyone point to an example that shows how this might be accomplished?
    Thanks

    I'm very familiar with AE's/Functional Globals - but I have struggled in the past with handling multiple DAQmx tasks - particularly when you're using multiple devices and using different types of measurements which require seperate tasks/handling (e.g. such as thermocouples which require extra compensation).
    I'm not even sure I know whare the requirements are for needing multiple tasks - I know you can need multiple tasks for a single device if the type of measurement is different but can you share an Analogue Input task amongst multiple devices?
    I think in hindsight (and without too much thought now) it looks like a good case for Object Oriented LabVIEW - with a base DAQmx class (initialise, configure, start, acquire, stop, close etc.) and then child classes for each type of measurement (with one task associated with each - and private data unique to that specific class). You then hold an array of objects (one for each task) and iterate through each one with dynamic despatch to get the data.
    I don't know your particular experience level of using LabVIEW (and as such, OO may not be appropriate) - but as a wider discussion of 'best practice' it seems like an appropriate method I would use going forward.
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • Hi guys n girls. How do you copy a whole table to create a new table with all cell sizes in tact? Thanks for your help. Jason.

    Hi guys n girls. How do you copy a whole table to create a new table with all cell sizes in tact? Thanks for your help. Jason.
    when you copy n paste into a new table, all the cell sizes are changed.
    is there a way to put in a new table from your templates into an existing file, different to the standard very basic ones in insert table.
    I look forward to your answers.  Your help is very much appreciated.
    Also how do you search for question answers already written in this support area please.

    Hi Jason,
    In Numbers 3, you can select a whole table by clicking once in the table to make it active, then click once on the "bull's eye" at the top left.
    Now copy and paste. All formatting (and any cell content) is pasted intact. In Numbers 2.3 (Numbers '09) it is a little different for selecting a whole table. But I won't go into that unless you are using Numbers '09. Please reply.
    I don't like the look of the tables in Insert Table. I keep custom tables in My Templates. I have set Numbers > Preferences > General > For New Documents > Use template: (name of my favourite custom template)
    That opens when I launch Numbers, or ask for a new document (command n). Note that if you follow this preference setting, then Menu > File > New From Template Chooser (for another template) requires you to hold down the option key in that menu.
    Regards,
    Ian.
    Message was edited by: Yellowbox. All formatting (and any cell content) is pasted intact.

  • I need to copy audio files and projects from logic to an external hard as my MBPis nearly full and my external hard drive has packed up with all my files on it, any suggestions on how do I copy 200GB from my MBP to a new external HD

    I Use logic and back my audio file and projects on an external HD ,this has now packed up . I have all the files in the MBP , but need to copy them to a new external HD, I have only 10GB left on my machine , how do I copy 200GB from my machine to a new External HD.
    any helpful full advice would be appreciated.
    angus

    Yes, just drag and drop them into the drive..
    How long will it take? Hard to say without knowing the type and speed of the drives in question.. and even then it's hard to estimate... but does time really matter?
    The fact you only have 10 Gigs left will/may slow the process down but it wont/shouldn't stop it...
    If needed.. just drag and drop some of the files at a time.. not all of them.
    Remember that copying files doesn't delete them from the original drive... You will still need to delete them yourself after they are copied over and empty the trash....
    However....
    When you saved these projects in Logic (Pro X?) did you save them using the include audio files option?
    If not, then when you move the audio files used in these projects... Logic will not know where they are to reload them........ and that will cause you issues.
    So.. if you didn't...
    I would use this method instead...
    Logic Pro X: Move, copy, and convert audio files

  • How to replace a sub vi that is used in many main VIs with another sub vi under a different file name without repeating the replace vi operation?

    Hello,
    I am converting a LV5.1.1 llb to LV7.1 that contains serial sub VIs ("Serial Port Read.vi", "Serial Port Write.vi", and "Bytes at Serial Port.vi") that need to be replaced with the newer VISA serial sub VIs ("VISA Read.vi", "VISA Write.vi", and "VISA Bytes at Serial Port.vi").  The older serial sub VIs are used on many different main VIs under the same llb, and I want to be able to replace all the older serial sub VIs with the equivalent VISA sub VIs in LV7.1 without repeating the same replace VI task on each main VI.  Please advise if it can be done in LV7.1 and how?
    Thank you so much for your help,
    Valen

    If you have the old serial VIs in the llb, make a copy of it and delete them. Then, when you open the top level VI in 7.1, LabVIEW should replace them with compatibility VIs of the same name but using VISA.

  • DAQmx task does not start on RT target

    I cannot programmically start a DAQmx task on an RT target.  The PXI-8140RT controller hangs on either the DAQmx Start Task.vi, DAQmx Read.vi, or the DAQmx Create Timing Source.vi, depending on the level of complexity I try to use.  Any suggestions on what would cause this?
    The vi running on the target is based upon the wizard created target-multi rate-variables-fileIO.vi.  I cannot stop the vi once it hangs; I can only close it.  I have to restart the controller to reestablish communication.    I have tried DAQmx tasks created using MAX, created programmically, and created from a front panel task control.  The tasks test ok using the MAX or the DAQ Assistant.  For now I am trying to measure one RTD channel. 
    The RT system consists of the PXI-8140RT,  a PXI-6259 M-series controlling a SCXI chassis, and the SCXI-1102B and SCXI-1581 pair capable of measuring 32 RTD's.  There are two other modules in the SCXI chassis which aren't being used yet; a SCXI-1162HV and SCXI-1163-R.  The target and host are running LV Real-Time 8.01 and NI-VISA 3.5.  The host has NI-DAQmx 8.0.1f while the target has V8.0.0, apparently the lastest available.

    The VI didn't generate an error message.  Nor was there a message in the RT error log.  I guess it froze before an error could be generated.  I used the DAQ Assistant Express vi in a totally new project.  I have since converted this to code and added features to make it more like my original project.  The new project is working.  I suspect something went wrong with the original project.  I've tried to edit the original project to more closely match the new one and it still dies.  Guess it's time to put it to bed.

  • Reset Ni-DAQmx tasks

    Hi,
    How do you reset the NI-DAQMx tasks in dasylablab 12.0?
    I have tried to do a reset in MAX but the tasks doesn´t disappear in Dasylab, even after I removed Dasylab an installed it again. I am using the Task timebase several places in my worksheet, and if i have made changes in MAX the only place it works is at the input module, not in generators ect.
    As you can see in the attached files there are more than one task with the same name, and after creating the "Noise test" task in MAX, synch Dasylab with MAX, the generator module still selects the wrong task as timebase.
    Rgds.
    Per Skov
    Attachments:
    Time base new task - generator.pdf ‏14 KB
    Time base - generator.pdf ‏14 KB

    It is not possible to copy the worksheet because i am using a lot of black boxes, so that options can´t be used.
    I have tried saving as DSA, and it was quite easy to locate the time base settings, and I succesfully removed the unwanted time bases.
    After editing I saved the file again (same name), and loaded it into Dasylab. The worksheet worked, but it had lost information about several global strings.
    The missing strings are all calculated ones like this one:
    strfmt ( ${VDMEAN}, 5, 2) +";"+strfmt ( ${VDMIN}, 5, 2)+";"+strfmt ( ${VDMAX}, 5, 2)+";"+strfmt ( ${VDSTD}, 5, 2)
    After editing the DSA file and loading it into Dasylab it looks like this:
    'strfmt ( ${VDMEAN}, 5, 2) +"
    In the DSA file it is still:
    Expression[42] = 'strfmt ( ${VDMEAN}, 5, 2) +";"+strfmt ( ${VDMIN}, 5, 2)+";"+strfmt ( ${VDMAX}, 5, 2)+";"+strfmt ( ${VDSTD}, 5, 2)';
    Apparently It is the quotation marks that confuses Dasylab when loading DSA files. The solution is to export the global strings/variables from the original worksheet, do the edit of the DSA file load it into Dasylab and then import the strings/variables, save the worksheet with an new name.
    Problem solved, but I think that it should be possible to remove unwanted tasks directly in Dasylab.
    Thank you for you help:-)

  • Data collection was switched from an AI Config task writing to an hsdl file to synchronized DAQmx tasks logging to TDMS files. Why are different readings produced for the same test?

    A software application was developed to collect and process readings from capacitance sensors and a tachometer in a running spin rig. The sensors were connected to an Aerogate Model HP-04 H1 Band Preamp connected to an NI PXI-6115. The sensors were read using AI Config and AI Start VIs. The data was saved to a file using hsdlConfig and hsdlFileWriter VIs. In order to add the capability of collecting synchronized data from two Eddy Current Position sensors in addition to the existing sensors, which will be connected to a BNC-2144 connected to an NI PXI-4495, the AI and HSDL VIs were replaced with DAQmx VIs logging to TDMS. When running identical tests, the new file format (TDMS) produces reads that are higher and inconsistent with the readings from the older file format (HSDL).
    The main VIs are SpinLab 2.4 and SpinLab 3.8 in folders "SpinLab old format" and "Spinlab 3.8" respectfully. SpinLab 3.8 requires the Sound and Vibration suite to run correctly, but it is used after the part that is causing the problem. The problem is occuring during data collection in the Logger segment of code or during processing in the Reader/Converter segment of code. I could send the readings from the identical tests if they would be helpful, but the data takes up approximately 500 MB.
    Attachments:
    SpinLab 3.8.zip ‏1509 KB
    SpinLab 2.4.zip ‏3753 KB
    SpinLab Screenshots.doc ‏795 KB

    First of all, how different is the data?  You say that the reads are higher and inconsistent.  How much higher?  Is every point inconsistent, or is it just parts of your file?  If it's just in parts of the file, does there seem to be a consistent pattern as to when the data is different?
    Secondly, here are a couple things to try:
    Currently, you are not calling DAQmx Stop Task outside of the loop; you're just calling DAQmx Clear Task.  This means that if there were any errors that occured in the logging thread, you might not be getting them (as DAQmx Clear Task clears outstanding errors within the task).  Add a DAQmx Stop Task before DAQmx Clear Task to make sure that you're not missing an error.
    Try "Log and Read" mode.  "Log and Read" is probably going to be fast enough for your application (as it's pretty fast), so you might just try it and see if you get any different result.  All that you would need to do is change the enum to "Log and Read", then add a DAQmx Read in the loop (you can just use Raw format since you don't care about the output).  I'd recommend that you read in even multiples of the sector size (normally 512) for optimal performance.  For example, your rate is 1MHz, perhaps read in sizes of 122880 samples per channel (something like 1/8 of the buffer size rounded down to the nearest multiple of 4096).  Note: This is a troubleshooting step to try and narrow down the problem.
    Finally, how confident are you in the results from the previous HSDL test?  Which readings make more sense?  I look forward to hearing more detail about how the data is inconsistent (all data, how different, any patterns).  As well, I'll be looking forward to hearing the result of test #2 above.
    Thanks,
    Andy McRorie
    NI R&D

Maybe you are looking for

  • Create a pdf in flex

    Hi, i wanna create a pdf or a doc in flex builder for a website, i was watching a tutorial on XPAAJ but they dont have it anymore. i also tried fpdf where u create a pdf using php, but for some reason when i pass the data it doesnt create it. Any ide

  • Reg:Arrangement of rows in UI table as our requirement....

    Hi all, In my Project I have an UI Table in which it is having 5 rows in that i have a column having Dropdown by keys and it will hold 5 possible values (Ex:Coverage type1,coverage type2.......coverage type5) and in which we will select two rows. wen

  • My iPod broke, what do I do now?

    Is it possible to get protection services after your iPod's already broken? If not, how do I get it repaired? I'm willing to pay.

  • Service Procurement in EBP

    Hi, In extended classic scenario SRM 4.0 / R/3 ECC5.0 for Service Procurement :- 1.I have replicated Services from R/3 backend and Service Product Cat is also maintained in all place in IMG and as well in Org plan. But when user is creating shopping

  • J4580 wont print black

    I have a HP j4580 Officejet All-In-One running Windows XP (32 bit). My j4580 prints grey rather than black. Black is of poor quality. I found that thread on HPs questions but none of thier solutions have worked. I downloaded the software for this sys