OR USB-6009 daq sample following loss, while the loop iteration

Hello

I am trying to acquire and display data measured from a DAQ NI USB-6009 material using Labview 2015. I am using the wizard daq defined for the differential mode and n samples with the sample rate and the total number of samples registration by the user. My problem is that when the specified amount of samples is acquired and the while loop continues to the next iteration, some samples are removed (I know because I tested it acquire a wave of fishing and there is a noticeable artifact in the signal at times where the while loops - I downloaded a file showing this artifact in a wave of fishing that was recorded with a sample rate of 1000 Hz 500 samples of recording each) iteration which means that the artifact occurs every half second).

I think that this can be corrected by simply taking off the while loop daq assistant and specifying the number of samples you want the entire test to acquire. However, I would like to see the signal in a graph as its achievements and the daq can acquire data indefinitely until the user presses the stop which, to my knowledge, it would take a while looping. I downloaded my vi for reference, and any help would be greatly appreciated!

Set your Acqisition Mode on "samples continues."

N samples: reads the desired number of samples and stops.  Will read once again what DAQ Assistant is represented.  In other words, that there is a gap of time between readings.

Continuous samples: data acquisition just constantly reads the data.  The DAQ Assistant just gets the number of requested samples and data acquisition keeps just read and store it in the buffer.

Tags: NI Hardware

Similar Questions

  • Producing a XY chart in a While loop that adds a new point XY to the curve from each while the loop iteration

    I would like to plot data by using the XY graph as a Visual display. I have a While loop that creates a new point X and Y during each iteration. I need the XY graph to be in the While loop, because once the order to stop has been pressed the sis loop finished and the final graph to be displayed. The problem is that after each iteration, the XY graph display clears and watch point, compared to add the new point to the previous by a line connecting the two points. It works perfectly if I move the XY graph out of the While loop, but it only shows the XY graph at the end of the While loop. I would like to visually see the XY graph updated during the execution of the While loop. Any help would be much appreciated.

    Thank you

    You can add a data both point to a chart to a chart, you must pass the entire data group.  I would use a couple of shift registers in your loop.

  • While the loop does not stop until 2 more clicks

    I must say that I'm really not familiar with LV, but Im learning.

    So why is that after I clicked on low stop, I had to click my OK button twice, then my program stopped. Why can't it stop immediately?

    Furthermore, if I want to do some of the dice to table, which wire do I missed?

    Thank you!

    Hi RawtoLV,

    You have a while loop in loop a while. When you run the other while the loop stops when you press the stop button, the inner circle while loop always executes. Since your OK button use latch release, what I noticed is that when you pressed the OK button, it quickly into position from true to false, which never stopped during the operation of loop (maybe because of the wait). Can I ask what are you actually doing with the structure of sequence?

    I would suggest using the event structure in place (http://zone.ni.com/reference/en-XX/help/371361K-01/glang/event_structure/):

    Here are some information about the structure of the event:

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

    http://www.YouTube.com/watch?v=8eO64fo3Pho

    Warm greetings,

    Lennard.C

  • OR USB-6009 with op-amp to amplify the analogue output

    Hello.

    I use an NI USB-6009 data acquisition to send a signal to a proportional pressure regulator which varies the pressure of pneumatic system. Unfortunately, the controller of pressure requires a signal of order analog 0 - 10V and the 6009 can 0 - 5V.

    So I thought I'd build a small circuit with a gain of 2 to amplify the signal. See photos attached to a schema and the picture of the installation. The 741 operational amplifier is powered by a 24V DC power supply. 24V is a bit on the side high to the op-amp but I have this supply already built in and (using a supply of laboratory bench) the circuit works exactly the same in 12-18 v.

    Bascially, with voltages of entry of 5 up to 2 volts, the circuit behaves perfectly. The output is just the input multiplied by two.

    However, the output is never less than 3.9 volts (ish), regardless of the input voltage.

    Can anyone suggest a solution (or know where else to ask)? I really need to be able to control my production within the range of 1 - 10V.

    Thank you very much. John

    Yes, a LM358 should work.  You will not be able to get all the way up to 0 v, but it should get you up to 0, 5V or almost.  The LM358 is a dual op amp, then you will not be able to deposit into the same outlet as your 741.  You can probably get away with leaving half disconnected unused.  (Which is not true of all double operational amplifiers).

    Chris

  • SR400 while the loop does not work

    Hello

    I'm using LabVIEW for control SR400 through a GPIB card.

    I use SR400 to count the number of signal in a second, wait 0.05 s, then again count the signal once, wait 0.05 s once again, and so on.

    However, the while loop didn't iterate. When I started the program, it is only once.

    In execution of highlight mode, when an iteration is finished, he waited a long period starting the next. In normal mode, it doesn't have to iterate.

    Also when I clicked the stop button, it's been clicked. However when I wrote a very simple program, the stop button worked normally.

    In any case the button issue is not very important. I don't care that the program iterates forever or not. I just want to iterate.

    I searched the jury and had not could not any related problem.

    Is it better to attach my VI? The VI is in my computer lab.

    Thank you very much!

    This code just feels bad.

    (No real management mistakes, deep, stacked sequences FOR lines that are wired to iterate through only once, controls on the right and right to left, wiring weird code on average the last 10 items (Hint: means ptbypt with a length of 10 sample he would!).) If you want to use the wire of the error, the sequences would not even necessary)

    If the stop button does not reset, it means that the iteration of the loop does not terminate. It can fill in only if the two structures of the sequence ends.

    Have you tried running in execution, emphasizing fashion while looking at the diagram? Probably one of the communications is at a standstill. For example, the instrument sends really 6 bytes at the end? When you set the overall timeout and what is it?

  • RandomGen elements, case structure nothing if it's false, while the loop passes iterations, can not get the values in table outside the structure of the case

    Hello!

    I tried to build a trigger that triggers a true value each 1000 milliseconds (from the first real);

    which real command structure box to a value of the randomNrGen of the sample and place it in a table.

    but I would like to USE this table and I can't do this beacause I can not get out of the structure of the case.

    AND:

    the while loop ignores samples; If you run the vi and look at the speed at which the table fills, ypu notice it is not periodic: the first few items are inserted at 1 second interval, but then it jumps one;

    would it be because of the wait time 1ms?

    1. How can I create a structure that does this:

    If set to True, it samples a value from Genesis at random and places it in the table

    OTHERWISE, it does NOTHING, without zeros sent to the table just waiting for the next true and only the values sampled at True remain in the table?

    2. How can I stop it pop samples (multiples of 1000 in my case)?

    In conclusion: I need to be able to take samples on the sample generator and store them in an array of 3d in a zig - zag (1.jpg) way, but able to think about it, we need to go beyond these two questions.

    Please ignore the meter.

    Please help me!

    TibiG wrote:

    Thanks, Crossrulz!

    This did not omit all values and it works fine.

    Is it possible to get information in a case without making use of the large loop?

    My program will become very complex (I need to synchronize a magnetometer and a stepper motor to make a 3d map of the magnetic field of the magnet) and I want to do everything as simple as possible.

    If there is a way to get information about a case structure, other tnan using registers with shift on the big loop, and you know it, please show me.

    Thank you!

    You could also use a Feedback node, just keep it out of the structure of the case.

  • While the loop records all the data

    Hello

    I have a LabView program containing two while loops. The first is used to increment a frequency on our machine and the second, which is located in the first, used to take a certain number of points of data to this frequency. After taking these data points, the frequency is supposed to rise again. This happens for a set number of times.

    The problem I have is that the data file as the data points in the second then the loop are supposed to be written in does not display do not all the data points in the program should have taken. For example, if we want the first loop increment of 10 times and the second to take 5 data points every time, we expect to see 50 data points in our files. But we see only 10. The watch file always only an amount of data points equal to the first loop iterations. If we cut our data at that time.

    Someone has an idea what could be our problem?


  • While the loop Tunnel help

    I have a variable inside a while loop, that I want to access outside the loop, that is, in my VI, I have two indicators, one inside the loop and the other outside the loop.  The variable is incremented on each iteration.  However, I am not able to see this iteration of the loop.  I see that the last value of the variable.  Is there anyway for me to access the variable inside the loop as it is running.  In regards to my VI, is it possible for my indicator "inside" correspond to the indicator 'outside '?  Any help with this will be appreciated.  Thank you.

    Kind regards

    David

    Yes.  You must use a local variable of the 'Inside' indicator that writes to the indicator 'outside '.

    There are other ways to do so, such as pass the data via a queue or a notifier.

    The concepts of tunnels, flow of data, and that data is not available to that structure, it is finished, is all notions of LabVIEW.

  • Peripheral mass storage USB is recognized as DVD player while the original disc is missing

    Hello

    I use windows vista Home premium (32 bit) on my HP pavilllion laptop. After getting updated for service pack 2 for vista my dvd player was absent. I was using Microsoft fixit to solve the problem and the use of the internet by wireless USB reliance data card and my laptop has recognized this usb mass storage device, dvd player and I have uninstalled this usb device several times as I tried to restore to their original factory condition, but my problem has not been resolved. Help, please

    Hi ss_gour,

    Please see an additional post that resembles your problem with a possible fix:

    http://social.technet.Microsoft.com/forums/en-us/itprovistahardware/thread/d416cfcd-366B-4B50-B976-29b5edc169c1/

    I hope this helps!

    Debra
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • While the loop stops before the countdown ended

    Hello everyone

    I have a problem with this scenario:

    What I want is that I can enter a series of tables and then he will choose the first line being the first cycle of number is 0, the second 1 and so on. I want this loop to continue until I left my empty tables. The problem is when I test, it stops immediately, but when I select all seems to work fine.

    This is a program I am writing so he can control some pumps - I put in a number and weight, and then it converts it to a % of setpoint that will trigger the pump. When the countdown is finished then it should start the dosage with the following weight and time.

    I'm relatively new to labVIEW. I tried to look around, but I have not found who could help me, I'm counting on you!

    Thank you very much

    Theis


  • While the loop is in need of a countdown

    Hi all

    I use aTeststand/Labview/Vision system to watch different channels on an LCD screen. TestStand while loops but sometimes the expected text text LCD monitor is not captured and the 'little' will make a loop forever because the product of the screen shutsoff after x seconds. Is there a feature in Teststand where I can init a timer with a seconds value and start running? So if the LCD screen timesout after a few seconds the timer reaches zero and the while loop will ideally end move to the next step (or closing sequence would be ok). While running the timer in parallel with the acquisition of the vision.

    I could do in Labview but I have a lot of while loops that need this feature so much prefer a solution Teststand. LabVIEW would be at least 2 additional steps by while loop. An example would be greatly appreciated.

    I tried to download files from this site xyz.seq, but they save as html format am I doing wrong?

    Thank you, Chris.

    Try this, it can do what you want.

  • While the loop does not stop when the two values are equal using equal to comparitor

    Hello world

    I have a really, really strange bug. I have a LabVIEW VI that change a chain on a power supply. I have a start and a stop voltage and use a while loop to increment the device. For example if I want to scan from 1, 2V to 2.2 V in 0.2 V incremements, the program will end when "The current tension" = "stop the tension." And it works very well!

    However, when I start - 3 V and want to stop to say-0.8 (new in 0.2 V incremements) the program does not stop when "The current tension" = "stop the tension." I checked with the probe close to what should be the end of the race and - 0.8 V goes both of the entries ' equal to ' comaprison operator, but that his can't trigger a real result.

    It's very strange for me. Espeically as if I'm going - 0.8 V to-2 V but decrement of-0.2 V, the program stops correctly!

    I am very confused!

    See you soon!

    Search on: comparison of floating-point numbers

    The second thread is particularly relevant. This discussion was 2009, but you can find that the same "bug" being reported to enter the end of the 1980s.

    Mike...

  • While the loop does not stop within a structure of business

    Hi all

    I have a business structure that works an engine to a certain PWM when my metal detector does not give an amount greater than the threshold that is ' false '. The motor is controlled by a PI controller so a while loop is used inside the false state. When my metal detector exceeds the threshold I want the "true state" to perform but which does not occur. the entire program is a while loop which aims essentially to maintain the operation of the metal detector. How can I make the State of the switch works.

    Once you get the code is trapped inside the inside while loop, it will never be a Boolean wire change because change is outside. All you need is a loop that contains a structure of housing. Run your program with execution highlighting to get a better understanding of the flow of data.

  • While the loop and the passage of a string to a Subvi problem

    Hello world

    My problem is this: I have a MainVI and a Subvi, the MainVI is running a while loop in which the Subvi is called and goes to 2 parameters, 1 bool and 1 chain. the problem is, inside the Subvi the chain should be placed in a text box so that the user can see before pressing ok.

    Background of the present: normally "Get_DMC.vi" opens with just the text box and a button cancel, means to scan 10 characters of big entry. It still works fine. If the user selects the DMC model in the MainVI, it should only copy the dummy DMC of the MainVI (the above string) to the show, and Subvi in the text box as well as allow another button 'OK' for the opportunity to control themselves (Advanced) users.

    The Subvi is reloaded on every call because he'd be stuck in the while loop, I had not done that. Not quite sure why, if someone has an answer to that aswell please tell me.

    Many thanks in advance,

    Kind regards

    Pedro

    It might be that the writing of the DMC to "Value DMC" model that happens before the "reset DMC by default".  Try the error off DMC Reint default wiring to the value DMC error to force the order of execution

    Ken

  • While the loop within a box Structure runs only once a target FPGA

    I have a card OR cRIO-9012 RIO for the HIL system. I have a target FPGA file when I use a While loop within a while loop I use the box Structure to check a real condition inside I have the function of activation of the ports and selecting the analog and digital ports. But for my code the code runs only once on repeted times that we have in the LabVIEW environment.

    I also need help to optimize the code. I've seen people using While loop timed in the FPGA target I don't use in both cases.

    I've attached my FPGA with the Version of LV2012 file.

    Waiting for your comments.

    Thank you and best regards,

    Ganesha Moorthy

    You have while loops inside the structure to deal with a constant of false cable to the stop condition. These loops will obviously never stop so browse your outside while loop (containing the case structure) can never.

    This has nothing to do with the FPGA target, the same thing will happen in the development environment.

Maybe you are looking for