Project related to DAQ assistant

Can someone help check through my VI file? My project is to create a VI file for calibration and indication purpose with 3 sensors. Generally, this project is to design a water tap, with infrared sensor for automatic water dispense, angular displacement sensor to manipulate temperature (25-60degree celsius), and temperature sensor in the valve to detect temperature. Indicator involves knob adjusting temperature, temperature indicator, infrared detection, and if the temperature is higher than 60, no water is dispense (indicator). I am a beginner in LabVIEW and could really use some help.
Attachments:
calibration together.vi ‏319 KB

Forgot to attach these
Attachments:
Angular Displacement(SubVI).vi ‏109 KB
Displacement(SubVI).vi ‏128 KB
Temperature (SubVI).vi ‏128 KB

Similar Messages

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

  • Proggramming Encoder to daq assistance

      greetings.
    can i know how to program or is there any example of .vi where i could get on controlling a dc motor position angle? plus with daq assistance..I have tried but could not get the idea
    im using labview 8.6 with usb6009.
    the hardware have been connected for me through the usb6009.
    the application of the hardware is to control the amount of sunlight through windows blind.
    im also using a maxon twin shaft dc motor with 5bit encoder.
    another 1 is, can my .vi be used as a close loop system that can control the angle of my dc motor when the sensor is adjusted?. if yes, then how can i figure the program with daq assistance?
    undergraduate local student inspired to use LabView for final year project
    nubies here need guidance.
    Attachments:
    lux meter output signals variable upgrade colour 3.vi ‏18 KB

    thank you for replying..
    i could not see any link below..could you please attach any related link/url?
    undergraduate local student inspired to use LabView for final year project
    nubies here need guidance.

  • How to use DAQ Assistant to display two analog channels in a XY Graph

    Hi,
    I am new to LabVIEW. I have been assigned a project in which i have to display two analog signals from an analog potentiostat i.e. voltage and current (also a voltage signal) on a graph using labview. I am using a myDAQ device to acquire these analog signals and I am using labview 2013 to display these signals on a graph. I am using DAQ assistant to configure these signals. Rightnow I have separate graphs for each channel. However, I want a single XY graph to display one voltage as a function of the other i.e. I want to have voltage on the X-axis and current output on the Y axis. Any kind of help is greatly appreciated.
    I have attached a screenshot of the VI. that I have made.
    Regards,
    Max
    Attachments:
    New Microsoft Word Document (2).docx ‏32 KB

    Thanks for the quick response. I was able to make a X-Y graph. However, I can only see a dot floating around. It's not drawing anything. I want to see it making a plot as it collects data. Also, I want to see the complete waveform formed when I stop the VI.
    Thanks,
    Max

  • 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

  • Dynamically passing data into a running while loop from a DAQ assist. in an ouside while loop

    Hello,  I'm currently a student working on a senior project and I'm trying to do a state machine that will turn off and turn on a compressor depending on time and coprocessor failure. 
    In the run state, wich is #1 on the case structure box I placed the DAQ assist.  Which takes in data from an accelerometer.  If the accelerometer's value is above the limit four times it will end the loop or if the time runs out it will end the loop. 
    The problem I am having is that i need to run four compressors.   I was thinking about having four case structures all within the outside loop, but I can only have the DAQ assist in one location.  This means that I now have to move the DAQ assist out of the run loop or run all four compressors in the one case structure.  If i remove the DAQ assist.  I can only get it take in data once when the loop starts and never again.  I understand why, but is there a way to dynamically pass data froma  DAQ assist.  into a running loop? 
    Also on a side note, i can't find a tutorial on how to really create a state machine using Enums.  Does any one know where to find this. 
    I have attached my curent program.
    Thank you for your help,
    Ryan
    Attachments:
    TEST STAND STATE MACHINE 2-28-07.vi ‏288 KB

    in labview choose file->new... then pick standard state machine and there are instructions.
    you can create a custom control and either use an enum, text ring or menu ring.  Edit the values and then save the control and drop into your vi and you can wire this to your case structure
    - James
    Using LV 2012 on Windows 7 64 bit

  • 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

  • DAQ Assistant in subvi not updating output to DAQ board with each call...

    Hi All,
    I am calling a simple subvi that creates a user-defined number of pulses with "Square Waveform.vi."  This square wave (with the given total number of pulses) is then used as an input to a DAQ Assistant controlling an analog output signal on a NI USB-6259 DAQ board.  I am using Labview 8.5 right now.
    However, each time I call this subvi from my main program, the output I measure from the DAQ board is identical to whatever I set in the first call (i.e., if i created two pulses in the first call, I get two pulses on every call, regardless of the input I feed to the subvi).  The multiple calls to this subvi are made in sequential frames in a stacked sequence.  I believe stacked sequences are frowned upon by good labview people, right?  But putting that aside for the moment...
    The "#-of-pulses" input I give to the subvi is updated in a subvi front panel number indicator and a graph of this waveform.  Just not in the real output I measure from the board.  Why is the hardware output being asserted (with the original input value) before this new number can reach the DAQ Assistant?
    The sloppy fix to this is just to put that square wave creation code in my main program each time I need it.  This does work and fixes my problem.  However, I would like to use subvis to keep things clean.
    I am not a good Labview programmer, but have used this software for a number of projects and am stumped by this.  Any ideas?
    Thanks,
    John

    Hi John,
    I am running your code over here and seeing
    the same results.  I believe the problem is that the DAQ Assistant is
    being called inside a loop (really a sequence structure, but
    nonetheless more than once).  Sometimes it is difficult to troubleshoot
    the DAQ Assistant in cases like this--it is trying to be "smart" and
    seems to be avoiding re-configuring its parameters inside the loop. 
    This is intended to improve loop speed for when customers are
    performing continuous operations.  In this case, it is performing a
    finite generation, and the number of samples generated appears to carry
    over from one loop iteration to the other.
    It sounds
    like you have discovered one workaround for this already: putting a DAQ
    Assistant in each frame of the main VI.  Two other options that come to mind are:
    Use the lower-level DAQmx functions inside
    the sub VI.  Here you will have explicit control over when the task is
    created and cleared, and when parameters are set.  You can find
    examples of how to use the DAQmx API in the Example Finder at:
    Help >> Find Examples... >> Hardware Input and Output >> DAQmx
    Write
    a consistent amount of samples to the DAQ assistant by "zero-padding"
    your signal.  For example, instead of writing [10, 1010], try writing
    [1000, 1010].  In this case, it wouldn't need to reconfigure the number
    of samples to generate.
    One lesson to take away here is
    that the DAQ Assistant is good for basic functionality, but for more
    advanced control over the execution and configuration of your task you
    should learn to use the lower-level DAQmx functions.  In this case it
    sounds like the problem is actually a bug.  I'll file a bug report, since the DAQ
    Assistant is not checking for waveform timing changes even though your
    timing is set to Use
    Waveform Timing.
    Thank you for pointing out this odd
    behavior--out of curiosity which version of DAQmx are you using? 
    -John
    John Passiak

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

  • Daq assistant

    Hi,
    I recently installed Labview version 8.5. I installed the data acquisition cds aswell, but there is no daq assistant icon, instead there is a blank space where it should be. I would like to know how to access and to create the icon on the functions panel.
    Regards,
    Mark

    Hi,
    The Data
    Acquisition palette relies upon two installations: the LabVIEW
    installation and the DAQ driver installation. When the NI-DAQ drivers
    are installed, the installer will automatically detect the versions of
    LabVIEW present on the computer. Most often, the DAQ support for these
    versions of LabVIEW are then installed. Unfortunately, this means that
    if you upgrade to a newer version of LabVIEW you will need to add DAQ
    support for your newer version of LabVIEW by modifying/reinstalling
    your DAQ drivers.
    Steps to ensure driver VIs appear in LabVIEW:
    Ensure
    that all development environments being used (LabVIEW, CVI, etc.) have
    been installed before the device driver. Installing LabVIEW after a
    driver will not update the functions palette with those driver VIs. In
    this case, it is only necessary to modify the installation for those
    drivers that do not appear on the functions palette to include support
    for LabVIEW.
    Install the most current supported version of your device driver which is compatible with your version of LabVIEW, and be sure to include support for your specific LabVIEW version when prompted.
    Close and reopen LabVIEW. You should now see the appropriate icons for all installed drivers on the functions palette.
    There
    are several other reasons why certain functions may not appear on the
    palette. If the above steps do not resolve the problem, see the related
    links below or contact National Instruments support. 
    Steps to add driver VIs if LabVIEW is installed after the NI-DAQ drivers:
    Open the Add or Remove Programs dialog from the Windows Control Panel.
    Select the National Instruments Software entry and click Change/Remove.
    Choose NI-DAQmx and click Modify to add support for your version of LabVIEW.
    Verify that the proper menu files have in fact been installed correctly:
    If the respective DAQ and DAQmx VIs have been installed correctly, their menu files should be present: C:\Program Files\National Instruments\LabVIEW X.X\vi.lib.
    The associated menu files should be installed in the following location: C:\Program Files\National Instruments\LabVIEW X.X\menus\default. These menu files are ultimately what links the installed VIs to the functions palette in LabVIEW.
    If this doesn't work then please let me know your DAQmx driver version installed on your system (from Measurement & Automation > Software > NI-DAQmx)
    All the best,
    Applications Engineer

  • How can I link my daqmx code to another daq assistant to hear my audio output?

    Hi,
    I got a burning question about my school project. I need to use labview and my NI-mydaq to test the difference between
    various samples rates and bit depths.
    I linked an mp3 file to the AUDIO IN of my NI-mydaq and created a way to be able of switching sample rate while running my program.
    Now I would like to link my program inside the NI-mydaq to my AUDIO OUT...
    So...  I generated daqmx code out of an input daq assistant, how can I link my daqmx code to another daq assistant to hear my audio output?

    Hello Fontys_Student...,
    I am not sure I properly understand your question.
    You want to, first, acquire a signal from the AUDIO IN input, second, do some processing on the acquired signal and, third, generate this processed signal at the AUDIO OUT, right? What is the part causing some troubles?
    If you already have the signal acquired and processed, you can simply wire this processed signal to the "data" input of a second DAQ Assistant, right?
    Did you already have a look at the myDAQ User Guide (http://www.ni.com/pdf/manuals/373060e.pdf)? On page 32-35, there is an example showing what you need I suppose. 
    Cédric | NI Belgium

  • Mutiple readings from Express DAQ Assistant VI

    Hello All!
    First I'm a fresh noob to LabView and although I understand most of the basic concepts, I'm also new to programming in general. I'm working on a project to remotely monitor several different parameters of a system. Right now I'm working on a test program to monitor three parameters in my shop across the street. I'm using a NI USB-6008 as a DAQ device, DAQmx 8.0 and LabView 8.0. All of my input signals are 4-20 mA signals coming from my three sensing devices. 
    Here's my problem; I need to monitor all three signals on digital displays. I can accomplish this by using three different instances of the express DAQ assistant but then I get the dreaded "50103 error" unless I wire the stopped output of one assistant to the stop input of the next in a feedback loop and even then I get the 50103 error on the first iteration of the loop. From my research I understand that this isn't the correct way to program this. I should use one DAQ assistant with multiple channels assigned to each one of my parameters. I've did this but now how do I make each one read out on an individual digital display? I only have one output from my DAQ assistant.

    Hi George,
    Use split signal in the signal manipulation functions menu to get your 3 individual singals on respective indicators
    Regards
    Dev
    Attachments:
    SPLIT.vi ‏85 KB

  • PCI-6251 into LABVIEW DAQ Assist block interrupti​ons and resets

    Signals being received from PCI-6251 into a LABVIEW DAQ Assist block interrupts and resets every 10 seconds after 1 minute of data acquisition. Would this be a memory buffer problem or is it something related to the hardware? I am using a BNC-2110 hardware connector. Please view the attached image.
    Attachments:
    Interuption1a.GIF ‏4 KB

    Hey Peter,
    Ahh, I understand the graph now!  Hmm, this is very strange behavior.  Instead of using the DAQ Assistant, try to use the explicit DAQmx VIs (see picture).  You have more explicit control over what is going on with the DAQmx VIs and keep as much as you can out of the loop.
    Regards,
    Erik
    Attachments:
    analoginput.JPG ‏23 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

  • 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 

Maybe you are looking for

  • How do I sync game progress between iphone and ipad

    I have several  "long term progress" games on my iphone 5.I bought an ipad mini and would like to sync the progress of each game on both devises.I have have game game progress erased in the past, possible from incorrect procedure. What is the best wa

  • How to make sub sites in SharePoint 2010 as Read Only

    Hello, We have a requirement to make sub site as read only in SharePoint 2010 programmatically. How we can achieve it using Server Object Model ? Thanks, Hatim

  • SQL Developer not accepting certain characters from the keyboard

    Hello, I have been using SQL Developer for 5 or 6 months now, with minor issues and great satisfaction. A few days ago, just out of the blue, in the middle of the day, SQL developer started not accepting the following characters: Ctrlv, Ctrl + c, F5,

  • Griffin A/V Cables

    Anyone reading this have any experience using the new Griffin Technology A/V Cables with their Nano 4G? From what I can tell, these products should be functionally equivalent to the Apple Composite AV Cable & the Apple Component AV Cable. I would lik

  • XMLAnonymizer Bean - File Adapter

    Hi,    I am working on removing the name space from the XML payload using the XMLAnonymizer Bean. I am using the file adapter to write the output file to a directory. Remove namespace prefix or change XML encoding with the XMLAnonymizerBean The above