LabVIEW measures two loops (cycle of Charge and discharge) of writing to a file

Hey,.

I was wondering if it is possible to write measures Labview two loops (stacked sequence Structure) in a single file. Currently, he prepares the loading of data in a single file and discharge data in a single file. I have to every time the data for the chart of the charge and discharge cycles combine and sometimes there are about 50 cycles and by copying and pasting is time consuming.

I'll try to upload my vi a little

Hi basketball.

I thought you loops run in parallel. In your case, you can simply use the same path for your files. Change the option to 'apend to the file. After these changes, the two loops must write to the same file.

Mike

Tags: NI Software

Similar Questions

  • Capacitor charge and discharge

    Hey!

    I have a mission to do a simulation on load and uncharging of an RC circuit. I have already created a VI on the search for the value of Vc (voltage of the capacitor) by the formula Vc = V * (1-e ^(-t/R*C)). I put that in a while loop and I wanted to get a graph of the wave, but I don't get a simulation of the curve when I press the stop button. I also want to create a loop of the case, with a Boolean switch so that I can do both: charging and uncharging, but I don't know how to do the part uncharging :/ I want to add that I am new to Labview, it been 3 days I started to watch the tutorials.

    Thank yyou in advance

    Salvation; I suggest that you take some labview base classes that might be useful to address these issues.

    For the probelem that you submitted, you must keep in mind that for the chart values of charge/discharge, tou must use time as a variable within your formula.

    Duration starts from zero and lights.

    So when the loop is running, you must calculate the iteration delay and put it (in seconds) inside your formula to extract the output Vc value at that time here.

    Remebmer to ALWAYS put a delay fixed (0.005 s in the case) inside the loops of your time to give time to the CPU.

    You can use waveform cards to update your graph of output at each iteration.

    In this example, the x axis is the number of the point. Each nr point refers to a range of sampling time 0.005 s.

    The output waveform chart nr 2 uses a node of formula, which is more convenient to calculate the result and gives the same results.

    Waveform graph (the exit out of the loop), gives you the exact moment correlation and it is available after the BREAK.

    You can evaluate the first moments of ms by using the zoom graphic tools.

    Now, you might be able to do it yourself the vi discharge, this could be a useful exercise.

    Kudos are recognized!

    Bye,.

    Marco

  • Siemens simatic wincc SCADA and LabView/Measurement Studio

    Hi all

    I am currently working on the design of wireless data acquisition system using materials. Input signals captured by wirelessDAQ NOR will appear eventually in WinCC from Siemens SCADA system.

    Is there a way to make this configuration? I thought to is to develop software for the acquisition of data using LabView/Measurement Studio and link code to WinCC via Visual Basic (for example via DAQmx). Thanks for all your comments.

    Hi kid_26,

    I'm sorry.

    It is the only option.

    If you press the cost, write a VB6 to call DAQmx is an option.

    Sincerely, Kate

  • LabVIEW parallel for loop and OpenMP

    Hello:

    It's just a curious post, I just learned about OpenMP and I found that OpenMP helps you to parallelize loops in c about the same way that you can use the loop For parallel in LabVIEW.

    The loop For Parallel LabVIEW is being implemented under the hood using OpenMP? Or is it just a coincidence?

    No, it is not implemented LabVIEW parallel for loop under the hood using OpenMP. You might be interested to read this article on modern developments in the LabVIEW compiler architecture. Specifically, in this case, it's the DFIR technology discussed here that facilitates parallel for loop transformations.

  • RTF model. body with two loops and custimized footer

    Hello.
    I have a rtf model with a body and a custom footer. The body has two loops. The first loop x cheques and the second for loop for x elements of each control.
    The footer must be individually for each control. Is there a possibility of variable access from the first loop of the body in the foot?

    the structure of my rtf file:_
    header: vacuum
    body:
    <? for-each: Scheck? >
    An asfdfadsfasdf: <? One? >



    Article price
    <?-foreach: point? > <? name? > <? price? >
    <? end foreach? >

    Summe: <? sum (price)? >

    <? model: footer? >
    <? One? > does not work*.
    <? end model? >


    <? split-of-page-break:? > <? end foreach? >



    footer:
    empty space
    empty space
    empty space
    empty space
    empty space
    empty space
    empty space
    empty space
    empty space
    <? Call: Footer? >






    an excerpt from my xml file:_
    < root >
    < Scheck >
    < item > < name > Kunststoffe < / name > < price > 22000 < / price > < / item >
    < item > < name > Metalle < / name > < price > 100000 < / price > < / item >
    < item > < name > Holz < / name > < price > 6000 < / price > < / item >
    < item > < name > paper < / name > < price > 100 < / price > < / item >
    < item > < name > Kunststoffe < / name > < price > 22000 < / price > < / item >
    < item > < name > Metalle < / name > < price > 100000 < / price > < / item >
    < item > < name > Holz < / name > < price > 6000 < / price > < / item >
    < item > < name > paper < / name > < price > 100 < / price > < / item >
    < item > < name > Kunststoffe < / name > < price > 22000 < / price > < / item >
    < item > < name > Metalle < / name > < price > 100000 < / price > < / item >
    < item > < name > Holz < / name > < price > 6000 < / price > < / item >
    < item > < name > paper < / name > < price > 100 < / price > < / item >
    < item > < name > Kunststoffe < / name > < price > 22000 < / price > < / item >
    < item > < name > Metalle < / name > < price > 100000 < / price > < / item >
    < item > < name > Holz < / name > < price > 6000 < / price > < / item >
    < item > < name > paper < / name > < price > 100 < / price > < / item >
    < item > < name > Kunststoffe < / name > < price > 22000 < / price > < / item >
    < item > < name > Metalle < / name > < price > 100000 < / price > < / item >
    < item > < name > Holz < / name > < price > 6000 < / price > < / item >
    < item > < name > paper < / name > < price > 100 < / price > < / item >
    < item > < name > Kunststoffe < / name > < price > 22000 < / price > < / item >
    < item > < name > Metalle < / name > < price > 100000 < / price > < / item >
    < item > < name > Holz < / name > < price > 6000 < / price > < / item >
    < item > < name > paper < / name > < price > 100 < / price > < / item >
    < item > < name > Kunststoffe < / name > < price > 22000 < / price > < / item >
    < item > < name > Metalle < / name > < price > 100000 < / price > < / item >
    < item > < name > Holz < / name > < price > 6000 < / price > < / item >
    < item > < name > paper < / name > < price > 100 < / price > < / item >
    < Payment > HUNDERTACHTUNDZWANZIGTAUSENDEINHUNDERT < / payment >
    < a > Firma1 < year >
    < / Scheck >
    < Scheck >
    < element > < name > end < / name > < price > 2000 < / price > < / item >
    < item > < name > Metalle < / name > < price > 10000 < / price > < / item >
    < item > < name > Holz < / name > < price > 600 < / price > < / item >
    < item > < name > paper < / name > < price > 10 < / price > < / item >
    < element > < name > end < / name > < price > 2000 < / price > < / item >


    Thank you for helping me!

    Edited by: user12052573 the 19.05.2010 02:00

    Hello

    change your main loop shape

    This will create a new page with a section break for each change in 'Scheck. You can remove your split sentence of page break.

    -Karine

  • measure PWM duty cycle

    Hi all

    I have never done in time real before LabVIEW and have a pretty simple question.

    I know that there is a measure of pulse width as VI in the palette of waveform and it can be used to measure the duty cycle and frequency of the PWM. My question is, is it necessary to use this measure of vi on a platform time pulse width real (compactRIO, compactDAQ etc...) so that it works? In other words, can I just use normal LabVIEW to measure the duty cycle and frequency of the PWM?

    Is there an alternative to the duty cycle and frequency of measurement without using compactRIO or compactDAQ platform? My concern is because I did no real time programming and the deadline is tight and there is not a lot to invest in learning programming in real time.

    I just want to know the experiences of others who have done it before.

    Thank you

    Yours sincerely,

    chati

    Oh yes RT is not really necessary for sample DAQ of things like that.  If you have a condition like assess each cycle of a PWM, and if the signal falls then to send a command within the period of a cycle, then you want RT or FPGA to respond deterministically.  But if you agree with a bunch of samples taken, then evaluate the data after having been taken then a cheap DAQ card probably will work fine.

    Speed can be a matter of concern.  Lets say you have a square wave of 1 kHz at 50% duty cycle.  If you enjoy at 2 kHz, then you should be able to see that the signal is weak for a sample, then up for a sample and you can determine that the signal is at duty cycle of 50%.  But if you have your wave to the duty cycle of 10%, while most of the time, you will see two samples of low, thinking that it's 0% duty cycle, but then from time to time you will get a top and a bottom and get 50% of reading, who don't agree.

    This is why it is recommended that you enjoy at a rate at least 10 times faster than your input signal.  So if you have an example of signal of 1 kHz to 10 kHz.  Then, if your duty cycle is 10%, you will see a small sample of top and 9.  But even that might not be enough if you need to have more precision to your measurement.  Fortunately, NEITHER sells cheap and expensive material for that.  The hardware cheaper that might work for you is the following:

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

    or perhaps cela

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

    But you probably want to call OR and describe your situation and they can recommend the best material to use if you are not familiar with their offers.  Depending on your situation, you may be able to use an Arduino too.  NOR has a toolbox where it can collect samples and send them via USB.  The sent message can be the rated frequency and the duty cycle, but once again it is quite limited and does not have any help from NEITHER a material point stand, they provide just the box tool.

  • Two loops of event Structure: hang

    Hello

    I have a wired problem when I try to use two loops with two event structures (see VI below).

    The problem is that you can stop the measurement and close the VI with X but not to stop it only with STOP button: this would lock the façade.

    Here my (rather long and perhaps not quite understandable) description of VI:

    A structure must respond on the user interface and the other a certain action. The first uses only user events: change value button START, PANEL NARROW? and the value enum STATE changes. The second event structure uses those registered dynamically: start the event user & user close event. Action when the STATE changes from button should always be done. When you press start the startup user event disables the START button and activates a loop in the second structure that should make continuous measurement. Now, we can always change the STATUS button and information (this works). The measurement loop should stop if the STOP button is true. Later START is enabled again and we should be able to press START again. It does not work as the front panel is locked. Curiously the last implemented user action works very well: by pressing X of VI, the PANEL CLOSE? is called in the first loop and should stop the two loops: If the measurement loop is running, STOP is True first, stop the loop measurement. Then a secondary structure event waits until the JUDGMENT is again set to False. If the measure is not in the process of running the first loop stops. In both cases, the event close user is sent to the second loop, successfully stop.

    I'm really confused, because I have no idea what is wrong. I would greatly appreciate any help on this.

    Best regards

    Daniel

    Thank you very much! This solves the problem. I did not understand that structures of events queued events even if they are not "active".

    (Finally there is even no need one notifier, you can just change the value of the real STOP button and will raise the event close user, comapare attached, work VI)

    Thanks again,

    Daniel

  • Why these two loops while cannot work at the same time?

    I place two same while loop in the block diagram, and then use highligt and one-step run function to observe their parallel operation.

    But I discovered that this two loop operate alternately and cannot operate simultaneously.

    Can someone help me understand this?

    My software environment:

    OS: Windows XP SP3

    LabVIEW: student editions 2011

    CPU: intel P8400

    Hi, GerdW

    Thanks for the reply

    I post a video to illustrate my question.

    While I press a strong of the run, I find that these two loops does not begin at the same time.

    While the execution of a loop, the border on the other became dark.

    It seems that during an iteration in loop 1 run, the loop2 keep waiting. and then the loop2 iterate while loop1 keep waiting.

    I do not know why this happens

    Sincerely

  • Satellite L750 charging and the question of the random stop

    Hi all

    Recently I had problems with my laptop Satellite load.

    The laptop is running Win7 64 bit and is a Satellite L750 PSK2YA - 0LN028

    Now the problem is not that his load not but that he chooses to charge and no fees when he wants to. With the laptop plugged into current alternative to a real charger Toshiba (3.96 tested A 19.48V) the laptop charge for a minute or so normally with the animated icon (moving) in the set by saying "plugged in, load. Then all of a sudden the animation stops in the status bar, but it still says "plugged in, charging" 2 lights on the front of the laptop flashes orange simultaniusly (power and battery NOT AC led) and the computer will decide to drain itself of the battery, then stop without warning (with connected AC).

    This will happen under simple highload AND webbrowsing. My dough said Toshiba PC health integrated program is 'good' and that CPU Temp is not more 70% and the fan works as it should. When I remove and reconnect the AC adapter it will stop blinking and start to load for a minute and then start all over again.

    I tried to remove and reinstall the battery Module controller via Device Manager and Reset BIOS by disconnecting all power and hold for 30 seconds, these two methods do not fix my problem.

    The computer still works on AC if the battery is removed and the only devices I plugged in a USB mouse that is NOT plugged into the slot of the USB3.

    Any help would be greatly appreciated or if someone knows what that flashing lights twin mean on a table of errors, or something (because I can't find the online error codes). It's my first laptop and I bought this one thinking that I could do most of my stuff a desk would be, but it's just been a nightmare...

    Thanks in advance, if you need more info let me know.

    * @ EminemTMN *.
    You already opened a thread on this topic, but did not provide final feedback on the last post.
    http://forums.computers.Toshiba-Europe.com/forums//thread.jspa?threadID=76649

    Please do so in order to clarify the issue.

    *@TomGarcia*
    I recommend you test another, a good pile of work.
    Not quite sure if he s really make a battery but in all cases of problems of load, the battery should be checked as well as another adapter.

  • My iPad will not hold a charge and won't

    My iPad is showing a red - battery flat. If I connect it to the charger, it tries to go - see the white Apple logo and about 30 seconds later it turns off, but in another 10-15 seconds, it shows once again the flat red battery and the cycle continues indefinitely - red battery Logo - Logo - Off - red of the battery... Help, please.

    A few options.

    your battery is toast and can't hold a charge.

    Your charger may not give the battery what suits him so it cannot load.

    The cable is not making a good connection for recharging.

    Make sure that you use an iPad, not an iPhone, one charger. iPhone Chargers put only half as much power as the iPad ones.

    If you have another charger and cable, those Exchange and see if your iPad will charge. Be aware that if you are up to the Red level of the battery, it will take at least half an hour for your device be used.

    Also, look in the loading port and make sure that it is clean. As silly as it may sound a piece of lint can impede charging. Make sure that the contacts on your charging cable are clean.

    If you can try another charger and cable and your iPad still hold a charge then the battery can be turned. (they have a limited life span)

    You can contact your local apple store or service provider authorized and put in place an appointment to have the battery checked and possibly replaced. The tax is around $ 100 unless you have Apple care. If you do, and it's within the warranty period, replacement can be free.

  • Output graphics of two loops for

    I would like to see a graph of the output generated in both loops for.

    X: steps (i x I have two loops)

    Y: Y1 should graph the polar output

    Y2 should chart the Azimuthal output

    Probably very simple to resolve/upgrade in place.  (The output file works fine).

    Thank you

    Kevin

    Good work Kevin.

    I have some suggestions for you (I don't know what it will be eventually, because then maybe they're based):

    • If the data do not change over time, you can use a graphic instead of a graph; Whatever it is, reduce the necessary processing power by updating the two parcels only once for a full run of the outside loop (see below)
    • You have a lot of indicators that are not obviously necessary (they simply out what puts out control - off 4;) Stop 5; Polar; Azimuthal, etc.).  When you submit here, the code is more it is easy to understand and faster you get an answer (minimal document also helps understand us what all is for).
    • Use the decrement vi but don't take it off 1 (reduced the increase in code).
    • Avoid strain - explicitly cast I32 to double so that no appeal should be made to the Manager of memory running (will reduce your footprint of memory of codes).
    • Written file are intensive and bays of building CU generally allocate dynamically memory - try to avoid these as much as possible.  In your VI, you can write to the file once when all iterations are complete.  This will reduce the runtime of the VI.

    Anyway, there are a whole bunch of thoughts that you probably care to hear, but I hope they have been helpful.

    Cheers, Matt

  • two loops of consumer a producer, dequeue even item in two consumer

    Hello!

    What is the best way for the following:

    I have given in my loop of producer enqueu. I need this data dequeue-d in both loops of my intake, but I want to dequeu the same element in two loops.

    Of course if I take off in two loops, then the second loop of consumer will lose the odd elements and the first loop of consumer will lose the same elements.

    Thank you!

    Hello

    Create two queues or use notifiers...

  • synchronize two loops for written tdms data acquisitions

    Hello

    I have two loops of different data acquisition. A slow acquisition of CAN (10 s/s) and an analog acquisition faster (30 samples taken at a frequency of 300 Hz), I need to synchronize these data for tdms writes for later analysis in DIAdem.

    My example and the result in the DIAdem channel list is attached.

    Thanks in advance!

    Magnus

    Magnus,

    for a professional solution, you do not want to synchronize the devices on a hardware level. Since the material CAN work differently to 'traditional' DAQ devices, there are important things to take care of.

    Please look in the viewfinder to LV example for the word "CAN". For example, you can choose the example 'several cards CAN and DAQmx map Wfm Input'.

    Norbert

  • control of time of two loops

    Hi all

    Here, I'm a little stuck. I'm trying to control the execution of the two loops to display a picture, I need run the upper loop for example for 30 seconds, after that he needs to stop and the lower loop starts to run for 15 seconds and stop. and then the upper loop run again for 30 seconds and then the process continue in this way.

    So please, if you can share me your trick, which will be appreciated.

    Thank you

    Hello

    something like this should work.

    Best regards

    K

  • synchronization of two loops for...

    HII...

    I am using two loops for and I want each iteration for both loops start at the same time...

    in fact I want to sync between these two loops...

    so when the each iteration of the two loops will start at the same time then these will be synchronized...

    also if a loop takes more time in an iteration the other loop should suspend until the end of the iteration of the other...

    please me... thanks hlp...

    Hi samir,.

    two options:

    1: when both FOR loops should have same time iteration why not just put all the code in a loop FOR?

    2nd: when 1 is not possible/wanted, you can use a notification utility. Set the notifier early iteration of the first for a loop and wait for the signal in the second loop...

    3rd: use call loops and synchronize them...

Maybe you are looking for

  • How to disable Kaspersky modules in Firefox 39?

    I installed Kaspersky Internet Security today and discover that it has installed the 3 modules, I can not turn off:-Blocker dangerous websits-Money safe-Virtual keyboardI think I even said 'No' when I started FF and asked if I wanted to install.The o

  • Satellite C660 - white, mirrored stripes, white screen

    HelloI just got a problem with my laptop. It seems that there is a bad connection between my screen and the light-emitting diode: only got white strips, a mirror screen, a white screen or a screen flashing right now so I can not even move my mouse ca

  • Remote installation of XP on Thinkpad X200s

    Hello I have a X200s and tries to perform a remote installation of XP in a 2003 server machine. The first question I had was that the network drivers did not appear on the XP disc. I followed the instructions for use included in network driver XP dow

  • Nonlinear scale problem

    Hello. I'm changing to the input of an amplifier that I thought was linear, but it is not. I have a 0 - 5V signals from NI DAQ (USB-6002) card that is driving an amplifier 0-200V. This amplifier has what is "Blood pressure monitor" port BNC labeled o

  • cursor expires every 20 seconds in windows xp

    When punched information the cursor goes away QAND I have to place the mouse where I worked to return the cursor