Now not DAQmx task correctly

Hello

I created a state machine structure that is designed to set up a number of different channels DAQmx data acquisition (the code with indication of analysis section is attached).

The first time I run this vi, I get a table containing the names of specified job in (with a first line empty), but subsequent executions raise an error that the name of the task is already specified, leading me to believe that the tasks are not properly shut down, but I don't know how to set up the fence vi the task in this case.

Also, in the State of the initialization, I placed an empty array that obviously gives me my first empty line, but if I withdraw this, he breaks the vi as one of the terminals of the enclosure is then unwired.

Anyone would be able to guide me to a more correct solution, please?

-dave

Purely given this example, here are a few things I would change:

Use a loop FOR instead of a while loop.  No point in the case of Initialize.  You want to use a shift register to add channels to your task.  It takes only a single task for thermocouples, a task for lubricating oil, etc.  See attachment for a quick example.

In this example, I think that your error comes from the fact that you create a 2D tasks table.  Each line must have the same number of items, and you get a bunch of NULL tasks.

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

  • 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

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

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

  • 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

  • A network cable is not plugged in correctly or may be broken - Y560

    Good morning guys!

    The issue now is to get my control.

    OS: Win 7 64 bit

    I see my network with red evil icon mark in the system tray... It is said no connection is available. But it's everywhere that I go, that he is saying the same thing.

    I guess the problem is with the network card does not.

     
    

    in devmgmt, I don't see any problems. Here, everything seems perfect. Get shot of evil he says:

    a network cable is not plugged in correctly or may be broken

    But the thing is I only connect through wireless... I connect like that.

    I have to update the latest version of the driver but no use.

    Could you help me!

    It is resolved.

    It has been disabled in the BIOS

    I spoke with 4 guys in here n Lenovo call center one of them might crack!

  • A network cable is not plugged in correctly or may be broken?

    My internet works fine sometimes but then sometimes it doesn't. And when I troubleshoot it say "a network cable is not plugged in correctly or may be broken. No idea what's wrong? Also all my other devices are fine, that only this laptop seems to have this disorder

    What is the make and model of your router?

    The problem occurs when you are in the same room as your router... or when there are several rooms by far?

    Problem could be caused by interference with wireless networks your neighbor's wireless.

    If you are comfortable setting in your router Wireless Setup, sign up for your router and change the channel. Use channels 1, 6 or 11.

    If you are looking for this word: inssider
    you will find a site that offers a free utility (inSSIDer for home) that can be installed on your computer in Windows 7 (there is also a version for Android... If you have an Android mobile phone.) With inSSIDer, you can see a graphical representation of all the signals of wireless networks in your location (that is, to the location of the device that is running inSSIDer) and which channel they use. You will see your wireless network (its force and channel), and if there are other nearby wireless networks on the same channel (and what are their strengths).

    inSSIDer can help you to choose a channel that has the least number of other wireless networks. But if you do want to use it, you can simply configure your router to use a different channel (different than he's using now) and see if that helps. You need not what whether for your laptop... just change the channel number of your router's wireless network.

    If you are able to change your router's wireless channel, then first of all sit in the same room as your router (as close to him as possible) and see if the problem occurs. Even if you encounter interference from your neighbor's wireless networks, when you are sitting next to your router... its signal should be strong enough to overcome any interference. So, if the problem still occurs when you're sitting next to the router, then change them channels most likely will not help (but if the problem goes away when you're sitting next to the router, then change them channels could help).

    Another thing to try is using your laptop on a wireless network (network of a friend, a public network, etc.). If the problem occurs when you use another network (and more sitting next to the router as you can), then change the channel will probably not help (but if problem disappears, could help to change the channel).

    There are a few other settings, you can try on your router, but first try the suggestions above to see if they help.

  • How to restore my toolbar at the top of the screen (not the task bar) lower.

    original title: I deleted my s toolbar at the top of the screen (not the task bar) below (incorrectly). one I want to go back, a search box on website, bookmarks etc. Please tell me how to find and reinstall. Thank you

    I am running windows vista. By chance, I deleted my toolbars at the top of the screen (not the task bar) lower. The I need back a site Web search box, bookmarks etc box Please can someone tell me how do I reinstall it?  I searched on through loads of the supposed help sections, but none don't tell me how to make this seem simply refer to the taskbar, which isn't what I need. Thank you

    Thanks for the help, however, I've sorted it now, I'm actually using Mozilla Firefox as my browser, had thought not that check! If have managed to reinstall the bar menu missing etc.

  • The Task Manager will not end task?

    Try to download a pc of a CD-ROM game, he doesn't answer so I went into the Task Manager to end the task.  However, now Manager tasks will not end task.  How what?

    Right-click on the task in the Task Manager, and then click go to process

    Select this process, and then click on end process

  • Videos in my card sd will not be imported correctly

    Hello, I tried to import videos from my sd card on my laptop and some of them will not be imported correctly. When I say it will not be imported correctly I average it says it imported, but when I click on the video screen is black and you can hear the sound in the video. Most of them imported fine but four have not up to now why is this and how to fix this? If anyone knows please tell me thanks!

    camera: sony alpha a5000

    I can view fine on the camera.

    My camera will not record anything without the sd card if it also helps.

    SD card: perfomance elite pny 16 GB

    Laptop: toshiba which has windows 8

    Sorry I don't know the model

    Dayana Hello,

     

    Thanks for posting in the Microsoft Community. I understand that you are unable to play the videos that you have imported from an SD card.

    To help you better, please answer a few questions.
    1. what player you use to play the file?
    2. What is the file format of the video files which you can't play?
    3 have you tried to play with different media player?
     

    If you use Windows Media Player, you can check if the file format of the music files are supported by Windows media player using the link below.

    Information on the types of media files that supports Windows Media Player
    http://support.Microsoft.com/kb/316992/en-us

    Note: If you have tried to play the file type is included in this table, the file might have been encoded with a codec that is not supported by Windows Media Player. If this is the case, Windows Media Player can not read the
    file.
     
    http://Windows.Microsoft.com/en-us/Windows/codecs-frequently-asked-questions#codecs-frequently-asked-questions=Windows-8
     
    If the file format is supported, you can try the following and see if it helps.
    Method 1:
    Run the troubleshooting in the Windows Media Player library.
    (a) press Windows + C set, click Search, and then click settings and then in the search box, type Troubleshooting.
    (b) click on programs.
    (c) then run convenience store to Windows media player library.

    Method 2:
    1. in order to determine what codec was used with a specific file, play the file in the player, if possible. When the file is playing, right-click the file in the library, and then click Properties.
    On the file tab, look at the sections of video codec and Audio codec.
    2 download and install Codecs by clicking on the PLAYER tab and check. To connect to the Internet and automatically download Codecs player
    3. configure the protocol settings on the Tools menu, click Options, and then click the network tab. In the Streaming protocols area, select all the check boxes Protocol. When connecting to a server running Windows Media Services, Windows Media Player tries to use all selected protocols.
     
    Hope the helps of information. Let us know if you need help with Windows related issues.
     
    Thank you.
  • Can not find the correct driver in Macbook - J4680c

    Hello!

    just install a print server on the network from my boss - netgearPS121v2.  everything is great with 2 Mac and a PC - everything can print, etc.

    all the macs print to print IP assistance and the appropriate driver.  for some reason, my boss pro macbook did not have the correct driver installed and all that is available to him is "HP Officejet J4680 series - Fax" that does not work.  I use the same macbook pro with the same system (10.6) and did not have a problem.  his machine was the Guinea pig for his assistant try to set up while on the phone with HP tech support.  (I was out of town and unable to install).  I have a feeling that this was an inadequate installation and hampered by technical support, try to fix it.

    any suggestions on how to completely uninstall the HP software so I can't completely re - install?

    Thank you!

    Steve

    Well Yes,.

    I guess that someone loaded the HP from the CD for the printer software (which is only 10.5 or earlier version).  Here's how to correct:

    Go to Applications/Hewlett Packard / click Uninstall HP
    Click on continue
    Highlight your device in the left pane
    Hold down the Ctrl and Opt Cmd and click on uninstall
    There will be a pop up that asks if you are sure you want to uninstall all hp software. (At this point, if you continue, all HP printers you have installed will need to be reinstalled)
    Click on continue and let it finish

    Now run a software update.

    Then, remove and reinstall the printer in System Preferences, Print & Fax.

    You do not have the software now since Snow Leopard as well print & scan drivers built-in. scan from Preview apps or Image Capture. Scan from the front panel of the printer does not work yet.

  • Error: Accounting information is not complete. Some required fields are not filled out correctly.

    Before I left to go on vacation, my Acrobat Pro XI worked perfectly. No hiccups, no errors, etc. Now that I'm back and I need to print a PDF in it, I constantly get an error message appear when I hit the "print" key.

    The accounting data are not complete. Some required fields are not filled out correctly.

    I don't know what this message means because I went through all imaginable areas in the menu printing, nothing helps. I checked tools, sign, comments, everything I can think of to try and see what the field is not filled correctly, but nothing fits. From now on, I can't print anything at all of Acrobat Pro and I really need to get this print for a meeting later today. So if someone could try to help, I appreciate it. Thank you.

    If the problem comes from the printer driver. While IT worked on my machine Friday, they have updated the driver and it automatically sets the posting to Enabled. Now that he is set to disabled, I can print without problem. So I guess it's fixed for now and if it comes back I know exactly what to look for.

  • Application of effects to a small section of a track in multitrack view, do not recordin automation correctly

    Hello!

    Automation of the effects of registration does not work correctly.

    According to Mulitrack, I want to apply effects sparingly to small sections of a track.

    I tried different modes (read, latch, touch and write).

    All I'm trying to do is make the delay effect turn off completely during the major part of the track, but come on certain words in this way in order to get a delay effect or an echo on specific words, but not the entire vocal track.

    Hearing record turn it on and off the effects, just not all the way I programmed.

    Hearing the effects on 1 or 2 seconds after I said, so of course, it does not affect the words that I want it lights.

    When I save the automation I get just as it should, but when I play it back, him do not where I turned it on, it does not turn on the effects for a second or so after I had said that she!

    I tried, I did go to the preferences and select "multitrack" and changed the "Automation optimizations" to try to make it work, nothing helps, I changed the time of correspondence unit automatic from 1 second to 0 seconds, up to 5 seconds... it is true that I do understand not these 'automation optimizations"but then I tried all types of different parameters.

    All I want to do is automate precisely to turn it on and off effects, for about 1 second at a time, to apply some delay to some track of voice of the th of a few words.

    Now, I know that I can go to change the view and go through the whole track highlighted the different words and not effects that apply to them, but shouldn't I make non-destructive in multi-track discovered through the use of Automation?

    If I have to go through the entire track, highlighting each word to apply the time, what is the best way: first save another copy of this file, so if I don't like the destructive changes the next day I can go back and restore the original file? What would be the best way to do it and this way wouldn't use much more space on the hard drive, I wouldn't have to duplicate the entire vocal tracks and save them under a different name?  What is the best way to do a work around if I can not automation works correctly?

    It would be great if someone could guide me through the best way to do it, or better yet just tell me all the ways to accomplish what I'm doing.

    THANK YOU VERY MUCH FOR READING!

    Use the whirlpool-downs in the control section of the network to make the tracks of individual automation visible, simply slide the rubber bands (which will display your attempts to get this right to be quite misplaced, I expect) for exactly where you want them to be. Written by faders Automation has never been very good to place effects on individual words, FWIW, but using the strips of rubber and a mouse, you can usually get this spot - we.

Maybe you are looking for