Daq bnc2120

I have NI's BNC-2120 with me. I have configured a counter that counts the signal at CTR0Source.
I have displayed the count every second implementing a timer in a while loop.
Now i need to input another source of input (pulses) let's say at CTR1 Source input and then output the value of the previous counter at certain specified pulse number of the new input.
E.g. measure the count of the old signal until every 50 pulses of the new input signal.
I am not able to do that.
I am using NI 8.2. I would be happy if someone could help me on this.
Thanks in advance.
Solved!
Go to Solution.

Yes the new program looks like the one shown in the figure.
The purpose is to count the value of counter count0 (above) for every 45 pulses of count1 (below) counter.
Both of the counters are normally increased and with the case structure, the subtraction should normally display the count for count0 for every 45 pulses of count1, but display always 0.
I was not able to debug because the value shifted on each loop when the condition is false is the same as the value when it is true, i.e. the subration inside the case structure is always 0.
The requirment is that when it is true the new current value has to be shifted and when the condition is false the same previous shifted value has to be shifted with the shift register.
I would be happy if some1 can help me on this.
Regards,
Attachments:
Another1.JPG ‏97 KB
Another2.JPG ‏90 KB
Count Edges.vi ‏77 KB

Similar Messages

  • USB-6009 DAQ

    Hi;
    Would you please advise which NI-DAQ software version is for USB-6009 using LabVIEW 7.1?
    Regards

    Hi;
    I have downloaded NI DAQ MX 8.9 which is supports LabVIEW 7.1, but it can not detect the NI USB-6009 driver and still asking for the driver.
    Can anyone help please?
    Regards

  • USB 6009 DAQ to use in Simulink at External mode with DAQ toolbox

    hi
    Currently I am using usb 6009 daq board for data acquisition in using simulink. I have created a model with taking analog input from data acquisition toolbox. Then when i want to run in external mode and try to connet to target, the following error is coming up:
    Could not execute target data map file 'untitled_rtwin_win32\untitled_targ_data_map' or it does not exist. Stop the target, delete the untitled executable, rebuild the code,and try again. Note that execution of external mode requires the build directory to be present...
    How can I solve this problem? For your info, I am using 32-bit matlab, version: 2012a
    For your info, a snapshot of the error is attached,
    Any help would be appreciated Thanks
    Attachments:
    Untitled.jpg ‏130 KB

    Hi Mahmudur,
    what does MathWorks say about this error message?
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • I have LabView but I do not have the Calibration and Configuration Palette,and I could not download it, how can I download it or if i cannot,can I work with the NI-DAQ Calibration_1200?

    I have read in a tutorial for the board 1200 that I can calibrate it with the Calibration and Configuration Palette in LabVIEW, but I do not have them and I could not download it to access its libraries, so I can only download the NI-DAQ software,What's my best choice and if it is to download the palette with its libraries, how can download it with them?I'd appreciate your answers

    If you wish to use your 1200 device in LabVIEW, you must download and install NI-DAQ. When you install NI-DAQ, it will ask you if you would like to install support for LabVIEW. By installing this support, you will then have access to the DAQ pallette in LabVIEW. The DAQ pallette requires that you have NI-DAQ installed.
    For more information on installing and using your device, you can refer to the DAQ Quick Start Guide. You can download it from:
    http://digital.ni.com/manuals.nsf/14807683e3b2dd8f8625677b006643f0/0eca53fe80911b1f862568560068295d
    Regards,
    Erin

  • How to set the User rights to use DAQ/IMAQ in WinXP as general(=limited) user

    When I install Software, written in LabVIEW (build an executable/installer), as administrator it works fine. But when I switch over to a user account with limited rights (we are talking about WinXP) it will not run and gives error messages. It happend to me at two almost the same computers, one with a DAQ-board, and one with an IMAQ-board. (At the computer with IMAQ1411 -> I also checked MAX -> errors/no access.) What to do?
    Attachments:
    DAQ_example.JPG ‏9 KB
    IMAQ_example.JPG ‏15 KB

    Hello,
    I investigated the issue further. To work around this problem you should add write permissions to the C:\Program Files\National Instruments folder. Be sure that all subfolders and files are awarded write permission. This should solve your problems. eventually you could break it up to one file which must be set to write permission but by setting the whole folder to write permission you solve this problem for many other drivers to so you would not run into this everytime you use different hardware.
    Best regards,
    RikP
    Application Engineering
    National Instruments
    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

  • No data output field in DAQ Assistant

    I am currently trying to read temperature from my NI WSN 3202. I have a thermistor connected to AI0 and AIGND.  I am following a tutorial to convert from volts to degrees F and everything has been working so far. 
    Once I reach the step for DAQ that is when I have issues.  I've created a simulated device (following another tutorial).  When I configure everything for DAQ, there is no data field so that I can wire it to my indicator and then to the formula block.  Can anyone assist me with this problem?
    Pictures have been included. (The picture that has the data field is what I'm trying to get to)
    Thank you in advance!
    Attachments:
    1.PNG ‏111 KB
    2.PNG ‏94 KB
    3.PNG ‏326 KB

    I would do as the error message tells you, reinstall DAQmx.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How Do I Use Examples for Visual C++with NI-DAQ?

    我有一张NI6723的卡,用the Measurement & Automation Explorer测试的时候,一点问题都没有。完全安照前面所说的例子(http://digital.ni.com/public.nsf/allkb/0087C1E2092​0F7B986256D9B0061DEE2),我用Visual c++建立工程后,编译没有任何错误。但是运行后就会弹出错误:
    [AO_VWrite] returned NI-DAQ error-104041
    The specified device is not a National Instruments product,the driver does not support the device (for example,the driver was released before the device was supported),or the device has not been cofigured using the Measurement & Automation Explorer.
    请问各位,这是怎么回事?

    用TRADITIONAL DAQ可能不支持
    M系列有很多卡不支持

  • Problem with DAQ in while loop and Graphs

    Hello,
    I'm new here so I apologize if I posted this on the wrong board  
    This is my "situation":
    I need to make a simple PID controller which takes information (process variable) from an outside source (a NI's DAC connected through the USB port ) which is accomplished using NI-DAQ as an input, and the PID's output goes to the second NI-DAQ which is also connected using DAC to an actuator which in my case regulates the air pressure. (VI attached)
    My problem is the following.
    Both of the NI-DAQ I placed using DAQ Assist, require to be in a while loop.
    -If I place them in separate loops, I have the problem of passing information between the Input NI-DAQ and the PID, and also between the PID and the Output NI-DAQ.
    -If I place them both in one big loop, an error occurs saying that the selected buffer size is too small (Error -200609).
    The timing settings for the DAQ's N samples, 100 samples to read at the rate of 1k (I also tried with Continuous samples and many different combinations of Samples to Read an Rate but without success).
    Should I wire them with the same dt(s)?
    The other thing I need to do (I'm also writing it here in order not to open new topics) is show the following 3 signals on a Graph (process variable (dynamic data type)(range 4mA - 20mA), PID output (double)(range 4mA - 20mA), and the Set Point (double)(range 0 to inf))
    Firstly, is it possible to show the first two on a scale from 0 to 100 without changing the PID's output which needs to be 4-20?
    Secondly, which graph should I use if I have different data types? (I tried the Waveform Chart, and succeeded in showing the first two; the third just messes everything up)
    I would also have to make a legend explaining which signal is which (I see that this is possible with the Mixed Signal Graph).
    I know this is probably too much to ask, but I'd be grateful for any help
    Thank you in advance
    Attachments:
    PID while.vi ‏100 KB

    My problem is the following. Both of the NI-DAQ I placed using DAQ Assist, require to be in a while loop.
    -If
    I place them in separate loops, I have the problem of passing
    information between the Input NI-DAQ and the PID, and also between the
    PID and the Output NI-DAQ.
    This is the best option---Use QUEUE or Functional global or something else to tranfer the data to and fro
    How  do I make that QUEUE or Functional global?
    -If I place them both in one big loop, an error occurs saying that the selected buffer size is too small (Error -200609).
    Have
    you tried increasing the buffer? Is the acquisition happening
    parallelly (means to say the first DAQ not wired (error terminal) to
    second DAQ)
    Well the buffer is, at least how I understood it, the option Number of Samples when in Continuous Samples mode. Concerning the parallel acquisition, do you mean I should wire the error ports of both of the DAQs?

  • Record all the data acquired by DAQ

    Hi all,
    I have a problem when I tried to record all the data acquired by the DAQ card. My DAQ is NI 6259, and the Labview version is 2009.
    Basically, what I need do is using multiple channels to get the voltages of different point, then I subtract values of two channel (V+ and V-) to get voltage value between two points. In my vi, the sampling mode is continuous and the rate is 100 KHz, DAQmx reading is inside a while loop, and the numbers of samples per channel is set to be 100. After each loop execution I would get 100 data.  I just used the format into file to write the data into a .txt file. It seems after 1 loop only the last one data is recorded instead of 100.  Previously I averaged the 100 data inside the acquisition loop to get one data, so the writing function is OK but it really slows down the program. So I want to write all the raw data to txt file so later I can process them in Matlab.  Is there any way to achieve this? Thank you very much.
    The attached is the my vi for 2 channels voltage measurement and the current source control sub vi. I am new to Labview so the question really bothers me even after I read some similar topics in the forum.
    Regards,
    Hongxiang
    Solved!
    Go to Solution.
    Attachments:
    Dual Channel Voltage Measurement.vi ‏33 KB
    Current Source 1.vi ‏49 KB

    Thank you for you reply. I tried that, it actually record more data per pulse than before, but less pulses were  recorded (there should be 8 pulses in 20 seconds time but only 2 were recorded), I think it was because the for loop inside slows down the program execution, and sometimes the error 200279 occurred.  I think it would be better to separate the reading and recording process. Someone suggests me rather than writing to the file inside the loop, accumulate the data from all of the loop iterations to generate one large array containing all of the samples then pass that to Format Into File outside the loop. Do you know how to achieve that? I tried the as below, it seems totally wrong , only two data was written. 
    (The subvi nameed 1 (see attachment) converts the 2D array to 1D ) Thanks.
    Attachments:
    2D_Data_Reader.vi ‏9 KB

  • Help with timing, input from Daq, output sound

    Hi
    I am a student member of OSA, working on a laser listener project to be used in examples for high schools students. It is a pretty old and simple experiment but something I think students would be into. {any suggestions for other experiments anyone might have I would love to hear} 
    I read a voltage from a Daq off a reciever circuit, that signal is noisey so I filter it for the human voice range, 60Hz - 2000Hz. Then that filtered signal goes to the play waveform express VI. It works but the snag is I keep getting a "beeping" in the output sound, I believe this is from the loop cycling.  I have thought of something like a master/slave loops, storing the data in an array then waiting a sec or two and playing the sound from this data so I dont have to wait on the Daq to acquire new data. Any help or suggestions are greatly apprciated.
    This is a rough version sorry about the mess. I think it should also be noted that if the "Time Duration" is larger that 0.02 then that makes the number of samples larger than what the Daq can handle.
    Thank you very much in advance for all of the help and your time.
    Jason
    Attachments:
    OSA example.vi ‏42 KB

    Hi Jason,
    I took a look at what is happening in the play waveform express VI and the issue may be related to starting/stopping the sound card every time the loop iterates, similar to what I suggested with the DAQmx VIs in my previous post. To look into the code behind an express VI, you should copy the express VI to another section of your code or to another VI completely, because once you show the block diagram for it, you will not be able to use the express VI configuration dialog anymore for that instance of the VI. Once you copy the play waveform express VI, right click on the copy and select "Open Front Panel." Then, navigate to the block diagram and keep opening the subVIs until you find the "Simple Write" VI (see below for a screenshot of this VI). Here, you will see that there is a "Sound Output configure" VI as well as a "Sound Output Clear" VI. Since these are within the while loop of your top level VI, the "beeping" in your output may be caused by the constant configuring and stopping of the sound card with these VIs. What I suggest is that you use the code in the express VI as an example to code your own sound output vi that is configured once outside the while loop and stopped once after the while loop. Hope this helps!

  • Index array is not getting new values from DAQ

    I am measuring force values with my DAQ card and these values are always changing.  However, in my programming something is not working right with the way I have things set up.  After my DAQ I have a "Convert to Dynamic Data" and after that I have an "Index Array".  When the program is executing and I turn on the highlight option I do not get changing force values after the "Convert to Dynamic Data" and therefore no changing force values enter my "Index Array".  Whaterever the first value is that gets passed to the "Convert to Dynamic Data" is the only value that I get for the remainder of the program.  I tried plugging in an indicator between the DAQ and the "Convert to Dynamic Data" and it did show varying values.  Please help with my program.  I have tried messing with the properties of the "Convert to Dynamic Data" and nothing has worked.  I am stuck and cannot see how to fix this problem.  I have attached my program as it is currently put together.
    Thank You In Advance,
    Gabe.
    Attachments:
    Actuator_Gabe_Oct27_Flat_Sequence_XY_+Measurement_File.vi ‏131 KB

    Please know that the best option is to review the concepts discussed to further understand programming in LabVIEW.  Perhaps you could take a look through ni.com/gettingstarted and ni.com/lv101 to have a look at some of the online help materials.  I have included a VI snippet of the while loop containing the changes.  Further, the code you attached contains a lot of customer controls and VIs, which are not common to all LabVIEW users.  It is a best practice to only attach the code of value to the question/post, and to have the most simplified version of the problem.
    Best,
    Adam
    Academic Product Manager
    National Intruments

  • The problem is that when I try to update my NI-DAQ drivers from 6.5.1 to version 6.7

    I have a Win95 based system running Labview5.1 which utilizes the PCI-6025E board with the BNC-2090. The existing version of NI-DAQ drivers is 6.5.1. The problem is that when I try to update my NI-DAQ drivers to version 6.7 I receive the following errors:
    1.The new software goes thru all the installation steps upto the point where it displays the message that it needs to restart to complete the installation.
    2. The system then reboots and displays the message," Completed Updating Window Files"
    3. Then I receive an error:
    'Rgdaqhce' performed an illegal operation and will shut down.
    4. The window closes and brings me back my normal Desktop display. The NI setup window appears and displays" Installing: Please Wait".
    5. Then it goes thru the NI-DAQ setup normally, choosing the PCI-6025E and the BNC 2090 doc options.
    6. WHen it gets to the point of selecting Documenatation PAth, Error: NI-DAQ SETup
    Cannot find installation information for :322153.
    At this point I just choose OK.
    Then it proceeds where it request the Development path, LAbview 5.1 and then it proceeds to copy all the files and then states "Installation Complete" and are ready to configure MEasurement & Automation Sys.
    7. The Measurement & Automation window appears:
    DATA NEIGHBORHOOD
    DEVICES & INTERFACES
    SCALES.. WHen I click on any one of the above I get the following message:
    " The configuration file has been updated from a previous system. If you save changes to this file it will be permanently upgraded to the current version." At this point I choose "OK"
    8. Then it states.."you must reboot for the changes to take effect. Would you like to reboot? YEs or No!". where the Data Neighborhood folder never opened..
    9. If you choose YES, the system reboots. If I open Measurement & Automation and click on Data Neighborhood again, I get the same above message as in #8 above. If I choose No at anytime to reboot, I get the following Error:
    " Explorer- Illegal operation and it will shut down"
    Then Measurement & Automation shuts down and brings me back to my windows desktop.
    SO no matter what happens I can never get into Data Neighborhood, it keeps going into this cycle.
    So I removed NI-Daq version 6.7 and re-installed version 6.5.1.
    What recommendations may you suggest in upgrading from NI-Daq 6.5.1 to 6.7 on this system? I would like to take advantage of NI-DAQ 6.7 new feature where LAbview for Windows Data Acquisition Library LLBs now contain function calls to a dynamic link library called LVDAQ.DLL, where the benefit of changing the VIs to call DLL functions instead of code interface nodes, CINs, where thet VI load time is dramatically improved.
    Any help with this matter would be greatly appreciated.
    In the meanwhile I am searching your support page here to see if there are any similiar situation..I have not come across any as of yet.
    Thanks for your help and sorry for such a long email.

     Hi,
    One of my ex-colleagues has installed a NI-DAQ 6.5 in our system. [And I do not see any other naitional instruments card in the CPU of the computer, may be he removed it] I deleted the account and all his files in the system. When I am trying to install version8.0, its not getting installed and giving me a message that I should uninstall the previous version by going to Add/Remove programs in the control panel.
    I tried doing that, but the "Change/Remove" button does not seem to work...[There is no response and so unable to install the new version...]
    Any idea how can this problem be solved?
    It is a windowsXP operating system with SP2 installed on a machine with P4 processor.
    Thanks

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

  • A problem with delays in timed loops and DAQ

    I am programming a simulation for nuclear rewetting for a visitor centre at my company in Switzerland. It involves heating a "fuel rod" and then filling the chamber with water. The pump automatically starts once the rod core reaches 750C. After this, a requirement stipulates that flow rate be checked to ensure the pump is operating at the necessary conditions. If it isn't, the heater must be shutdown to avoid, well... meltdown. However, we must allow 10 seconds for the pump to respond, while still allowing a DAQ rate of 10-100Hz.
    The challenge is that I can't add a delay in my main loop else delay all acquisition, but I can't figure out how to trigger a peripheral loop (with DAQ for the single channel of checking flow) from the main loop, and when the peripheral loop determines if flow has initalised, respond back to the main loop with the okay.
    I think much of my confusion is in the interaction of the loops and the default feedback nodes that labview is putting in willy nilly. Would the only solution be to have two 'main' loops that don't communicate with eachother but rather do the same thing while operating on different timing? Tell me if you want me to post the file (although its on an unnetworked computer and I didn't think it would be too useful).
    Thanks+ Curran
    Solved!
    Go to Solution.

    Here it is! It is not in any form of completion unfortunately.
    So reading in the temp with NI9213 and watercolumn height with NI9215, we determine to turn on the pump with NI9472. NI9421 determines whether the pump is on (there is flow) and I must respond accordingly.
    I have 3 scenarios similar to this one as well, so having redundant loops with different timing like I mentioned would be way to heavy. I think I may have though up of a solution? At the time the pump is initiated, we record the iteration and wait for a number of iterations that correspond to 10s to pass before fulfilling the pump shutoff requirement?
    Attachments:
    rewettin1.vi ‏15 KB

  • How to combine both DAQ AI signal, write and read file in single VI

    Hi
     I am the new user of LabVIEW version 7.1 for testing automation application. I have to measure 33 signals ( mostly analog like temp, pressure, etc...) from NI USB 6210 DAQ system and write in master file for future verfication.From real data or from master file back up have to write  one more file if only the signal reaches steady state , which will used for analysis and same signals to be read from this file parallely & make a waveform and/or table display format.
    Pl. help me to shortout this problem 
    note: I have plan to ugrade labVIEW version 2011 shortly, so let me know doing parrel acquistion write and read file for data analysis in same VI in version 7.1...... 

    Parallel operations in LabVIEW are very simple.  Just code it in parallel and it will work.
    Try taking a look at some of the examples in the NI Example Finder (Help > Find Examples).  There you will find example for writing to and reading from files, as well as data acquistion in parallel with other operations.
    You might need a producer/consumer architecture is you are acquiring data very quickly.
    Chris
    Certified LabVIEW Architect
    Certified TestStand Architect

Maybe you are looking for