On/off daq program

Hello,
I am trying to build a program that will do input and output through a daq.  I am reading data from three sensors and sending out voltage to three pistons.  I would like to create a program in which I can have the program run and be able to turn the pistons on and off without stopping the program.  I already have a setup that works for reading the data pretty well, I just can't figure out how to make an on/off and have the program continue to run.  Any help would be appreciated.  I tried using a waveform generator with different square wave duty cycles, but that doesn't work well.  Thanks in advance!
-stefenmcloven

I don't know how much my vi will help, there's not much there, but I'll go ahead and attach it.  I understand the case structure, but I don't know where to put it or what function I would use to change the voltage.  Thanks for your help!
-stefenmcloven
Attachments:
Hs sensor static.vi ‏74 KB

Similar Messages

  • How do I turn off audio program in background?

    How do I turn off audio program playing in background?

    Double-click the home button, select the audio app that is playing in the background and either put it in pause or exit the app.

  • Switching off a program

    we are implementing multiorg.we have a report for seven different countries which run the same report under different responsibilities.
    this report uses a package that gets the required data into it.now my functional spec says this program is switched off for two countries like greek and turkey because this report does not support the functionality for that particular countries.
    i need to change some logic in the package in that report.but i cant understand the meaning of switching off the program, as i am able to run the report from the responsibility for greek and turkey.
    i changed the logic and trying to run the report for greek and turkey but still getting the old output.is this anything to do with the switching off the program.
    this is AR reconciliation report.

    Yes it is customized AR auto recon
    Our development instance is recent refresh of the production instance and the auto reconciliation is turned off for greek and turkey in the production.
    I don't know how they do that but i think this might be the reason
    that i cannot run my changes in the development instance. Because when i run the same changes in other instance(a third one) i can find the difference in the output.
    I am not sure about this.any inputs for this?

  • Create a DAQ program and display results on with waveform and spreadsheet

    I need help creating a DAQ program that will read digital and analog channels and display on a continuous waveform, and then display readings on a spreadsheet

    You definitely want to start with the example programs. There are many of them which ship with LabVIEW and even more on NI's Example Programs Library (http://www.ni.com/devzone/libraries/default.htm). Also, if you are wanting to use an Excel spreadsheet, I would suggest getting the Report Generation Toolkit for Microsoft Office. It simplifies your coding immensely and will save you a lot of time.
    J.R. Allen

  • Accelerometer application DAQ programming

    I "inherited" a program and project from some seniors who have since graduated. They were using strain gauges to measure motion. They developed this rather large DAQ program in Labview to acquire the signals, compare them, calculate some things,.... It would take me months to decipher the code.
    I need help in developing a labview program that acquires both the accelerometer and horn data. Then the two are compared and the difference is calculated and sent to a data file as a Response time along with the original data of first movement and horn sounding. Can anyone please help me out?

    Hello,
    Your program will be fairly complex, but each of the individual components are commonly used, and there is a lot of example code out there that I would recommend you start with.
    The first, most important piece is the data acquisition. You must determine whether you are using a data acquisition card, or whether you have an instrument connected to the computer via GPIB or serial connection. After determining that, you can find some example programs within LabVIEW that acquires data (whether it be DAQ data or GPIB/serial data) and saves it. To access example programs in LabVIEW 6.1 and later, go to Help >> Find Examples. (In 6.0, go to Help >> Search Examples). Then navigate around until you find a suitable acquisition program. Great examples
    for DAQ, GPIB and serial can be found in the Hardware Input and Output folder from the Example Finder interface.
    The next part of your program is where you take the difference between the data and send it (and the original data) to file. File I/O examples can help you get started with this. I wrote a simple example VI and attached the screenshot to possibly help get you started, too.
    If you would like more detail about any portion of your program, let me know what type of acquisition you are performing (DAQ, GPIB, etc), what version of LabVIEW you have, and any other details that you think may help us reach a solution as quickly as possible. I would be happy to help further.
    Have a great day!
    Liz F
    National Instruments
    Attachments:
    difference_and_save.bmp ‏1234 KB

  • My DAQ program uses Traditional NI-DAQ in Visual C++ 6.0. I get error-10609 at SCAN_Start when run

    My data acquisition program uses Traditional NI-DAQ in Visual C++ 6.0. When I run the program, I get error -10609 at the SCAN_Start that states
    A transfer is already in progress for the specified resource, or the operation is not allowed because the device is in the process of performing transfers, possibly with different resources.
    Why do I receive this error?

    Hi,
    TThe error -10609 can result from several situations in which the device's resources are already in use.
    A Measurement & Automation (MAX) test panel is already open.
    If you open a test panel window for your device and attempt to run your application, you can get this error. If this is the case, close the MAX test panel.
    An AI Clear function was not used at the end of the previous acquisition.
    If you do not call the AI Clear function after performing your acquisition, the resources remain open. Be sure to call this function, inputting your taskID, at the end of the acquisition.
    Multiple programs are accessing the device.
    If you have multiple VIs accessing the device, or perhaps a LabVIEW VI and another application, the resource will be taken and you will receive the error. You can only run one application accessing the specific resource (for example, analog input on channel 0) at a time
    I hope this helps...and have a Great Day!
    George

  • DAQ program

    I'm trying to write a program that runs in a loop and samples 11 different channels on a NI USB DAQ 6343 device continuously. The first 10 channels are simple DC measurements, the remaining channel is an AC voltage signal, whose frequency I want to record. All of this data I will be writing to a .csv file at the end. I have attached my code and I'm working with the DAQ.mx drivers. 
    The question I have is, how do I measure and AC signal with the USB DAQ? I tried to configure analog input channel # 19 for "frequency, voltage" and then do a "read", howeever, it is telling me that the channel does not support that type of measurement. This AC signal is going through a BNC cable, and then to two banana adapters.
    Attached is my code, written in LabVIEW 2013.   Here is a screen shot .
    Solved!
    Go to Solution.
    Attachments:
    MAIN.vi ‏23 KB

    Look for the Signal Processing->Waveform Measure->Extract Single Tone Information.vi.  It performs an FFT and gives you the main frequency of the waveform.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • On-board multifunction DAQ programming ?

    I need to make the following sequence a certain number of times : generate a pair of voltages (from a list, or computed from the loop index), make a pause, and finally measure some input voltage.
    As I cannot rely on the timing of my VB program (either too slow, or erratic)  to make this step by step, I would like to program this directly on some board, buffer the measurements and, once the measurements are all completed, transfer them to the application.
    Which is the best way, and least expensive way to do this, using a (multifunction DAQ) NI card ?
    thanks

    Hi Ornito,
    Would you like to program it with LabVIEW and DAQmx drivers? Or other software?
    You can have a look on the Getting Started of DAQmx, you will find out some basic programmation tips and other helpful informations : http://www.ni.com/white-paper/5434/en
    Indeed, multifunction DAQ card will fit your application and you need to know what is the expected range from your measurements.
    Do you have any precise limits (price etc)?
    You should contact the sales service of National Instruments in your area, they will be able to suggest some products according to your needs.
    Best regards,
    Celine
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Journées Techniques LabVIEW
    Du 15 octobre au 7 novembre : Strasbourg - Lyon - Lille - Toulouse - Mar...

  • TS1424 Itunes error message on Windows 8:  Itunes has stopped working, then slams off the program!  Help??

    I cannot get my new Windows 8 computer to connect to Itunes store!  It shuts off Itunes every time, just saying the program has stopped working
    Any suggestions?

    I had this exact same problem.  I found this fix and it worked for me. 
    Step 1:
    Browse to C:\Program Files (x86)\Common Files\Apple\Apple Application Support and copy the filen named QTMovieWin.dll. 
    Step 2:
    Browse and past that file into C:\Program Files (x86)\iTunes.
    Hope this helps you.  I wish I could remember where I saw this originally so I could thank them.
    Good Luck.
    Anthony

  • After compile, run DAQ program just hang

    The exe program(LV2010) can running well. After I copied it to another laptop with only 2010 runtime installed, it cannot run just hang there after I click the 'start' button in my program. Even difficult to kill it.
    I also installed ni-scope and DAQ max on the new machine.
    Any suggestion, thanks.  

    Try calling the function from a different C program (exe or dll) and see if you see the same behavior as a you saw when calling the function from LabVIEW. I would also suggest compiling a debug version of the dll, call it from LabVIEW, and step through the code. Lastly, make sure you trap any error codes in the DLL to see if you are timing out, etc.
    Chris_Mitchell
    Product Development Engineer
    Certified LabVIEW Architect

  • DAQ program compiled under Win2k won't run under Win 95.

    When I compile a LabView 5.1.1 vi program that uses lvdaq.dll on my Windows 2000 workstation, that same program will not run on a Windows 95 notebook computer. Error code 21 (external subroutine could not be found) is reported for all standard DAQ vi's calling functions within lvdaq.dll even though the dll can be found in the program directory, the system directory, the vi.lib\daq directory, and via the system path. The same program compiled on a Windows 95 workstation runs on the Windows 95 notebook computer just fine. Why is lvdaq.dll not found when the program is compiled under Windows 2000? Do I need the same version of NI-DAQ on both computers?

    Larry;
    If you are doing NI-DAQ function calls on your VI you need to match the NI-DAQ version on both machines, otherwise, depending on what functions you are calling and what are the NI-DAQ versions, you might get some errors. Just for future reference, this procedure is good for NI-VISA (if you are using VISA VIs) and NI-488.2 (if you are using GPIB boards) as well.
    Regards
    Filipe Altoe
    Application Engineer
    National Instruments

  • DAQ programming

    Hi, I am a newbie for DAQ. (I have done some other LabView programming before) My target now is to do automated measurements on a couple of signals concurrently. I have managed to use the examples (eg. Cont Acq&Graph Voltage-To File(Binary).vi) in the LabView DAQ folder and made some modifications to measure two signals and store to a file. However, I wasn't able to get them to display in two different graph.
    At first I tried to copy and paste the whole sequence, but it didn't work because it seems like the DAQmx Start Task, DAQmx Read, etc. cannot be run at the same time (giving me some errors about it's busy). So I have to link up the different DAQmx Create Channel blocks in series. However, the problem of the result is they are displaying on the same graph.
    I suspect the "data" output of the DAQmx Read is some kind of array that we can extract the data out from? But I am not sure how the structure inside the "data" output looks like. Any advice about how to separate the graphs will be a great help! Thanks in advance!

    Thanks everyone for the tips. I managed to get the two graphs data out now. However, I am now stuck in another problem. Basically what I need to do is to capture a couple analog signals and save them in a file that's readable. So I used that "Write to Spreadsheet File" VI. Also, I would like to put the data in a graph while acquiring data.
    So now, I'm just modifying the "Cont Acq&Graph Voltage-To File(Binary)" VI and the "Graph Acquired Binary Data" VI. The problem is that
    1)if I picked **Analog 2D I32 NChan NSamp** for the DAQmx Read block, I will get an unscaled data readout to the spreadsheet, as well as the graph in the VI. However, the graph output from "Graph Acquired Binary Data" VI will be scaled to the correct voltage.
    2)I then picked the **Analog 2D DBL NChan NSamp** because it will give me scaled output to the spreadsheet file. However, the problem now is that the graph output from "Graph Acquired Binary Data" VI is not scaled correctly anymore...in fact it's quite messed up.
    So I went into the "Graph Acquired Binary Data" Block Diagram and see. I found this constant "0" with an arrow saying:
    The representation of this constant needs to match representation used
    in the Cont Acq & Graph Voltage-To File(Binary) example.
    In this case we use an i32. To change the representation right click on the
    constant and select Representation.
    So I changed that representation to a DBL. But then when I run the problem, the error "LabVIEW: End of file encountered". Any idea what I did wrong? Thanks in advance!

  • Kicked off edge program

    How do you get anything resolved with Verizon? I have been a loyal customer for 15 years with out any issues until I switched over to the edge program 9 months ago. The first month (April) was fine , on the edge $15 for each line and $100 for 10gig service. Second month accidentally kicked of the edge program fees at $40 per line. Countless hours on the phone and in the store each month still no resolve and quite a bit of money owed to me. Each time I speak with a rep they tell me to go ahead and pay the bill and it will be fixed by next bill. Nine months later no resolve. I am losing faith in Verizon they are not doing a very good job trying to keep their long time customers and just focusing on the new.

    It would be great if you could look at my billing from when my edge program started back in April and see where they discontinued my edge service the following month. I would like all my phones put back on the edge program at the $15 per line fee that I started with and apply the $25 credit for each of the 3 lines for all billing since be taken off the edge. I am not looking for any freebies just trying to receive what I signed up for. I understand that the payments will start back up on the phones and that is great. Just would like to get it all straight. I have spoke with many customer service reps that have said it will be taken care of since the beginning with no luck so far. If you could fix the mix up I would be thankful.

  • Best practice: "Turning off" concurrent programs

    We have a number of concurrent programs that are no longer used. In addition to
    application-side setup, some concurrent programs have corresponding files on the
    operating system that are no longer required; others have database code that is
    no longer required.
    Although most programs have been untouched, there are a few that people tried to
    clean up in the past: Some programs have been disabled via the Concurrent
    Program Definition screen; others have been removed from all request groups;
    still others have been renamed with "Old" appended to the previous name.
    Is there a recommended approach to this clean-up? What have you guys done?
    Carrie
    Carrie Hollack
    [email protected]

    Due to audit reasons you can only disable and not remove the programs from the system.
    Sam
    http://www.appsdbablog.com

  • I can't turn windows program compatibility off

    I enabled "turn off application compatibility engine" and "turn off program compatibility assistant" in computer configuration (through group policy edit) and also "turn off program compatibility assistant" in user configuration,
    and still when I try to install visual studio it says: "Windows Program Compatibility mode is on. Turn it off and then try Setup again". where should I turn off windows program compatibility? once I enabled "remove program compatibility property
    page" and now I don't have this page even after I disabled this setting. now how can I have this page back? Is there a command that I can use it in cmd to change these settings?

    Hi,
    Here is the workaround:
    Rename the EXE accordingly:
    Visual Studio 2012 Ultimate -> vs_ultimate.exe
    Premium -> vs_premium.exe
    Pro -> vs_professional.exe
    Express for Web -> vns_full.exe
    Express for Windows -> win8express_full.exe
    Express for Desktop -> wdexpress_full.exe
    http://connect.microsoft.com/VisualStudio/feedback/details/792132/visual-studio-2012-pro-wont-install-on-fresh-windows-8-1
    Also, refer to this thread for more information:
    http://social.msdn.microsoft.com/Forums/en-US/103cef36-e6ef-4393-86a2-3bd03fa90f48/windows-81-and-vs2012-sdk-get-error-windows-program-compatibility-mode-is-on-turn-it-off-and-then?forum=vssetup
    Alex Zhao
    TechNet Community Support

Maybe you are looking for

  • Rescuing a G4 and need help!

    Original hard drive in G4 started making bad noises and wouldn't boot. Was able to SuperDuper! it to my MacBook Pro (OSX 10.6) using an external enclosure and now have a .dmg file. The original drive then died -- less than two minutes after completio

  • I can't active my iphone 4s

    i buy from ebay and i cant access to my iphone

  • Problem in finding Exact result by using the following in Oracle Reports 6i

    Hello, I am finding difficulty in producing the required result by using the following query in Reports 6i (Note: - The query actual output and the my required output are as follows: -) SELECT DISTINCT SH.S_HEAD_CODE, B.BILL_ID, B.SANCTION_DATE, E.EM

  • HELP! laptop wont load past Welcome and warranty out

    I have an HP Pavilion g6 with Windows 7 Home OS. I have no repair disc/install disk as I bought it brand new with the OS already installed and ready to use.  I bought it in Fall 2011, so my warranty is out and I can't get help from Tech because they

  • Universal Dock + Mee 3G

    Hey Everyone... I've read a bunch of threads saying the universal dock doesn't charge the 3G, but others that say it does, but gives you that "not supported" jargon. Anyway, im about to order a universal dock from amazon but if you guys know the diff