DAQ assistant different positions

Hello
In my VI i want to get some Signal of a PCI 6221 37 DAQ Card. I read in 2 signal which i need in different states of my application. therefore i tried to get the signals with 2 daq assistans which read date from the same card. but if i run the vi i get an error.
How can a get my data from the same card from different positions in my block-diagramm?
thanks
Simon
Using Labview 7.1

You should just have both channels in a single DAQ Assistant. You can then use the Split Signals function.

Similar Messages

  • Change pin configuration in linear position DIO daq assistent

    Hi,
    I have an Device for interferometric Displacement Measurements that gives out an digital A quad B Signal plus the clock signal (runs at 10MHz).
    I wanted to use the DAQ Assistent to calculate the Displacement. The Problem is, if I select the "linear Position" Option it wants me to use the Inputs PFI8 and PFI10 for A and B.
    Unfortunately we use a BNC2110 Box which only connects PFI0 - PFI9. Leading to my qestion: Is there a way to change that Pin-Configuration?
    If not, are there complete vi´s available for downliad where I can select the Inputs for A,B and clk and that at least gives me the A and B Signal in Labview?
    Setup-wise we are using a 6259 M-Series PCI DAQ-Card which should be able to handle 10MHz.
    I would be really happy if anyone can help me with that!
    Cheers,
    Daniel

    Hi Daniel!
    Unfortunately the DAQmx assistant is limited to a small subset of the DAQmx capabilities. If you want to change the PFI assignment for a counter task you have to use the low level DAQmx functions provided in the Measurment I/O > DAQmx palette. I attached a small example where you can see how PFI for a Counter Linear Position Task are assigned with a DAQmx property node. Hope that helps!
    Regards,
      Georg
    Attachments:
    Counter - Read Encoder.vi ‏41 KB

  • DAQ Assistant Connection Diagram has different pinnouts than on the SCC-68

    When looking at the Connection Diagram on LabVIEW 8.2.1 (from DAQ Assistant) The diagram shows pins 34, 66, 31, and 63 ABOVE pins 68, 33, 65 & 30.  However, when looking at the physical layout on the SCC-68, these pins are transposed.  That is to say that pins 68, 33, 65 & 30 are ABOVE 34, 66, 31, and 63 respectively.
    Is this an error?  If not, what is the logic behind this?

    Hi RVallieu,
    I think the disprepancies in the connection diagram that you are seeing are related to the type of connection you want to do.  For instance, if you are doing differential measurements (good for rejecting Common Mode Noise Voltage), you would connect the positive lead to ai4 (pin 28) and the negative to ai12 (pin 61).  On the other hand, if you are doing Single-Ended Ground Referenced (RSE) using channel 4, you would connect the positive lead to ai4 (pin 28) and the negative to ai gnd (pin 64).  Whichever of these measurements that you choose, make sure that you configure the measurement type in MAX when you set up your task or in the VIs in LabVIEW under terminal configuration.  Here is a link to a document that describes the differences in these measurement types. Table 1 breaks the information down into Signal Type and Input Configuration.
    I opened up both the Device Pinouts in MAX for the 6221 and the manual for the SCC-68 (page 39) and compared the pins and they seem to correlate.  Since the SCC-68 works with multiple M and E series DAQ devices, they should be the same. 
    As far as your measurement value is concerned, Ben has a good point that you may not have configured the accessory correctly in MAX.  To do this, right click on your 6221 device and go to properties.  Then in the accessory tab, you can select the SCC-68.  This knowlegdebase describes the differences between SCB-68 and SCC-68 in case you were wondering. Hopefully this information will help!
    Regards,
    Vanessa L.
    Applications Engineer
    National Instruments

  • New project using Daq Assistant or not ?

    Hi everybody,
    I need to create a software to do some realtime acquisition & analysis.
    I trained myself a little bit on c# lessons to get use to this programming language; I’m also discovering Measurement Studio & Visual Studio. (I’ve background in C++).
    My software will have 2 modes :
    Continuous acquisition, signal plotting + signal processing & plotting (fft, 1/3 octave band filter)
    Triggered acquisition, signal plotting + signal processing & plotting (fft, , 1/3 octave band filter)
    I have examples in my National Instruments directory which don't use daq Assistant and code is different from generated files with daq Component.
    If I use Daq Assistant ( http://www.ni.com/tutorial/4652/en/ )
    I know that the code to create channel is stored in DaqTask.cs
    Plotting :
    NationalInstruments.AnalogWaveform<double>[] acquiredData = daqTaskComponent1.Read();
    waveformGraph1.PlotWaveforms(acquiredData);
    When I look to examples, like "MStudioVS2010\DotNET\Examples\DAQmxWithUI\SpectrumAnalyzer\cs "
    all code to create channel is generated in Mainform.cs, there is no Daq Assistant (http://www.ni.com/tutorial/5409/en/ )
    and there is a slight difference between acquired type :
    private AnalogWaveform<double> data = new AnalogWaveform<double>(1000);
    data = reader.EndReadWaveform(ar);
    acquiredDataWaveformGraph.PlotWaveform(data);
    Questions :
    What is the difference between AnalogWaveform<double> and AnalogWaveform<double>[] ? why it's not the same type ? I need to do some signal processing with this signal, so what type should I use for my application  ?
    I didn't succeed to configure my 2 modes in daq Assistant (continuous and triggered acquisition) is it possible or should I create 2 Items in my solution, one for continuous acquisition and on for triggered acquisition ?
    Kind regards,

    Check out the downloads section of iLounge.com. There are a handful or two of applications that will help you transfer songs from the iPod to the computer.
    Another option is to network the two computers together and transfer the iTunes folder to the new Mac. All you need is an ethernet cable and to turn on file sharing in the Sharing preference panel. Depending on how old your "older" Mac is, you might need a crossover ethernet cable.
    A third option is to hook up the two computers using a Firewire cable. On the older Mac make sure it is shut down, hook the two computers up, turn on the older Mac while holding down the "T" key. On the new Mac you should see the old Mac's hard drive show up. Just find the iTunes music folder and copy it over. You could also use the Migration Assistant which will be in the Utilities folder of the new Mac.
    Hope this helps.

  • I have a DAQ Assistant configured to read multiple channels at the same time. When I wire a graph indicator to the output, I see all of my signals jumbled together. How do I split them up into seperate signals?

    I have a DAQ Assistant configured to read 2 channels at the same
    time. When I wire a graph indicator to the output, I see the 2
    signals jumbled together. How do I split them up into seperate signals?
    When I wire any type of indicator it is showing just one output of a single channel.
    I want 2 indicators showing 2 different signals as expected from the 2 channels configured. How to do this?
    I have tried using split signal but it end up showing only 1 output from 1 signal in both the indicators.
    thanks in advance.
    Solved!
    Go to Solution.

    Yes you are right. I tried that but I did not get the result.
    I just found the way. When we launch split signal, we should expand it (split signal icon) from above and not from below. It took me a while to figure out this. 
    thanks 

  • How to select signals from the output of a DAQ assistant

    Hi! 
    I am a new user of Labview 8.5 and I am working with a USB-6210. I have two different instruments connected to the same USB device, half of the channels are being used for pressure transducers where I only need to reed and save the data, while the other half are associated to TCD detectors where I need to perform some analysis to the signal to obtain and save the data. I am in the first step of building the block diagram, After I define each of the signals which its corresponding channel using the DAQ assistant, I need to select and separate the signals coming from the pressure transducers from those coming from the TCD detectors, before I can continue drawing the block diagram. I am trying to use the Select Signal function but I am not sure how to do this. Can anyone please let me know at least in which manual can I find a good explanation? I have been reading the Getting Started and the User Manual for LabView but they have not been very useful so far.
    Thanks!
    Solved!
    Go to Solution.

    Wire the Select Signals express VI to your DAQ Assistant and run the VI once (this allows the signal names to propegate).  Then when you open the Select Signals configuration you'll be able to pick out the channels you want by name instead of just "Signal 1" etc.
    It sounds like you'll probably want two Select Signal Express VIs, one for the TCD detectors and one for the pressure transducers.  Something like this:
    If you right click on the VI and select Help or click on the Help button within the configuration dialog you will bring up the LabVIEW help page for this (or any other) VI.  Are you looking for some other information that isn't documented in the help file?
    Hope this helps,
    Simon

  • Struggling how to set up 2 daq assist on labview in the same VI

    hi all,
    hope someone can help me out
    I am currently using the scxi 2345 with some SCC FT01 feed through modules, these are just to record some voltages from some transducers.
    What I am struggling with is setting up 2 daq assist on a single VI, it is coming back with a error stating specified resouce is reserved and then a window saying learn more about automatic handling. How would I also have these 2 values logged on the same graph or chart?
    Anyone any ideas how to set these up.
    I ideally want to have 3 daq assist in the same Vi but not sure if this is possible. It would be 1 for thermocouple input and 2 for voltage as stated above
    many thanks
    shane dover

    Hi Shane and Dennis,
    I've been working my way around the same type of problems, and I am
    currently re-writing everything to use on Asst. per board on my PXI
    chassis, so that no resources become reserved.
    As a result, I have to separate the signals on the output dynamic data
    in order to do different post processing.  So I have been toying
    with staying with dynamic data, inputting dyn. data into an array, and
    inputing it into a cluster.  It seems that each has advantages and
    drawbacks, but arrays seem to be the easiest with which to work when
    splitting signals coming from a DAQmx Asst. and funneling some of the
    signals into a post-processing sub-VI.  The drawback to this is
    that time stamps in the Dyn. Data are lost if you want to record the
    data and the time of the reading. 
    Question:  Is there an easy way to pipe Dynamic Data into a
    calculation subVI?  Is it workable after it's been split from
    other streams? 
    Thanks,
    Brad

  • Using DAQ-assist to input a waveform; need help building a counter to count voltage "spikes"

    Hey all! I'm pretty new to labView and even newer to this forum, but its nice to meet you all...I hope that perhaps someone can help me with my problem.
    Allow me to begin by detailing the specifications of the problem.  I am an undergraduate student, and have a job doing research in a MEMS (micro/nanotech) lab.  The graduate student I am making this program for is working on biomedical applications;  eventually, the program will be connected to a microdevice that has a tiny channel in it, cut through a wee little capacitor, which blood will run through.  As red blood cells pass this capacitor, the voltage will spike; meaning that for each voltage spike, we can (and are trying to) count the number of red blood cells.
    However, I am still in the early developement of the program, so this above specific info is not that important.  Basically, I am using a function generator to input a waveform to the DAQ assistant of, say 500 mV.  I am trying to write a program that increments a counter every time I turn the voltage above say 550 mV (peak-to-peak), counting the number of simulated "spikes."  I have tried quite a lot to write a working program, and although I have not gotten it to work yet, I will post a screenshot of my most recent attempt HERE:
    I thank you in advance for any helpful tips, advice, or straight up assistance you may be able to give me.  Please ask me any clarifying questions about the program I wrote or the application, or anything.  Happy Friday! 

    Hey guys, it's been a while!  A lot of stuff has been happening in my life and I have had virtually no time to work on my LabView project.  
    I did create a LabView program based off IanW's reccomendation.  I am unsure of what exactly is going wrong, but when I run it, only a simple "snapshot" of a waveform from the DAQ shows up in the graph.  Even when I put the DAQ assist in a seperate while loop, the same thing happens.  I am including a screenshot of the project in case I am messing something entirely different up.  If you happen to read this, I really appreciate your help and thank you Ian! 
    I am also having a random issue with the filter signal VI.  So that background signals in the actual experiment do not read as "spikes" I have been instructed to include a high-pass filter in the VI.  However, everytime I use the high pass filter VI, it botches my signal and turns it into a bunch of noise!  I, nor my graduate mentor (who isn't too well-versed in LabView) have any idea why this is - we've tried using different types of filters to no avail.  
    Lastly, I would like to talk to Peter about a few questions I had abour LabView design.  In case you're still around, I will write another post later today with more detail.  In the meantime, I will try to find some of the example VIs about shift registers   All who read this have a great day!
    Attachments:
    count spikes pic.png ‏29 KB

  • Insert a DAQ assistant in producer consumer vi

    Hi,
    I am using a DAQ assistant to receive the measurements in the 10 digital ports.
    Hence I use the DAQ assistant icon in the vi s to get these data in to labview.
    Now I require it to convert these digital values from DAQ assistant into analog( this i have done )..
    Thse analog values are to be taken one at a time for further processing.
    I am trying to use this produces consumer loop for it..http://decibel.ni.com/content/docs/DOC-2431
    however i dont know where to fit in the daq assistant .
    Do i still need the DAQ create channel , sample clock etc?
    or do i simply place my daq assistant in the place of the create channelDAQ icon?
    thanks for any help..
     iam completely confused as to what to do with it!!...
    Regards,
    ruser

    Hi,
    Thank you for the suggestions..
    i am sending one vi here..
    this is my basic vi which gets the data from the DAQ and converts it into data ( angular info) we require ie angular position data of lower and upper encoders. This is a continuous real time prcess, which will stop when we press stop in the vi.
    Now i want to take the a set of data (input and output) each, send it to a vi which will receive this set of data; process it and repeat this for the second set of data etc..
    I am also attaching the lvm file . which is the data we are saving now.
    The first attachment is the vi where i am getting the data.
    The second attachment is the lvm data file.
    Thanks.. I would appreciate any help here...
    ruser.
    Attachments:
    absolute encoder.vi ‏805 KB
    LabVIEW Measurement file.docx ‏17 KB

  • 2 AI channels on one DAQ, with different sensitivity range

    This vi is based on the State Machine from "new project" on the splash screen at LV startup.
    A while loop is in parallel to the main while loop of the state machine, shown in picture. 
    It runs continuously until the Exit button is pressed.
    The problem seems to be in the ..............start>read>stop..........start>read>stop.......... part along the error line. 
    The reason for this clunky start/stop arrangement is that the voltages measured are in two different sensitivity ranges. 
    The shunt voltage is small and needs the -.2 to .2 V range. The load voltage is larger and -10 to 10 V range is good. 
    In the initialize state, two separate "create channel" vi's were used to specify the voltage range for the physical channel. The corresponding tasks are sent over via local variables.
    The DAQmx errors happen randomly, sometimes the first iteration, sometimes the 50th. 
    I tried disabling one or the other    start>read>stop    for the shunt or load voltage. 
    I tried replacing them with DAQ assistant. 
    I tried various DAQmx vi's:   "wait" and  "control task with unreserve resource selected". 
    But error -50103 "specified resource is reserved" keeps popping up. 
    Is it possible to create two tasks on the same device when they are not used simultaneously? 
    The only reason is to measure in two voltage ranges. 
    Win 7 Pro, 64 bit
    LV 2014 Base
    DAQ hardware: USB 6210
    Thank you.
     

    This has been discussed numerous times. Do NOT use separate tasks. You can use different ranges for different channels with one single task. Just wire the task out of one create channel to the task in of another create channel.
    You are also using local variables where they are almost certainly not needed.

  • How to achieve data from more than 1 DAQ-assistant?

    When running my LabVIEW program using the data coming from 2 simulation sources, no problem occurs and data is correct.
    When using the data coming from 2 DAQ-assistants (real data), an error occurs, telling the following:
    "ERROR 50103 occured at DAQmx Read (Analog 1D Wfm NChan NSamp).vi, reason: The specified resource is reserved. The operation could not be completed as specified"
    Does anyone know what exactly is wrong and how to solve this problem?
    Nowhere I found a solution for this problem and I have been trying numerous things to change in the program, but the same problem keeps occuring.
    Could anyone please help me?
    I need to solve this to be able to perform tests for my graduation project.
    Tha
    nk you very much in advance,
    Yours Sincerely,
    Karel Rycek

    The problem is you are trying to access the AI channels at the same time. When you setup the first DAQ assistant it reserves the AI section of the board. When you then try and use the second DAQ Assistant you get the error because it is trying to access a reserved section. If you had 2 different boards this wouldn't be a problem. That is probably overkill though. What you can do is read multiple channels in the 1st DAQ assistant and then in your program split the data off if you need to do different calculations.

  • Simple DAQ assistant problem

    This is probably a simple fix that I am screwing up, but I can't get changes that I make in the DAQ assistant to apply.  Primarily changing the channels that the assistant reads, I will make the change, exit the assistant, and when I enter the assistant again the onlt connection found is ai/0.  Is there something that I can do to fix this?
    Chris O.

    Also, when I run the program, i receive Error -50103, which is not in the error guide, I have attached my program to this message, any help would be greatly appreciated, I am still trying to figure LabView out.  The program is used to measure a voltage from a 4 wave gages, and create an 11 point calibration curve for each gage.  The user should be able to select a position, define the water depth, and click measure to measure the voltage.  Once 11 measurements have been taken and the user is satisfied with the results, the user will click a "calibration complete" button which will fit linear curves to the data and export the slope and intercept of the lines.  The secondary calibration listed assumes that the slope has already been measured, and calculates the intercept based on one iteration of data.  I am using a USB-6008 right now to figure the program out, and eventually will change to a higher quality DAQ board when the programs have been written successfully.
    Attachments:
    Linear Wave Gage Calibration.vi ‏917 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

  • Instr. and DAQ Assistants - Time to take off the training wheels?

    Hi everyone,
    I have written a control system program using a producer/consumer with state machine architecture - textbook LabVIEW beginner intermediate.
    In the producer, I have 6 different DAQ assistants taking AI and DI data from PXI mounted data acquisiton cards and two Instr. Assistants taking data from PXI serial ports.  In the consumer, I have a similar situation.  There are 7 DAQ assistants sending digital and analog requests to 3 different PXI chassis and one Instr. asssistant sending requests to a PXI serial port. 
    Is this frowned upon?  Would any of you pros call this a finished job if it is still bound with Assistants?  I have looked at the code involved in making these assistants into LabVIEW code (writing them out, so to speak), but it is complex and I haven't been able to put in the time to learn all of the different DAQmx and VISA functions and subVI's. 
    However, I have some difficulties that arise when, for instance, a component that is monitored/written to by a serial port is turned to manual control and the assistant times out.  It times out the entire control system, which is not desirable.  Is the fix in error handling, or getting rid of the assistants altogether?
    Any responses are appreciated - even if you are the bearer of bad news!
    Brad

    Hi Brad,
    Using DAQ assistants in a loop does come with some overhead. However if you are acquiring at relatively low speeds and do not want to use the DAQmx VIs, it shouldn't be a problem. Though programming using DAQmx VIs might look somewhat intimidating it follows a general priciple common to most I/O in LabVIEW. You open/create a channel, configure it, read or write and then close it. Generally, only the read or write VIs will be in the loop. So doing the creation and configuration every iteration of the loop is the overhead.
    I am not entirely sure what is timing out and what you are doing to cause a time out. There are two ways to generally fix time out errors. One, as you pointed out, is to handle the error. You can do this by unbundling the cluster to look at the error code, if it is a time out error, you can reset the error cluster.
    The other solution is to increase the timeout for the DAQ assistant. (Wire the time (in seconds) you want it to wait, to the timeout input of the DAQ Assistant).
    Cheers
    Malay Duggar
    NI

  • Error -2147220733 occurred at DAQ Assistant (in Measurement and Automation Explorer)

    Ok!  Just before the weekend I figured out how to make channels in Measurement and Automation Explorer for inputs through a couple different NI input devices (USB-9211A & PCI-6229 DAQ).  Things were going well.  Loaded up the computer today, added a few more channels.  Worked fine.  Now all of a sudden, any channel I make has an error and if I try modifying existing channels and saving, I get same error:
    "This global channel currently has an error.  You can save the global channel, but it cannot be used until all errors have been fixed.  Press "Yes" to save anyway, or "No" to cancel and show the error."
    If I hit yes, the channel is non functional.  After hitting no, I get:
    "Error -2147220733 occurred at DAQ Assistant.  Possible Reason(s): "
    with no possible reasons listed.  I tried restarting the program.  I tried restarting the computer.  I verified connections.  Searched for the above stated error number on ni.com, google.ca, and in the MAX help files, and found absolutely nothing.  I have no clue what to do.  Any help would indeed be very much appreciated.

    Hi there,
    This is my first time on here and I've only been using this software for a couple of days so it's possible I'm making a trivial error but I thought I'd post here anyway as I can't find anything on the net about my problem.
    I also get an error while trying to save:
    Error -2147220733 occurred at DAQ Assistant
    Possible Reason(s):
    Requested Code: -2147220733
    But mine comes about in different circumstances to the one in the original post on this thread by Kahless. I was editting a VI logger task and within that I was trying to edit an NI-DAQmx Task. I was trying to change the clock settings, specifically I was attempting to change the Rate (Hz) from the 1k default to just 20, or 200. I got the error while trying to save so changed it back to 1k, but the error persisted even though I'd set it back to what it was.
    I thought at first it might be simply that I was trying to edit an NI-DAQmx task within VILogger, so I tried making the ammendment directly but the problem was still there. 
    Any ideas?
    Many thanks.

Maybe you are looking for