Error with 2 Daq assistant

Hello
Another noob joining the community. Here is my question.
What am i doing wrong? I use 2 Daq assistants on the NI9401 module this is for digital input and output. I use it for generating 2 signals. If i test it with 1 it works but if i go to 2 or more it fails. This is the error i get . I have also added the program as an attachment.
Thanks in advance.
Solved!
Go to Solution.

Hello,
That error means that the DIO task is reserved and cannot be obtained by one of the DAQ assistants. There is actually a nice example program on what you want to do. It can be found here:
https://decibel.ni.com/content/docs/DOC-11632
This example does not use the DAQ Assistasnt but the DAQmx API VIs (which the DAQ Assistant is using also anyway). If the order is not important (and since the these DIO tasks are software timed it is probably not an issue you can also choose to use the error cluster from one DAQ assistant and wire it to the other (see attached VI). Doing it that way you force one DAQ task to wait for the other one to finish. In that way they cannot run at the same time preventing for the error to happen.
regards,
Rik Prins, CLD
Applications Engineering Specialist Northern Europe, National Instruments
Please tip your answer providers with kudos.
Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system,
or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject
to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense
Attachments:
2 Daq assistant generating error (3).vi ‏169 KB

Similar Messages

  • How to properly read data from one DAQ-assistant and write simultaneously with another DAQ-assistant (which is inside a loop)

    Hello.
    I'm a newbie working on my Master's thesis conserning a project that is based on old G-code made by another newbie so bear with me.
    I need to create a sequance of output controls. For this I'm using a for loop that eventually creates two triangular ramps during a period of 90 seconds. I've confirmed that this function works properly by measuring the actual output of the DAQ-decice (NI USB 6353).
    The problem is the following: During this controll-cycle I need to simultanously collect data from the same DAQ-device. At this point there is only one DAQ-assistant output-block in the main loop of the program and all the signals are derived from it to where they are needed.There is a case-structure (the bottom case structure in the picture) that contains the functions needed to collect the data during the test cycle. However these two actions, outputting data and inputting data, are not synchronized in any way which may be the reason why I get the 200279 error or alternatively the 200284 error during the test cycle. I've tried changing the sample rate, buffer size and the timeout time as adviced but nothing seems to help.
    What would be the simplest way to solve this problem?
    Help is greatly appreciated!
    Attachments:
    problem.jpg ‏206 KB

    Thanks for quick reply.
    However, I did try it (see the picture) but I still have a problem: I only get 100 samples / channel during the test sequence (all from the first seconds of the sequence) in total even though I've set the data aqcuiring DAQ-assistant as "continous" and "samples to read = 95k" and rate is 1000Hz.
    Edit.
    And lastly, I have trouble adding this "extra" DAQ-assistant to the vi. because I get an error about a resource (The 6353) being reserved, even though I connected a false constant to the "STOP" -input of the main DAQ-assistant.
    Attachments:
    is_this_what_you_meant.jpg ‏212 KB

  • Error 200279 Continuous DAQ Assistant

    I am getting Error 200279 while running my VI.  I am using a DAQ assistant with four channels set to Continuous Samples with a rate of 1K and Samples to Read at 100.  The error comes up at different times.  It can happen right after starting the vi or it has happened as late as 2 1/2 hours of running the vi.  I added the DAQmx property node to observe the number of available samples per channel.  The number of available samples is stays at 0 but then will spike in a few seconds until it goes over 10,000 available samples and the error pops up.
    I'm at a loss as to what might be causing the sudden spike of samples because the program does the same calculations each iteration of the loops.  Therefore, I don't believe the program is running to slow to read the samples.
    Thanks for the help,
    Tony

    I am writing to a file called datalog.csv.  At first I thought it might have been the cause.  When I got the vi, the data is recorded to datalog.csv at a period determined by an input, Sample Rate.  The fastest I have written to the file was 20 ms (50 times a second) which meant the program was opening, writing to, and closing datalog.csv 50 times a second.  So I did change how the data was saved by moving data writing to a separate loop and by only opening the closing the file once. but I still got the error, so I changed the program back to the way it was.
    a little bit of input on the vi.  it is for controlling a tesile strength tester.  it controls the amount of tension is being pulled on a powerline cable.  the controller in the vi is the bottom loop.  writing to datalog and the data acquisition are located in the top loop.
    Thanks
    Attachments:
    cabletest_v2_input_test.vi ‏747 KB

  • Error when placing DAQ Assistant..

    Hi,
    When I place a DAQ Assistant to a Block diagram, an error as shown in the attachment(Japanese) displays.
    For your reference, here is the English translation.
    "--------------------------- [ Engine was not found. ] LabVIEW ---------------------------
    LabVIEW run time LVBrokerAux71 is a version. 7.1 (or compatible version) LabVIEW run time Engine is required. For solving this problem, please contact the manufacturer of LVBrokerAux71.
    ---------------------------OK --------------------------- "
    What I have to do to avoid this error and to use Data Acquisition easily?
    NB: I am using Japanese version of LabVIEW
    Thanks in Advance
    Aneesh.

    Hi,
    Have you installed the DAQ driver. If not, then you can find it for your particular device at thissite. If you have installed DAQ, make sure it is the most up to date driver. This broker file is a part of the driver install, and it should be in this directory:
    C:\Program Files\National Instruments\Shared\LabVIEW Broker
    I hope this helps. Have a Great Day!
    George

  • Can't download DW5.5. Error with Adobe Download Assistant

    I am getting error 100 with the Adobe Download Assistant (ADA). The log is below. IE can connect to https://www.adobe.com/cfusion/flex2gateway so why is ADA having problem? I wish Adobe didn't take away the direct download links. Searching the forums it seems lots of people are having problems with iADA and it must be causing support headache for Adobe.
    My suggestion is for people who know what they're doing, provide the direct links. For people who don't know what to do after the download or have slow connection, they can use ADA.
    6/27/2011 12:09:52.332 [ERROR] handleLoginFault - (mx.rpc::Fault)#0
      content = (Object)#1
      errorID = 0
      faultCode = "Client.Error.MessageSend"
      faultDetail = "Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'https://www.adobe.com/cfusion/flex2gateway/'"
      faultString = "Send failed"
      message = "faultCode:Client.Error.MessageSend faultString:'Send failed' faultDetail:'Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'https://www.adobe.com/cfusion/flex2gateway/''"
      name = "Error"
      rootCause = (mx.messaging.events::ChannelFaultEvent)#2
        bubbles = false
        cancelable = false
        channel = (mx.messaging.channels::SecureAMFChannel)#3
          authenticated = false
          channelSets = (Array)#4
          connected = false
          connectTimeout = -1
          enableSmallMessages = true
          endpoint = "https://www.adobe.com/cfusion/flex2gateway/"
          failoverURIs = (Array)#5
          id = (null)
          mpiEnabled = false
          netConnection = (flash.net::NetConnection)#6
            client = (mx.messaging.channels::SecureAMFChannel)#3
            connected = false
            maxPeerConnections = 8
            objectEncoding = 3
            proxyType = "none"
            uri = "https://www.adobe.com/cfusion/flex2gateway/"
          piggybackingEnabled = false
          polling = false
          pollingEnabled = true
          pollingInterval = 3000
          protocol = "https"
          reconnecting = false
          recordMessageSizes = false
          recordMessageTimes = false
          requestTimeout = -1
          uri = "https://www.adobe.com/cfusion/flex2gateway/"
          url = "https://www.adobe.com/cfusion/flex2gateway/"
          useSmallMessages = false
        channelId = (null)
        connected = false
        currentTarget = (mx.messaging.channels::SecureAMFChannel)#3
        eventPhase = 2
        faultCode = "Channel.Connect.Failed"
        faultDetail = "NetConnection.Call.Failed: HTTP: Failed: url: 'https://www.adobe.com/cfusion/flex2gateway/'"
        faultString = "error"
        reconnecting = false
        rejected = false
        rootCause = (Object)#7
          code = "NetConnection.Call.Failed"
          description = "HTTP: Failed"
          details = "https://www.adobe.com/cfusion/flex2gateway/"
          level = "error"
        target = (mx.messaging.channels::SecureAMFChannel)#3
        type = "channelFault"

    abdu wrote:
    The Assistant is a Windows application which I expect it will download and install DW for me.  How is a browser involved in this scenario?
    i don't have any of the CS products installed and the cleaner didn't have any work to do.
    Sorry, I thought the Cleaner would do it.  Did another search and found these instructions to remove the download manager:
    http://kb2.adobe.com/cps/400/kb400533.html
    The browser is involved because it runs as a plugin of the browser.  Plugins are different for the browsers.  IE typically runs through ActiveX whereas other browsers run through a java enabled version.  By trying the download in another browser you can rule out where the problem lies.  Otherwise, I feel your only solution is to get in touch with Adobe support because this is a user-to-user community and there won't be much more help than KB articles.  Also with Adobe email support you can email them log files to look at.  It's along the process and will explain as you go.

  • How do I fix errors with the daq being "reserved"?

    I'm trying to read from the DAQ in a program, and in the program there is a large while loop that runs two smaller while loops. The smaller ones exit when a value read from the DAQ is a voltage higher than 1 volt. When I had only one smaller loop, I was able to read the values just fine, and It would exit as expected, but when I added a second, almost duplicate of the first loop, I began to get errors saying that the device was reserved and now niether loop can properly detect the value comming in from the DAQ.
    How can I change the properties of the task or the read function so that it will not be "reserved"?
    Thanks

    To read teh data that is being acquired inside a while loop, You will have to pass data using a global variable
    use a parallel loop and a global vatriable
    look at attached example
    Regards
    Dev
    Attachments:
    pass numeric.llb ‏25 KB

  • ERROR WITH ITUNES SETUP ASSISTANT

    My iTunes got corrupted and I had to delete and re-install, when I did that I now get the Setup assistant every time I click on iTunes. I attempted going to my preferences to see if there was anyway to remove but unable to locate. Also, any changes I make under my preferences such as the file path gets reset whenever I close out of iTunes and re-open. Please help

    I'm having this problem also. I tried following the instruction in the post:
    http://discussions.apple.com/thread.jspa?messageID=7973312&#7973312
    however, I stopped short of reimporting all my music as AirForceEngineer did.
    In the end, I couldn't get past the setup assistant.
    Still need a solution.
    Thanks.

  • How to deal with the Error-89130 about the DAQ assistant?

    Once prss the "test" button of the DAQ assistant, the "Error-89130 occurred at DAQ Assistant" show up. It`s no doublt that the labview programme with a DAQ assistant  can`t be run and instead  the " Error-88303 occurred at DAQMx star Task Vi:1" or " Error-88304..." show up while other labview programme without DAQ assistant can run corrrectly. I have reseted or reinstalled the DAQmx, but it didn`t work.  Any other ideas for troubleshooting this? Thanks

    Please refer to this KB, and see whether it works. If problem also exists, please tell the DAQmx version and the DAQ card name.
    Haifeng Xu
    NISH AE

  • There are no inputs or outputs on the DAQ assistant to connect to

    Hi everybody,
    I am new to labview and have run into some difficulties with the DAQ assistant.  I am running labview v8.0, NI-DAQmx v8.7.1 and  have a PCI-6224 DAQ installed.  It seems that when ever I drop the DAQ assistant (the instrument assistant, and the simulated DAQ has the same issue) onto the block diagram, and configure it, there are no inputs or output which I can wire a control or indiactor to.  Is there a step that I am missing somewhere? 
    Thanks in advance!
    Solved!
    Go to Solution.

    Sorry, forgot to attach the end result. Note I did have errors come up, they may have been due to no DAQ cards in my PC.
    -AK2DM
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    "It’s the questions that drive us.”
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    Attachments:
    daq_test[2].vi ‏83 KB

  • Fourier Transform and the DAQ Assistant

    Hi,
    I'm trying to take the fourier transform of a analog voltage measurement in Labview 8.6 and I'm having a problem with the data.
    The measurement is an anaolog input voltage signal taken using the USB-6211 box.  I am acquiring the signal on ports 15 and 16 (differential) with the DAQ Assistant at a rate of 5KHz, 200 samples.  The setup works perfect thankfully, and a very nice waveform plot is generated on the VI.  I would now like to add a fourier transform of this plot to do some frequency analysis.
    I found the FFT function, but when I tried to add the DAQ output to it, I got an error about dynamic data.  It takes me to a screen which I don't understand about dynamic data conversion, and I'm not sure what to do from this point.  My FFT graph is basically just a flat white line, which is wrong.
    How can I just take the basic fourier transform of a waveform in this setup?

    Hi
    Your thinking is not bad. You have only some scaling problems. You may toy with the vi I am sending. Change the log/linear control and see the result.
    You will find all information you need here http://zone.ni.com/devzone/cda/tut/p/id/4541 and http://zone.ni.com/devzone/cda/tut/p/id/4541. The dt value is the reciprocal of the sample frequency(1/x) The unit is second, and it will give you the time interval between two samples.
    Also note how I use the "Dynamic To Waveform Array.vi" to convert the dynamic data. This VI is not documented by NI, but you find it here ...vi.lib\express\express shared\transition.llb\Dynamic To Waveform Array.vi
    Good luck
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)
    Attachments:
    Spectrum Analyzer.vi ‏32 KB

  • Can I use AI functions rather than DAQ assistant?

    Can I use AI config, AI start, etc. instead of DAQ assistant to read values from accelerometers connected via an A/D card?How do the AI functions work?Lastly will switching to AI functions result in a quicker program?
    Cheers
    Sam 

    Sam,
    from your second  point i take it that you are starting to browse examples. The device number (as numeric value) is a parameter you have to use when working with traditional DAQ. NI does not recommend to use traditional DAQ anymore except if there is no other solution (e.g. hardware which is not supported in DAQmx).
    Since you already worked with the DAQ assistant, your hardware has to support DAQmx.... so you should look into the DAQmx examples.
    Another hint:
    You can exchange the DAQ assistant by DAQmx code simply by rightclicking on the assistant and  select "Generate DAQmx Code". This will result in DAQmx code doing what you configured in the assistant (please note that the assistant is getting replaced, so it is not available on the blockdiagram after this). Study this code. As a general framework, this works out very good.
    hope this helps,
    Norbert 
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • DAQ Assistant to typedef data cluster

    Hi All,
    I was hoping someone could be able to shed some light on an issue I have been pulling my hair on for a week now.  I am recently new to LabView (less than 6 months), and up until I have been able to locate/research any issues I had ran into.  The problem I'm having is as follows:
    Basically, I am using an SCXI-1581 and an SCXI-1102B (along with multiple other pieces of hardware) for a device we are creating.  Generating the signals with the DAQ Assistant was quite simple.  The problem I am running into is finding a way to relay these signals to an array or cluster, so that multiple other subvi's can quickly just "Unbundle by Name" to wire to their specified indicators on each page.  I have tried arrays, clusters, typedef's, etc to no avail and I'm not sure where else to look for help.  Unbundling the typedef cluster onto the subvi's works like a charm, the problem is the typedef ctl is not getting any data sent to it so the indicators on the SubVI's never receive a value other than the 0 located in the cluster typedef.  If there is a better way to go about doing this I would sure appreciate the help. 
    Breakdown:  I have 41 thermistors being generated from the DAQ Assistant.  I need to somehow convert this data into a form where it will be able to be constantly updated and read from a typedef/global/something.  I have taken a screenshot of what I was working on when I decided to post here.  There are broken wires atm, because I was trying everything I could think of.  Signal Manipulation/From DDT, Array to Cluster, Build Cluster by Name, Build Array, numerous things.  I basically want all 41 thermistors to leave the DAQ Assistant, be split by channel name/value, and input into an array or cluster that can become global.  I have broken it down to 4 channels in my screenshot for simplicity's sake.
    My apologies for repeating myself or running on, I'm working on very little sleep at the moment
    I appreciate any help anyone can shed on the situation.  Thank you!
    -Justin
    Attachments:
    DAQ_Cluster.png ‏17 KB

    I didn't have it connected in that particular screenshot but I have tried that before.  I just redid that scenario and took another screenshot.  Bringing a cluster typedef and dropping it in, switching to indicator so it will allow an input, and changing the Original Cluster Visible property to FALSE (just so two clusters of 4 Numeric Indicators are not visible).  Using the attached screenshot, the numeric values do update (on the front panel of this VI), but as soon as I connect that typedef to another VI and unbundle, those values do not populate on the subVI.  I changed the DAQ Assistant in this current example (to test)  as I am at home and do not have the 1581/1102B hardware here with me. 
    I will note that I do have this functionality working on another section of the GUI I am working on.  This working portion has 8 Boolean values in a typedef cluster and is exported and unbundled in the same manner as I am trying to get working with these data values on the subVI.  The way that the values get sent to the typedef is different but overall the same way that I would like to aim for on the DAQ_Cluster2 image.  Two screenshots enclosed this time.  I can go into much further detail if necessary.  Thanks again for the feedback.  I'm going to knock out some more of the pages involved for now, if anyone has any more feedback that would be fantastic.
    Also aeastet thank you for your reply as well.  I started reading through your link to Ben's nugget but my brain is mush right now and I am not too familiar at all with some of that functionality.  I will look back at it more soon.
    Thanks again!
    Attachments:
    DAQ_Cluster2.png ‏27 KB
    FCV_Cluster.png ‏8 KB

  • Has anyone been able to install DAQ Assistant in Visual Studio 2013?

    I would like to use DAQmx Hardware API Assistant to generate VB dot net 4.5 code in Visual Studio 2103.  Ni says will only work up to VS 2012.  Why can't the Hardware API code just be installed into VS 2013?
    Thanks,
    Jim

    Hi Jim, 
    I would recommend using Measurement Studio with the DAQ Assistant.  For information on how to do this, please see the link below: 
    http://www.ni.com/tutorial/4652/en/
    Best wishes!
    Amanda B.
    Applications Engineer
    National Instruments

  • NI-4351 and DAQ-assistant

    Hi,
    I have tried to aquirre data using the DAQ-assistant and a NI-4351 (for PCI)
    DAQ-card. However, the assistant doesn't recognize or cannot find the
    device, eventhough it works perfect in the MAX test panel. Is th NI-4351
    card not compatible with the assisatant?
    Lennart

    Hi Lennart-
    No, the NI-4351 is not compatible with the DAQ Assistant. In LabVIEW, go to Help >> Find Examples, this will open the NI Example Finder. Double-click on Hardware Input and Output >> Traditional DAQ >> Analog Input >> General.
    In this folder you will find several example VIs that are written for this card and should help you get started. The names of these VIs start with "NI 435X".
    Be sure you see PCI-4351 or PXI-4351 in the list of "devices that can run this example," which is the box in the lower right corner of the example finder.
    Hope this helps!
    Thanks
    Tori

  • 1102/1303 CJC temp diplay w NI DAQ assist LV7?

    I am trying to display (Graph)the CJC temp using Ni Daq assist. I do not see the CJC as a selectable output. Can this be done? Using a 1011 chassis with the SCXI-1102 and 1303 terminal block (internal CJC thermister).

    Greetings,
    This is definitely possible with NI-DAQmx, but not with the DAQ Assistant. The example Acq CJC Temperature.vi demonstrates how this is accomplished. This example is available in the following location:
    Hardware Input and Output >> DAQmx >> Analog Measurements >> Temperature
    The example only acquires a single reading, but you could easily modify it to continuously acquire and chart the CJC temperature.
    Good luck with your application.
    Spencer S.

Maybe you are looking for

  • Problem with Shuffle in Music on my iphone4.

    I upgraded my iphone4, but now the shuffle in the music does not work and repeats the same song over again. Can anyone advise me in correcting the error please? Thanks, 

  • Help! the changes on my book were gone when i opened iphoto

    i just finished my 100 page book! I opened my computer and the 100 pages that I made had a days work all gone. I saved it as a pdf though. I want to order it, but i cant open the pdf file in iphoto. how do i go about ordering the book based on pdf fi

  • HT4623 itune not recongnizing iphone

    My itunes account is not recognizing my iphone and I have a new computer with windows 8. I used to just plug it in and it would prompt me to sync and update my phone.  I cant even find it on my computer. any suggestions would help?

  • Poweredge R710 USB 3.0 pcie card boot drive

    Is it at all possible to boot the R710 from a pcie USB 3.0 card to have that as the boot up drive? And if thats possible which riser does it need to be installed in? Riser 1 or riser 2? Reason for me asking is because i want all 6 3.5" drives dedicat

  • Splitting of requirements in MRP

    Hi Gurus, Am implementing SOP wherein the monthly demand forecast is loaded as a sales plan and transfered to demand management, followed by a MRP run. Would like to split the monthly demand into weekly demand in MRP. Is this possible? How? Am aware