Simulation loop write to file

I'd like to write to a spreadsheet the data from the two waveform charts in the attached VI. I've tried using the write to spreadsheet VI inside the loop but get prompted for a file name each iteration. When I put the VI outside the loop, all I get is the last value from the simulation. Is there anyway to simply store all the data from the simulation and then write the file after it is done?
Thanks,
Brian
Attachments:
WriteToFileExample.vi ‏164 KB

Hi Brian,
      I'm sure it's possible to write all the data at once at the end, though, perhaps it's enough to suppress the file-prompt?  The Excel Application has a "Display Alerts" property that can be set to False.  This assumes there's a default filename supplied to the "Save" or "Save As" method.
You can see an example that disables "Display Alerts" in the llb attached here. 
Cheers!
"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)

Similar Messages

  • Setting a loop to write a file using the UTL_FILE

    I never done this using the UTL file, so I am going to ask, I need to create a file that is looks like this
    H xxxxxxxxxxxx (the header same for the all file)
    I Invoice Data (Information on Each account Number)
    D (invoice Dtail) Detail information in each account
    D
    D
    D
    I  Invoice Data (Information on Each account Number (record 2 ) diferrent Account #n )
    D (invoice Dtail) Detail information on account2
    D
    D
    D
    I  Invoice Data (Information on Each account Number (record 3 ) diferrent Account #n )
    D (invoice Dtail) Detail information on account3
    D
    D
    D
    File Footer
    Number on invoices
    And totals I have the H the header the I (invoice Data) and D (detail) in cursors
    I wonder how I can set up the loop, so the information will ended
    like
    The heade on top of the file, not problem here
    but each
    I Invoice Data
    needs to have the respectively
    D detail lines
    I hope this is clear!!

    If cursors x, y, and z map to H, I, and D in your file spec, you would need to nest the D cursor within the I cursor
    FOR   x in  Invoice_data_cur
       LOOP
             utl_file.put_line(outfile,
               RPAD ('I', 2, ' ')
             ||RPAD (x.spriden_id, 9)
             ||TO_CHAR (SYSDATE, 'MM/DD/RRRR')
             ||RPAD (x.balance1, 13, '0')
               ---more stuff
       FOR  y in invoice_detail_charges_cur(x.pidm) 
             LOOP
                 utl_file.put_line( outfile,
                  RPAD ('D', 2, ' ')
                ||RPAD (y.spriden_id, 9)
                ||RPAD ('Previous Balance', 16, ' ')
                ||RPAD (y.stvterm_desc, 9, ' ')
                ||RPAD (TO_CHAR (SYSDATE, 'MM/DD/RRRR'), 10)
                ||RPAD (y.tbbdetc_desc, 50, ' ')
                ||LPAD(NVL (y.tbraccd_amount, '0000000000000'), 13, '0')
           for z in invoice_detail_payments_cur(x.pidm)
              LOOP
                   utl_file.put_line( outfile,
                    RPAD ('D', 2, ' ')
                  ||RPAD (z.spriden_id, 9)
                  ||RPAD ('Pending Aid ', 16, ' ')
                  ||RPAD (z.STVTERM_DESC, 9, ' ')
                  ||RPAD (TO_CHAR (SYSDATE, 'MM/DD/RRRR'), 10)
                  ||RPAD (z.tbbdetc_desc, 50, ' ')
                  ||LPAD (NVL (z.tbraccd_amount, '0000000000000'), 13, '0')
              END LOOP;      
            END LOOP;
    END LOOP;From a code clarity standpoint, if your file spec uses H, I, and D as a sort of row-type identifier, I would strongly suggest that your loop variable follow that convention or spell out the row type. That is
    FOR h IN Invoice_data_cur
    LOOP
      <<write header>>
      FOR i IN invoice_detail_charges_cur(h.pidm)
      LOOP
        <<write invoice data>>
        FOR d IN invoice_detail_payments_cur( h.pidm )
        LOOP
          <<write invoice detail>>
        END LOOP;
      END LOOP;
    END LOOP;Justin

  • Another novice question...I opened a file used "Concatenate String" to write to file creating headers and so forth...a "While Loop" routine is m

    onitoring a voltage and storing it to the same file under the associated header...What I'm having problems doing is after the loop is completed I need to write the MIN\MAX values of the voltage that was monitored in the "While Loop" once it completes. I juBefore the loop the "Concatenate String" peforms the following... line1 col.1 in an excel file is (Tester then Line1 col.2 (the testers name appears) next is a end of line. Then Line2 col.1 is (DATE)header then col.2(TIME)header then col.3(throttle voltage output)header then col.4(MAX VOUT)header then col.5(MIN VOUT) as i said this is perform before the loop with no pr
    oblem. Next during the "While Loop" the actual information for the DATE,TIME,Throttle voltage output,are inserted into Line 3 under the associated header with no problem. What I need to do is wait until the "While Loop" has completed to then store the MAX/MIN, but I can't seem to get the information to end up under the associated header. What do I need to set/use to accomplish this task? Thanks I've attached an excel spread sheet to give an example of where I need the values to be stored.
    Attachments:
    test1.txt ‏1 KB

    onitoring a voltage and storing it to the same file under the associated header...What I'm having problems doing is after the loop is completed I need to write the MIN\MAX values of the voltage that was monitored in the "While Loop" once it completes. I juThis can become hard depending on how much data you will be writing. If you could wait and write the data all at one at the end of the while loop it becomes easier. The problem is that when you write a file it writes it in rows of data not columns. I will attach an example (LabVIEW 6.0) that demonstrates how to do this. It is a hard to describe in text. Basically I create the new columns of data and write empty strings to them on each iteration of the while loop except for the first iteration. The first iteration I write a Max? and Min? into the column information. After the while loop is completed I search the array for Max? and Min? and replace it with the appropriate min and max values.
    Attachments:
    append_column.vi ‏47 KB

  • Read PDF Formatted Spool and write PDF File to Application Server

    Hi Experts,
    After ECC 6.0, HR-W2 and W2C Form Spools are getting generated in PDF format.
    We have a requirement wherein we want to read the PDF Spool Programatically and write the PDF file to Application server (Using OPEN DATASET and CLOSE DATASET)
    PARAMETERS : p_spono LIKE tsp01-rqident.
    DATA: pdf_data type FPCONTENT.
    types: lt_pdf_table(1000) type x.
    data:  l_pdf_data type standard table of lt_pdf_table,
           l_pdf_line type lt_pdf_table,
           l_offset type i,
           l_len type i,
           p_file(100) VALUE '\sapout\DVH\pdf2.pdf'.
    *Read the spool content
    CALL FUNCTION 'FPCOMP_CREATE_PDF_FROM_SPOOL'
        EXPORTING
             i_spoolid = p_spono
             i_partnum = '1'
        IMPORTING
               e_pdf = pdf_data
    *         e_pdf_file = file
        EXCEPTIONS
             ads_error = 1
             usage_error = 2
             system_error = 3
             internal_error = 4
        OTHERS = 5.
    * Modify the spool  contents to prepare internal table
      l_len = xstrlen( pdf_data ).
      while l_len >= 1000.
        l_pdf_line = pdf_data+l_offset(1000).
        append l_pdf_line to l_pdf_data.
        add 1000 to l_offset.
        subtract 1000 from l_len.
      endwhile.
      if l_len > 0.
        l_pdf_line = pdf_data+l_offset(l_len).
        append l_pdf_line to l_pdf_data.
      endif.
    * GUI DOWNLOAD Works Fine
    * Now pdf contents is ready , lets store in local PC
    *CALL FUNCTION 'GUI_DOWNLOAD'
    *  EXPORTING
    *   filename                        = 'C:\Documents and Settings\Desktop\shital.pdf'
    *   filetype                        = 'BIN'
    *  TABLES
    *    data_tab                        = l_pdf_data.
    OPEN DATASET p_file FOR OUTPUT IN BINARY MODE.
    IF sy-subrc <> 0.
      MESSAGE ID '00' TYPE 'E' NUMBER '398' WITH 'sy-subrc:' sy-subrc
              ' Error opening file:'(Z03) p_file.
    ENDIF.
    LOOP AT l_pdf_data INTO l_pdf_line.
      TRANSFER l_pdf_line TO p_file.
    ENDLOOP.
    CLOSE DATASET p_file.
    IF sy-subrc <> 0.
      MESSAGE ID '00' TYPE 'E' NUMBER '398' WITH 'sy-subrc:' sy-subrc
              ' Error closing file:'(Z04) p_file.
    ENDIF.
    Currently as you can see I have commented out GUI_DOWNLOAD Function Module, But it works perfect when I try to Download file to Local Desktop.
    But when I try to pass the same Contents to Application server file and then try to open it by downloading file then it opens BLANK pdf file.
    As per requirements I should be able to write the file correctly on Application server and If I dowload it from there it should open PDF file correctly.
    Let me know if you require further details about the issue.
    Regards
    Shital
    Edited by: shital phadake on Apr 8, 2009 9:39 PM

    Thanks Selçuk for your reply and taking time for understanding the Issue,
    I went thru Functionality of the program you suggested but dont think it matches my requirement.
    Regards
    Shital

  • How to over write a file on server using Dataset

    Hello Experts,
    Iu2019ve trying to write a code to fetch data in my program and create a file on server. My program work fine. However every time I run my program it append data at the end of the tile which it created 1st time. I donu2019t want this to happen. I want to new record to print on this file or in other words I want it to over write the file. Here is my code of dataset part.
    open dataset file for appending in text mode encoding default.
    if sy-subrc ne 0.
      write:/ 'File Opening/Creation Error'.
        exit.
    endif.
    loop at ivbrk.
      clear record.
        move ivbrk-headr to record+1(1).
        move ivbrk-vbeln to record+3(10).
        move ivbrk-waerk to record+15(5).
        move ivbrk-knumv to record+22(10).
        move ivbrk-fkdat to record+34(8).
        move ivbrk-kunrg to record+43(10).
        move ivbrk-kunag to record+54(10).
          transfer record to file.
        loop at ivbrp where vbeln = ivbrp-vbeln.
         clear items.
          move ivbrp-items to items+1(1).
          move ivbrp-posnr to items+3(6).
          move ivbrp-fkimg to items+11(13).
          move ivbrp-vrkme to items+25(3).
          move ivbrp-meins to items+30(3).
          move ivbrp-ntgew to items+34(15).
          move ivbrp-brgew to items+50(15).
          move ivbrp-gewei to items+66(3).
            transfer items to file.
        endloop.
    endloop.
    close dataset file.
    Can please somebody tell me what change I should make to over write on this file?
    Thanks a lot in advance.
    Moderator message - Please use code tags around your code
    Edited by: Rob Burbank on Jan 12, 2010 5:08 PM

    Hey zero:
    open dataset file for appending in text mode encoding default.
    Probably because you're opening it for appending.
    Rob

  • Write to file(AVI) synchronizate data

    I receive a USB Camera signal and a CAN(Control Area Network) signal.
    I like two signal parallel displaying and write to file (one or more) and after read.
    I practise IMAQ AVI Write Frame.vi with DATA.
    I receive USB Camera signal around 15fps (but this is not constant). Two CAN messages receive 10ms/sec.
    (200 CAN messages per sec -> 1camera signal/14 messages: I make a queue. When receive a Camera signal, than in all queue data associated with the image to write).
    I make two loop:
    First: read USB Camera and save AVI with data
    Second: read CAN messages
    My problem is bottleneck CAN bus?
    (webcam_can2.vi)
    Attachments:
    CAN_AVI.llb ‏465 KB

    Hi
    For the VI in the attachment (from the CAN_AVI.llb) the
    problematic part is the  " call library function node" which is defined
    as the wecanusb.dll.
    What should be done ? How the input
    parameters should be processed to be outputted by the " call library
    function node"  block  ?
    thank you..
    Message Edited by HIDIR on 04-23-2009 03:43 PM
    Message Edited by HIDIR on 04-23-2009 03:44 PM
    Message Edited by HIDIR on 04-23-2009 03:47 PM
    Attachments:
    examine.doc ‏56 KB

  • Write to file taking too long.

    Hi,
    I have a peculiar problem . I have used state machine architecture to build my code. In one particular state i write the data accquired and strore the wave form graphs as jpegs on the disk.
    File open and close happen only once outside the while loop. I am using "Write FIle" vi to write the data. Data is first bundled into a cluster and then writte. I use "Write JPEG FIle" to store graphs as JPEGS.
    When i create the executable and run, the program stops here in this state for an indefinite amount of time. (sometimes 60 secs, 80 secs)
    and then continues. Multiple tests have confirem that the problem is either due to file write or JPEG write.
    Can anyone please tell me the cause of error
    what happens to all the pop ups (errors thrown by labview when running the program) when the program is converted ino an executable?
    Rgds
    Prithvi.

    Hi prithvi,
    I suppose you work on a windows system. Windows may buffer the contents of a folder to allow faster directory queries. So sometimes your access is granted very fast,
    sometimes not (= getting new directory listing)...
    It's always a good idea to have a well structured folder tree for your files. Why don't you use subfolders for each measurement? Why don't you use a subfolder for each new day/hour, depending of the number of measurements done it that time?
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Input for CD Linear Simulation.vi in a Simulation Loop

    Hi I'm new to LabView and I was trying to implement a real time estimator for a linear system, so a steady
    state gain is acceptable (estimator doesn't need to be adaptive). It will be
    implemented in real time target (cDAQ). The estimator will get the acquired
    data (there are 2 inputs and 1 output) from the real system.
     I have learned and tried few different ways to do it but finally decided to try using CD State
    Estimator.vi (standalone) in a Simulation Loop. My questions are:
     1. I found that the only way to use the estimator model with the acquired input is by
    using CD Linear Simulation.vi. Is there another alternative to do the
    estimation?
     2. However, with CD Linear Simulation.vi I had problem: According
    to the LabView help, if the input signals are more than 1, we have to specify
    the input as 2D array with smaller dimension as the number of channels and the
    larger dimension as number of points in each channel.
     While for every execution in the loop I will get only 2 x 1 data (see appended array 3 in the
    attached example file). How can I be able to use the measured data as the two
    inputs for the CD Linear Simulation.vi?
     Thank you.
    Attachments:
    2015_03_31_Test DAQ in sim loop.vi ‏299 KB

    Hi Mike,
    Thanks for the reply.
    I browsed through some examples and tried some things; here are the updates, maybe useful for others in the future.
    About the CD Linear Simulation.vi; In the example finder I found CDEx Kalman Filter.vi which uses CD Linear Simulation.vi to compare the estimation with real system states for two inputs.  The number of samples of the inputs was given as a constant (e.g. N samples), from which the array of N x 2 data is built and fed to CD Linear Simulation.vi. So up to now I can’t see a way of using CD Linear Simulation for feeding input to the estimator model built from CD State Estimator.vi in a “real time “ way.
    I look forward to hearing from anyone if it can be done.
    So, from here I tried another alternative to implement this real time estimator: using Discrete State Space Function. So I generate the estimator state space model in Mathscript and feed it to that function.
    I use kalman (mathscript) function to generate the estimator model.
    Interesting thing is, (although irrelevant with my original enquiry), that this kalman command seems not generate correct estimator model with multiple input (e.g. if in the original system there are inputs u1 and u2 with one output y, I expect the generated estimator model would have three inputs i.e. u1, u2, and y. But the generated estimator only has one input (??)).
    I remember that the kalman command from Matlab has the same problem which I neglected at that time.
    So this time in labView I also did the same thing as the last time, which is taking the gain generated from the same kalman command and build manually the A and B matrices of the estimator.
    I haven't browsed though to see if someone has used this kalman command for multi input system and noticed this. 
    Nevertheless, this alternative seems working well so hopefully it works well too with the RT target.
    Thanks.

  • How to close a write to file express VI

    Hi, 
    I am using an Write to File express VI inside a subVI in LabVIEW 7.1.  Since it is in a DAQ loop it is configured to create only one file even though it is called many times. 
    The problem I am having is that when the subVI itself is closed and reopened the express VI does not prompt to create a new file.  Is there a way to get around this? 
    I am hoping there is some sort of invoke or property node that I can use on either the express VI or the subVI itself to close or "reset" it.
    Does a subVI stay in memory even after the front panel is closed?  I am guessing this is what is causing my problem.  Any ideas?
    I do realize the BEST thing to do here would be to simply not use an express VI but I am hoping there is a way to fix this without going that far yet.  From what I can tell LV7.1 does not allow me to convert an express VI to code which makes it look like it will take even longer to rewrite this.
    For now the solution we have in place is the following:  close the subVI, close the main program (the calling VI), and then reload.  
    Thanks,
    Dave

    dave,
    if i remeber correcty... there is a file path option will be available with the express vi... I actualy can not reproduce this here since i dont have LV 7.1. So if you feel that the express vi does not gives you a prompt for selecting the file path, then just place a "File dialog" function before the express vi and wire the selected path.
    Regards
    Guru (CLA)

  • Binary write to file slowing down my program

    I have noticed this more on some types of computers, but I have two threads going.  One that captures 10MB images and queues them, and another thread that dequeues them and appends to a binary file.
    If I disable the write to file, program chugs along well.  Once enabled, I noticed that the image capturing begins to act sluggishly, almost in sync with the writing to hard drive.  I have tried changing the write loop priority to the lowest as well.
    It isn't holding up at the queue/dequeue step either.  Any pointers on what to try?  I'm almost certain that there is a memory sharing issue where one process is writing to 10MB image to memory, while the other is reading a 10MB image from memory, and this is tying things up.

    dre99gsx wrote:
    The main VI which hosts both of these loops is setup as User Interface
    There's the problem, I think. The user interface subsystem is special - it's a single thread. This is required for certain things (interactions with the operating system and user interface, some external DLLs and ActiveX components) that require a single thread. In general, don't run your code in the user interface system unless you have a specific reason to run it there. As an example, property nodes that refer to front-panel items cause a switch to the user interface thread, so if you have VI that uses a lot of references to update the front panel, that VI should run in the UI system. In your case, if you switch your main VI to Standard and leave the subVIs set as Same as Caller, I think you'll see a similar speed improvement. There's more information about LabVIEW threading here, although that information is slightly out of date; if I remember correctly (couldn't find the reference in a quick search) LabVIEW now allocates as many threads per system as there are processor cores in your CPU, but not less than 4 per execution system with the exception of the user interface.

  • Read/Write text files in LabVIEW

    We have developed an instrument control and data acquisition system for a mass spectrometer using LabVIEW FPGA. Currently we have 6 counters on the FPGA, counting for 1 second intervals and transferring data to the host using a FIFO. 
    The data, as a local variable, is used in several different parallel loops on the host. One of these is coded to write the data to a text file. Unfortunately everything we have tried has failed. It is proving impossible using either the write to file VI provided with labVIEW, or to use the Open file, write and close file utilities. Each attempt has failed. Yet when running a dummy code we can write to files. The dummy code consists of 6 random number generators running in one loop and the write to file VI in a second loop. The random numbers are transferred across the loops as local variables.
    Can anyone offer any advice as to what we might be doing wrong. We're beginning to feel as though we are banging our heads against a brick wall and getting very frustrated.
    Many thanks in advance for any suggestions.

    Hi Paul,
    you neither say, what is failing nor do you show any code... How should we help then?
    "impossible using ... the write to file VI"
    Well, usually they work just fine.
    "Each attempt has failed."
    In which way? Error number given? Did you use the debuging tools, like probing, breakpoints and highlighting?
    "as local variables."
    It seems you're not properly do program "real" LabVIEW code
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Basic simulation loop question

    Hi. I've been searching this board for quite some time, but couldn't find what I'm really looking for.
    I'm an absolute beginner when it comes to Labview. I'm working on a school project that includes controlling the pneumatic actuated inverted pendulum via Labview 2011 and cRIO9074, and I'm having trouble understanding all of the parameters in the simulation loop that grant real time simulation. What really bothers me are three parameters and their correlation: scan period (scan engine properties), step size and period (simulation properties). Right now I've achieved real time simulation with this parameters: scan period (10ms), step size (0.01ms), period (1(I don't know what unit)). When I try to change scan period to 5ms, the whole simulation speeds up twice ("simulation time" function displays 2s for every 1 second that passes in real time. 
    So can someone please explain these parameters in normal words (context help is confusing) and how to achieve real time simulation for desired sampling time?
    Thanks in advance! 

    There's more extensive help than the context help. Even from the context help, you can click "detailed help" to get to LabVIEW's help file. Did you look through this material? Here are a few tips:
    for real-time, only use a fixed step solver (RK1-4)
    choose the step size you desire, then select the "1 kHZ" or "1 MHz" clock. Select "Auto Period" and then you don't have to worry about calculating the period.
    Step size determines how much time is added to the simulation time every time the diagram executes. Period determines how many ticks of the hardware clock pass between every execution of the sim loop. If you want "real time" which implies that the simulation time passes at the same rate as actual time, then the "Auto Period" option will look at your step size, look at the clock you've selected, and automatically calculate the period required to run at real time.
    As stated in the help context, the unit of period depends on the clock you've selected. If you've selected a 1 kHZ clock, there are 1000 clock ticks per second and the unit of period (each clock tick) is 1 ms. If you select the 1 MHZ clock, there are 1,000,000 clock ticks per second so the unit of period is 1 us.
    Say you select the 1 kHZ clock and choose a period of 15. This means the simulation loop will execute once every 15 ms of actual time. If you want real-time, you should set the step size to 15 ms. This would cause the simulation time to advance at the same rate as actual time. If you set the step size to 30 ms, the simulation time will run twice as fast as actual time.
    I don't know anything about scan period; that is not a simulation parameter. Hope this helps, and good luck.

  • Using auto-indexing tunnels to write data files?

    Hi,
    I am using ni-motion controller to control a servo motor and collect position and torque data. I want to write the collected data to TDMS files.
    Recently I learned about the producer/consumer design pattern and I figured that would be a good approach to ensure that writing the files didn't slow down my data collection timed loop.
    However, I also figured out that my program seems to run well if I wire the data I collect to auto-indexing tunnels. Then I use a structure that only executes after all the data collection is done to write the arrays I built to TDMS files.
    Is there any reason that the latter method would be advised against? Can the auto idexing tunnels slow down my loop enough for it cause concern? I am only collecting about 5000 data points for each channel.
    Cheers,
    Kenny
    Solved!
    Go to Solution.

    Well, autoindexing tunnels don't write data files, they just accumulate data until the loop completes. If this is a FOR loop with a known number of iterations, the size of the output data can be allocated in one swoop, which is very efficient. If you are autoindexing on a WHILE loop, the final array size is not known, so LabVIEW needs to make a guess and and requires occasional new memory allocations whenever the last guess is exceeded. This is inefficient.
    One problem with these approaches is if the program or computer crashes. In this case the data in the shift register is lost forever, while if you would stream it to disk, you would have most of the data acquired so far.
    If you use a proper producer/consumer architecture, you should be able to asynchronously write the data and it will not slow down your acquisition. No need ot wait for the competion of data gathering.
    LabVIEW Champion . Do more with less code and in less time .

  • Simulation loop inside subVI inside a simulation loop

    First of all, let me just say, I've got to hand in my work in 24 hours so please any help will be appreciated.
    I've got a simulation loop inside a subVI inside a simulation loop. If I give the inner loop enough time to run, i.e make its duration smaller than the time step of the outer simulation loop. Shouldn't everything run smoothly? Or is this just a no-no with labview?
    Thank you

    Hi VicMackie,
    This help file on the properties of the Simulation Loop is likely to help you out.
    I believe from you posts that you're wanting the loop to run every second.
    Therefore you want to check "Synchronize loop to timing source" and set your 1kHz clock or set a 1kHz <reset> so that it'll reset on every invocation of the loop. From your post, I understand that you've already done this.
    As the period is in milliseconds, for a period of a second you'd want to set your period to 1000 milliseconds, which is the default (1000).
    I'd recommend leaving the step size at the default for now and just modifying the Timing Parameters tab to confirm whether the loop will execute every second if you set the period to 1000.
    Best wishes,
    Tori
    Student

  • Cycle/loop formation in simulation loop

    Hello
    I am having a problem where output of block 2 is input to block 1 and output of block 1 is input to block 2.
    There is a feedback node which allows to specify initial condition but it runs simulation only once. As far as I know while loop and simulation needs to be kept seperate.
    Shift register can be another method to upadte it every time. But then also my simulation loop will have while loop inside.
    Please see attched snapshot n it will give better idea
    T and q are input/output for eacjh other
    Thanks in advance. 
    Thanks & Regards,
    Kunal Raithatha.
    CTD - CLAD (I wish I can take off that A, and maybe use it later to replace D :-)
    Easy Tip :- "To copy an image to a VI icon, drag the image file and place it on the icon
    located in the upper right corner of the front panel or block diagram" ...If you know any
    more reply back.
    Attachments:
    Screen shot 2010-11-30 at 2.41.26 PM.png ‏12 KB

    As long as at least one of the outputs is fed indirectly by the inputs, then you will not have an algebraic loop. Otherwise, use the memory block which behaves like a shift register but takes into account the state of the simulation. The memory block is on the Utilities palette for Simulation.
    "There is a feedback node which allows to specify initial condition but it runs simulation only once"
    Do not use the feedback node; stick with the memory block. I am not sure what you mean about the simulation running only once, but the feedback node will not behave as you expect.
    Avoid trying to use while loops in your simulation. Do not try to introduce "states" (like shift registers) that are external to the simulation. Simulations do things like take minor steps along the way and sometimes even reject steps and start over, and your externally introduced state will be incorrect if this happens. For example, let's say you create a VI with a while loop that increments a value whenever the VI is executed. If the simulation decides to reject a step and take a smaller one, your increment will have already incremented and will not know to roll back its state.
    Hope that helps.
    Damon

Maybe you are looking for

  • Failure Caption not showing in playback

    The Failure Caption is not showing for me when I record a demo/simulation manually. I selected the Failure Caption check box for the click box options and entered caption text, but when you click outside of the click box area nothing displays when pu

  • Dynamic naming

    When assigning a name to an object is it possible to do it dynamically? What I mean by this is can you name a list of objects with a name such as pic_# ( # is a number) within a for loop, instead having to write out every name,ie pic_1, pic_2, etc. T

  • Macpro sluggish

    I purchased a MACPRO in 2006... dual core Intel Xeon 3 ghz processors... upgraded from tiger to snow leopard recently... seemed fine.... couple months later mac feels sluggish... checked service provider... BTW I'm on a Apple airport wireless router.

  • How to identify the data mismatch between inventory cube and tables?

    Hi experts, i have a scenario like how to identify the data mismatch between 0IC_C03 and tables,and what are the steps to follow for avoiding the data mismatch

  • Itunes 11.1.3 has started to continuously quit after opening

    Hi there, I have a MacBook Pro on 10.6.8. For some reason my Itunes 11.1.3 has started to quit constantly. It takes a long time to check the library on opening up, and on opening lands in the apps that need updating section, freezes and then quits. I