NiDAQmx DAQ-start push button panel

With LabWindows/CVI, I have a program that implements a NiDAQmx task (set up by MAX) in a dll and then can start to this task (via the call of data acquisition) of one of the two panels. The task is set up to collect samples of N of a trigger, and when all samples n (1000, in this case) gathered a callback routine is called to handle the data. When I start the task of a Panel, data acquisition works perfectly; When I go on the other, the data manager routine is called ever, although there is no error or warning. Both places will eventually call the exact same routines to start and stop the data acquisition task.

The only difference I see is that the first routine calls DAQ-beginning of the recall panel Panel control (called when you push the button START) and immediately leaves the callback routine. In the second Panel, I would like to do a certain amount of treatment after acquired it data, routine reminder calls a routine to "Begin the Acquisition", which starts the task of data acquisition and then goes in a loop waiting for the data to be acquired - than never, of course, given that the data manager callback is never called by the task NiDAQmx.

The fact that the second routine never gets out of the callback button routine could be playing the NiDAQmx task?

Hi pblase,

I found a somewhat similar situation discussed in this thread: http://forums.ni.com/t5/LabWindows-CVI/Processing-different-pending-events-in-a-DAQ-callback/td-p/10....  It seems that that callback routine may block your task reminder DAQmx since fires.  If you goal is just wait that post-processing was done, you will be able to implement an indicator to allow the waiting and the return of the callback routine so that you can wait for the task to finish in the main program.

Tags: NI Software

Similar Questions

  • Why push button and stop button does not work in the structure of the casing and buckle my VI? (code attached)

    I am a beginner. I'm trying to create a simple VI only switches beetween two types of signals like sine and triangle when someone press on the push button and at the same time, save the data in the file to my desktop. I also have a stop button which no longer record data.  Here are my questions and dproblems:

    1. when I press the button, it does not the true and false in the structure of the case so that I can see the triangle wave stops and begins the sine waveform table.

    2 when I press the stop button, I want the program still running, but the process of writing data in time the loop stops. I don't mind if the graph of the wave stops too but it would be better for the user to see the wave form is running, but the data will stop recording.

    3. Although the condition of the loop did not accept the local variable for the stop button inside the loop or within the structure of the case, so I put the button outside all the loops and the structure.  (I know that this is a problem, I do not know how to use a single button several times in a single code. The local variable did not work the world premiere? I have to?)

    4. the data file it creates hase a lot of lines and columns. I expect a time column and a column of mixed signals based on the push button amplititude this user press every time.  I did that with the acquisition of data and a sensor, it automatically gives me the voltage and time in a column. I tried 2D and 1 d and it has not changed anything.

    Thank you for your help

    Like you said, you read only your entries at the beginning, then whatever value they had before you hit run is worth to be seen by the rest of the code. Programming LabVIEW is based entirely on the data flow and parallelism. It is incredibly powerful and has led to its success over the years (coupled with graphical programming), but is usually one of the first things the new developers stumble on. This is a simple resource to familiarize themselves with its functioning. The function to highlight execution is a great way to watch how your application uses data streams.

    Simple code goes like this:

    • Containing the main code of while loop

      • Inside of the whole loop is all user interaction code or modify the code entry
      • Stop the terminal loop is attached to stop certain criteria or user selection of a stop button
    • Loop initialization above all if necessary
    • Closing referrals and communications, etc after all loop

    It's very simple code. If you want to watch in more advanced architectures that are scalable, Google "LabVIEW State Machine" or "LabVIEW producer consumer."

    If you are just starting, you should do a free training have the capabilities of LabVIEW.

    "Give me six hours to chop down a tree and I will spend the first four sharpening the axe.  -Abraham Lincoln

    Here are some free training focused mainly on LabVIEW and hardware tools to help get started.

    Training center of NOR

    NEITHER start-up

    -Hardware Basics

    -Guide of MyRIO project Essentials (a lot of good simple circuits with links to youtube events)

    -LabVEW databases

    -DAQ Application tutorials

    -CRIO Developer's guide

    Learning OR training videos resources

    Introduction to LabVIEW for 3 hours

    Introduction to LabVIEW for 6 hours
    Paced self-study for students
    Self Paced Training beginner to advanced, required SSP
    LabVIEW training Wiki

  • implementation of a push button

    Hey I just started using Labview and I need for a project on the recording of the results of strain gauge. I wrote a code for data recording, but I don't know if he needs calibration I use the NI 9237 strain gauge module and how to proceed to make the calibration? I tried the example find in Labview but its me gives an error and I do not understand FPGA. My second question is I want to use a digital input module to implement a push button so that the code turns on when its market and it stops logging when you press OFF. I do not know how that proceed and what is needed in the code to do this. I posted what I have so far and any help will be appreciated. Thank you

    "I don't actually like using the term 'guru', I actually perfer LabVIEW Overlord."  It really scared in the peasants of LabVIEW. »

    But seriously do anything is going to take a long time, is there no reason not to learn something.  Heck that's why universities, people are going to lose time to learn.

    Back to the original question a bit.  NEITHER offers calibration options

    http://sine.NI.com/NIPs/CDs/view/p/lang/en/NID/207895

    https://www.NI.com/services/calibration.htm

    http://sine.NI.com/NIPs/CDs/view/p/lang/en/NID/207957

    http://www.NI.com/white-paper/12788/en/

    Some hardware supports self-calibration but most don't.  You can also perform the calibration of your car, but I can't find the documents for this right now.  I think there is an example in the Finder of the example on calls to set the calibration offsets in the material.

  • How to create table of 288 HP push button in the PXI-6509 (3pcs)

    Hi all

    Need help...

    I am a beginner in labview. & her first time use OR for my project.

    We must push buttom about 288 HP control panel. We use PXI-6509 (3 pcs)

    & I do a code (in tie).

    but some time appear as a bug if we push a button push button after all. but some time is ok.

    Please correct the code.

    Thank you very much...

    It seems to work fine for me.  What do you mean by "sometimes appear like a bug?  How is it not behave like you want.

    A few recommendations:

    1. There is no logical reason for the node feedback on some of your cables of the error.

    2. you can turn some of your groups of buttons in a cluster.  This way you can work on changing the value of a cluster and do not have to set up 100's of changes made to the values of the individual controls.  You'd also be abe to easily use the cluster to table to transform your cluster of Boolean Boolean rather than building tables table by manually cabling up to 100's of controls.

  • How to control a box of series push button

    Dear Sir or Madam,

    I am relatively new to LabView and National instruments, but try to capture the response time of a human participant.

    A simple example of the tasks that I hope to accomplish is described as follows. I think that first of all, I will write a Labview program to present two pure sounds to the listener (one at a time), with a tone have higher than the other ground. In other words, pure acoustic sounds will be delivered to the ears of the listener through a series of regular computer headset. After listening to the two-tone, work of the participant is to discriminate which has higher ground, then press a button accordingly. My question is in relation to the buttons... It is my understanding that the buttons can be:

    (1) software buttons that are displayed on a touch screen computer.

    (2) physical buttons on a separate reply box which is connected to a serial port on a PC, or

    (3) physical buttons on a separate reply box which is connected to a material OR (an e/s of control map, perhaps!?)

    For some reason, he is I think understand that by using the internal clock of a PC is not reliable, due to the nature of multi - load Windows System. In other words, either by using a touch screen or a serial port on a PC is not a good idea; because if I do this, I use the internal clock of my computer, which can be interrupted by other programs running simultaneously on Windows System. In other words, the multitasking nature of Windows of the system will be inaccurate and unpredictable reaction time. It is also my understanding that, if I want a good accuracy reaction time (for example, down to words maybe 1 or 5 msec!?), I would need to use a separate clock which is designated only for this task. Once again, I'm stretching and trying to accomplish a task that is new to me, and I don't know if I'm not mistaken...

    I currently have several cards to control IO OR in my lab. They are the USB - 6216 BNC, PCI-6221 (with a block of connection BNC-2090), data acquisition 6062E WLS-9215 BNC and DAQ wireless. For the purpose of this new task, I think more on the use of the USB-6216 BNC or PCI-6221, if any at all. NOR sells any push button and related devices? So, I can use the clock inside a card of control of e/s? Or I have to buy a new set of devices?

    If someone could advise me on what configuraitons or options would work best for me this task, I'd be very happy.

    Sincerely,

    Fuh


  • Trying to create a push-button locking with digital inputs

    Hello world

    I am writing a program to control a motor with 3 push buttons, upwards, downwards and stop. I want the top button to lock when pushed and delatch when the stop or down are pushed. I tried the example program Latch.vi REARMABLE of this Web site, but no luck. It seems that out of the gate AND is indeterminate. I have attached to my program, any help would be great! Thank you

    Use Index Array to get the desired Boolean value of the table.  If you do the wiring one index, it will give you element 0.  With this, you can have all the switches wired to different pins of the same registry on your DAQ hardware.  Then, you can read a byte and unravel what bit does what.  You will also need to build Boolean individuale in a table before you write in the acquisition of data.  Here's a quick example:

    You must decide which games to buttons that bit.  I have not yet checked your lock algorithm logic.

  • I pushed buttons and now the screen one tinted sepia?

    original title: I pushed buttons and now it's all one tinted sepia?

    Hi, I was at my computer, typing, and I was trying to hold down the left button. I tried to type a letter near the shift on this side bar and I pushed buttons, and then it turned a sepia tint. I don't know what I pushed, I could have pushed the CTRL ALT FN or the WINDOWS KEY, but I'm not sure. I can't get the color back, but the computer works fine. Thank you.

    I would just add,

    No doubt, you can access your graphics card,

    Right-click on your desktop and select properties of the graph,

    Most of the sections have Restore / restore the default values listed.

    I would color enhancement would be a good place to start.

  • Update the Table with the push button

    Hi I want to update my table using the push button that requires a transfer of account

    For example a single account transactions into 2nd account


    I used this query, but his does not work

    Update of cb
    Set cb_acc_id =: block3.acc_id_target
    where
    cb_acc_id =: block3.acc_id_source;



    Concerning

    Wasim Ismail

    You may forgot to validate your update...

    BTW:
    your form will not recognize, you start a transaction and make an update in the database.

  • HP Envy23: Start Menu button does not work

    The Start Menu button has suddenly become unusable. The Home icon has been replaced by a sheet with the icon corner folded, and in a hurry, I get a message saying "the drive or network connection that designates the shortcut"Start Menu.Ink"is not available." Tried a couple of these corrections online and made sure everything is up to date.  Everything works well, except for this menu. Any suggestions?

    Hi there @Quetzle53

    Welcome to the Forums of HP Support! It's a good place to find the help you need, other users, the HP experts and other members of the support staff. I understand that the start menu works correctly for you. I'm happy to help you with this.

    If this just started to happen, it may be a good idea to start with a system restore, if possible. See the following link Microsoft showing the various recovery options in Windows 10, including system restore.

    Recovery in Windows 10 options - windows.microsoft.com

    First try restoring, and then if it does not give a shot with the System File Checker. The following link is a very complete description of this command and how to use it. The command SFC - run in Windows 10 - tenforums.com

    Afterwords to test and see if the normal is restored. If this isn't the case, then try the reset method described in my first link.

    Let me know if it works for you. If so please mark this message as a solution. If this is not the case, let me know any other details that you can, for example, error messages or other symptoms that you notice.

  • Push button problem

    I have a program I write has about 5 push buttons for a user to select the different scenarios. However if the user presses a button and then the other without turning off the first, then the two buttons are then immediately and that's why both scenarios run. How can I make sure if a button is pressed, it will turn off when another button is pressed?

    Dennis Knutson says:
    Just use the radio button control. ???  DK?

    best-use an enum, the drop-down list box, or control ring to select one of several "scenarios" as an option (and exclusive)

  • change the push button for control or indicator at run time

    Hello

    I have a lamp that can turn into power according to the value of a Boolean variable.

    There are two ways in which I can control the lamp.

    (1) manual mode in which the button must be used as control to change the value of the Boolean variable.

    2 auto mode) in which the value of the variable is changed programmatically. Push button must return to an indicator to indicate the value of the Boolean variable.

    I should be able to swith bw manual and automatic mode for the duration and the push button should switch to control and indicator respectively.

    For those who might wonder why it's necessary: there is a sign which must be controlled in manual/auto mode. in manual mode, operator will manually use the buttons as controls for updating the control variables, in auto mode, my control algorithm updates the variables, and the Organizer must be able to see which button is pressed and when. If the button should be the control of update of variables in manual mode and must be the indicator of the evolution of the variables in auto mode.

    How is that possible?

    A basic VI with three objects are attached, and the Boolean control variable is global.

    Did.

  • On the start menu control panel does not work

    When I click on the start menu control Panel icon, it says and I quote": {26EE0668-A00A-44D7-9371-BEB064C98683}"the RPC server is unavailable." All other icons are thus working computer, network, printers, etc all its only the control panel is not working. Two questions how to fix this and what is the RPC server?

    Hi I.Saenz,

    1. did you of recent changes on the computer?

    2 when was the last time it was working fine?

    3. do you have security software installed on the computer?

    Remote procedure call (RPC) is a part of Windows programs, which is "an interprocess communication technique that allows the software client and server to communicate." CPP is designed to provide a common interface between applications, making it easy for programs to communicate with the servers.

    Check if the problem persists in safe mode.

    Start your computer in safe mode

    http://Windows.Microsoft.com/en-us/Windows-Vista/start-your-computer-in-safe-mode

    Restart the computer to return to normal mode

    If the problem persists in safe mode then I suggest that scan you SFC on the computer that would be a system file corrupt on the computer search and replace.

    The analysis may take some time, so be patient. Windows allows to fix corrupt or missing files it finds. If the information of the installation CD is required to fix the problem, you may be asked to insert your Windows Vista installation CD.

    For more information please visit the link below.

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

    http://support.Microsoft.com/kb/929833

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Start test button does not appear after installation.

    "Start trial" button does not display after the first Pro Trial installed.

    I am sorry to inform that the Apps like Premiere pro CC, after effects CC, Lightroom CC 2015, these all applications requires 64 bit support.

    Premiere Pro cc is not compatible with 32-bit computers, so you cannot start.

    Please check the link for more details below:

    System requirements | Adobe Premiere Pro

    Only 4 CS version is available for 32-bit computers.

  • Went and found buttons panel

    Hi all

    For some reason any my Indesign CS4 shows nor the button panel. Window > Interactive shows that bookmarks, links and the Page Transitions as options. I tried all the workspaces (same interactivity) and the option to show the button panel does not appear. In addition, there is also no option to create a new button. Object > Interactive went as well.

    What happens here?

    the default plugin works with button panel is ButtonUI.apln under windows, the operating system is not mentioned on the thread.

    You can check that the plugin in the folder adobe Indesign program folder files (windows) or applications folder (mac).

    If it isn't found, just to re - install, (no need to uninstall)

  • Sort records by using a push button

    Hello

    I am new to oracle forms and I need help on how to sort the records using a button element.

    I have two blocks, let say BLOCK a (main block) and BLOCK B (detail). I have a default order by clause, say order by colonne_1 of b block.

    The question is, if I have two columns in block b (colonne_1 and column_2), how can I sort the records into column_2 by using a push button item?

    Thank you and best regards,

    Dave

    Hello

    Have you tried my solution? He made exactly according to your requirement.

    The EXECUTE_QUERY in the solution above required because you need to sort the records in another column. So, after setting the command records another column and show in this order, you must run the query again.

    Arun-

Maybe you are looking for