How to read the time and then run different parts of the codes?

I am new to LabView. I want to read the program running time and then decide what to do.
For exaple, if time is less than 1s, output sin signal;if time is more than 1s, output sawteeth signal. It is easy to be implemented in C or Simulink, but seems difficult for me in LabView.
Thanks.

Hi, Bill,
Thank you very much for your help.
I changed your sample codes a little bit to get moving graph. I have three more questons:
(1) If there are more cases, such as one for t=1s, the second for t=3.2s,and a third for t=6.9s, do I have to use multi-layer case structure, since it only checks the result if it is true or false?
(2)Does labview provide us something to have the function such as 'switch...case' or 'if..else' in C/C++?
(3)Is there anything for a time-based multi-segment function?
Best wishes,
Attachments:
example2.vi ‏55 KB

Similar Messages

  • How to read the code of html page

    Hi,
    I want to know how to read the code of html page through Java? And if anyone know the link of full implementation of Page Rank Algorithm in Java.
    Please let me know. I have to do the project on that topic.
    Regard
    Vivek

    Vivek_NITT wrote:
    I want to know how to read the code of html page through Java? Get the input stream from an HttpUrlConnection. Read from it like from any other stream.
    And if anyone know the link of full implementation of Page Rank Algorithm in Java.Which one?

  • The new version of firefox does not shut down when I close the browser it continues running in the background. In addition it opens Adobe Reader for a brief time and then that closes. Everything worked fine before this new version.

    Firefox automatically loaded a new version recently. The new version does not shut down when I close the browser it continues running in the background. In addition it opens Adobe Reader for a brief time and then that closes. Everything worked fine before this new version.

    See "Hang at exit":
    * http://kb.mozillazine.org/Firefox_hangs
    * https://support.mozilla.com/kb/Firefox+hangs

  • Does anyone know how to select text in Appleworks, click on the font button and then be able to scroll thru all the font so that one can see the text change as you scroll down the list, at present  I have to do it one font style at a time and then repeat

    does anyone know how to view text in Appleworks, to be able to click on the font button and then be able to scroll thru all the font so that one can see it change as you scroll down the list, at present  I have to do it one font style at a time and then repeat? Thanks jl

    Welcome to the Apple forums
    Your question really belongs in the AppleWorks community/forum.
    You can turn on fonts in actual type in the AppleWorks preferences.

  • Please help me. I've just lost my iphone so I related to my backup contacts on icloud to get my contacts back. But my contacts only show at the first time and then they dissappeared, my contacts was empty. How can I see my contacts?

    Please help me. I've just lost my iphone so I related to my backup contacts on icloud to get my contacts back. But my contacts only show at the first time and then they dissappeared, my contacts was empty. How can I see my contacts?

    If they aren't on icloud.com they are no longer in iCloud.  If you don't have another backup, I'm afraid they're gone.

  • I plugged my iphone 4S into my computer for the first time and then my photos were replaced with the ones from my old iphone, how do i get them back?

    i plugged my iphone 4S into my computer for the first time and then my photos were replaced with the ones from my old iphone, how do i get them back?

    Try restoring from the backup created at the beginning of the sync process:
    Without connecting your phone, open iTunes, go to Preferences, on the Devices tab check "Prevent...from syncing automatically"
    Connect your phone, right-click on the name of your phone when it appears on the left sidebar in iTunes
    Select Restore from backup, choosing your most recent backup to restore from
    Disconnect your phone and confirm that your photos are back
    Go back to iTunes>Preferences>Devices and re-enable automatic syncing.

  • How to read the date and time information of a file by labview

    how to read the date and time information of a file by labview? for example, created time and modified time.
    Solved!
    Go to Solution.

    if you need to know the last modification date of file:-
    "Functions->File I/O->Advanced File Functions->File/Directory Info.vi"
    This vi returns the value of file's last modification date. This is returned as U32 number. To see it in MM/DD/YY format you must create the indicator, right-click on it and select "Format & Precision" item from drop-down menu. Then select "Time and Date" format there.
    Thanks as kudos only

  • How do I find the report server name, and then run paper report from forms?

    How do I find the report server name, and then run paper report from forms?
    I am having a problem running report 9i from forms 9i (see below thread). How do I find out the name of the report server? I checked my C:\ids\reports\conf directory but don't see anything that gives me the name of the reports server. I also don't have a iashome directory.
    Also, I just want to run the paper report (not the web version).
    Thanks.

    Hi,
    please read teh Forms / Reports integration paper in teh Collateral section for Oracle9i Forms at otn.oracle.com/products/forms
    In summary, you have to create an external Reports Service that you can then give a name.
    Frank

  • I keep downloading Firefox 8.0 onto my computer but it still shows that I am running 3.5.6 (something like that). How do I get the downloads to actually install and then run?

    I keep downloading Firefox updates of 8.0 but it says I am still using 3.56 (something like that). How do I actually install the Firefox updates and then run them? They are downloaded but apparently they are not running. How do I make them run?
    My current version of Firefox continues to (not responding) when I try navigating and it is very frustrating. I am ready to uninstall Firefox and go back to Explorer. Help.

    found a fix... had this today.
    I deleted FirefoxExtensionsSetup within this folder:
    HD/Applications/Adobe Contribute CS5.1/SupportFiles/FireFoxExtension
    Then Firefox worked.
    Good luck to all... delete at your own risk.

  • My FaceTime isn't working properly. Every call I make a black dot appears on the camera in the middle (fixed onto the screen, and is not dirt), and the calls always fail. It would ring 6 times and then say call failed. How can I fix this?

    My FaceTime isn't working properly. Every call I make a black dot appears on the camera in the middle (fixed onto the screen, and is not dirt), and the calls always fail. It would ring 6 times and then say call failed. How can I fix this?

    If FaceTime ever worked properly for you, restarting your modem (and separate router/wireless if you have such) may help.  If the problem continues, try connecting at a different location to see if the problem is within your wi-fi.
    The black dot problem may mean you need to reset your iPod.  If that does not help, it may need service by an Apple Authorized Service Provider.
    If you need help with any of these suggestions, detailed help on each topic is available via Apple's Support pages:
      http://www.apple.com/support/ipodtouch/
    Message was edited by: EZ Jim
    Mac OSX 10.7.3

  • I have an HP Photosmart C4180 all in one printer scanner and copier, I can't figure out how to scan more than one page at a time and then send as a PDF file via email

    I have an HP Photosmart C4180 all-in-one, printer, scanner and copier.  I can't figure out how to scan more than one page?  It will only let me do one page at a time and then I have difficulty sending pages 1, 2 and 3 as one docuement.  Any ideas??
    Thank you, Jetteski

    Hello Jetteski,
    Hello Jetteski, Thanks for the post.
    Since you are running a MAC, check the below links for some excellent information on scanning.  Good Luck!
    http://goo.gl/M8Cl2
    http://goo.gl/cufK6
    http://goo.gl/OTQoR
    I work for HP but my posts and replies are my own....Thank you!

  • How to read the data file and write into the same file without a temp table

    Hi,
    I have a requirement as below:
    We are running lockbox process for several business, but for a few businesses we have requirement where in we receive a flat file in different format other than how the transmission format is defined.
    This is a 10.7 to 11.10 migration. In 10.7 the users are using a custom table into which they are first loading the raw data and writing a pl/sql validation on that and loading it into a new flat file and then running the lockbox process.
    But in 11.10 we want to restrict using temp table how can we achieve this.
    Can we read the file first and then do validations accordingly and then write to the same file and process the lockbox.
    Any inputs are highly appreciated.
    Thanks & Regards,
    Lakshmi Kalyan Vara Prasad.

    Hello Gurus,
    Let me tell you about my requirement clearly with an example.
    Problem:
    i am receiving a dat file from bank in below format
    105A371273020563007 07030415509174REF3178503 001367423860020015E129045
    in this detail 1 record starting from 38th character to next 15 characters is merchant reference number
    REF3178503 --- REF denotes it as Sales Order
    ACC denotes it as Customer No
    INV denotes it as Transaction Number
    based on this 15 characters......my validation comes.
    If i see REF i need to pick that complete record and then fill that record with the SO details as per my system and then submit the file for lockbox processing.
    In 10.7 they created a temporary table into which they are loading the data using a control file....once the data is loaded into the temporary table then they are doing a validation and updating the record exactly as required and then creating one another file and then submitting the file for lockbox processing.
    Where as in 11.10 they want to bypass these temporary tables and writing it into a different file.
    Can this be handled by writing a pl/sql procedure ??
    My findings:
    May be i am wrong.......but i think .......if we first get the data into ar_payments_interface_all table and then do the validations and then complete the lockbox process may help.
    Any suggestions from Oracle GURUS is highly appreciated.
    Thanks & Regards,
    Lakshmi Kalyan Vara Prasad.

  • Selecting one cursor at a time and then reading its value

    I am a novice LabView user. I am trying to develop a program in which I have to select portions of a waveform and delete the outliers.  The problems I run into is selecting cursors at a time and then reading its value. I was using Active Cursor. Ideally what I need is to read read values of the first two cursors, cursor0 and cursor1 and remove outliers in the region and then move to region between cursor1 and cursor2 and so on. Is there a way to control which cursors are active, read its value and then move to the next set.

    Hi binc,
    I have attached a VI that should remove outliers. This may not be the best way to do it, but it is one possibility.
    Thanks,
    Paul B.
    Motion Control R&D
    Attachments:
    Remove_outliers.vi ‏20 KB

  • I keep getting an error message when downloading a new app which states " Zinio and 5 other apps cannot be purchased at this time" and then it let's me purchase the app that I was looking at? Can anyone explain that?

    I keep getting an error message when downloading a new app which states " Zinio and 5 other apps cannot be purchased at this time" and then it let's me purchase the app that I was looking at? Can anyone explain that?

    apple_master New Delhi, India
    This solved my questionRe: Unable to Purchase 
    Apr 16, 2012 10:22 PM (in response to eight4seven)
    This worked for someone
    I had this problem for about six weeks. I was following this forum but was too unsure of what might happen to try the fixes that were suggested.
    About two weeks ago I decided to delete the downloads.28.sqlitedb file (usingDiskAid(a free program), on a PC running Windows 7). The original downloads.28.sqlitedb was 936 KB. The new one that the system created is 80 Kb., and has stayed at about that size. After about four days I also deleted all the other contents of the Download folder. Ten days later and still no more problems. Downloads are much quicker, nothing greys-out (as was happening frequently before).
    Everything has worked well since with no more error messages.
    I am using an iPod 4G, iOS 5.1 (originally iOS 5.0). I do not have a manifest file, and as far as I know, have not had one. DiskAid can search the whole "hard drive" on the iPod.
    Deleting downloads.28.sqlitedb and the contents of Downloads worked for me.

  • Extensions like Ghostery, WOT or AdBlock stop working after two or three times. Restarting the webpage in a new tab the extensions will work again for several times and then stop again. Has anybody an explanation or a workaround for this bug in Safari 5?

    Extensions like Ghostery, WOT or AdBlock stop working after two or three times. Restarting the webpage in a new tab the extensions will work again for several times and then stop again. Has anybody an explanation or a workaround for this bug in Safari 5?

    Remove the extensions, redownload Safari, reload the extensions.
    http://www.apple.com/safari/download/
    And if you really want a better experience, use Firefox, tons more choices and possibilities there.
    Firefox's "NoScript" will block the Trojan going around on websites. Best web security you can get.
    https://addons.mozilla.org/en-US/firefox/addon/noscript/
    Ghostery, Ad Block Plus and thousands of add-ons more have originated on Firefox.

Maybe you are looking for