Building a clock

I am having trouble building a clock that goes from military time to regular time. It starts at 0930 and goes to 1730. It then performs a subtraction of the times.

This is what I have to do.
Write a program that reads two times in military format (0940, 1705) and prints the number of hours and minutes between the two times. Here is a sample run.
Please enter the first time: 0940
Please enter the second time: 1705
7 hours 25 minutes
Use a Time class with a constructor that takes a military time as a parameter and a method difference that takes a Time object as a parameter and returns a Time object.
Note: The times should be input in the order in which they occur. For example, for 0940 on Monday and 1705 on Monday, the first time is 0940, and the second time is 1705. For 1705 on Monday and 0940 on Tuesday, the first number is 1705, and the second number is 0940.
Hint: To account for negative time differences, as in the second instance described above, add one day (24 * 60 minutes) to the difference and then find the remainder that results from dividing the result by the number of minutes in a day. That is, timeDifference = (timeDifference + MINUTES_PER_DAY) % MINUTES_PER_DAY. Note that this calculation will not make a difference in a case of a positive time difference, but it will make the proper adjustment in a case of a negative time difference.
PSEUDO-CODE:
Create a class Time
Declare instance fields hours and minutes
Constructor:
takes in a time parameter as an integer (military time between 000 and 2400)
set hours instance field as time divided by 100
set minutes instance field as time modulus 100
Get hours method:
Return hours instance field
Get minutes method:
Return minutes instance field
Difference method (takes in a Time object which is end time and returns a Time object which contains diff hours and minutes):
Create a time object (diff), passing in 0
startMinutes is this object hours * 60 + minutes
endMinutes is end object hours * 60 + minutes
timeDiff is endMinutes - startMinutes
convert timeDiff per timeDifference formula provided in hints
diff object hours is timeDiff divided by 60
diff object minutes is timeDiff modulus 60
return the diff object
End Time class
Create a TimeDriver class:
In main:
Create a scanner object
Prompt for and capture the first time in military format (between 000 and 2400)
Do the same for military time2
Create a start time object and an end time object, passing in the time1 and time2 values respectively
Call the difference method on the start time object, passing in the end time object
Display the time difference as a call to get hours and get minutes on the diff object that was the return variable on the call to the difference method
End TimeDriver class
Example program runs:
Please enter the first time:
800
Please enter the second time:
1333
5 hours 33 minutes
Please enter the first time:
1333
Please enter the second time:
800
18 hours 27 minutes
Here is the code:
* This take a Military time and returns a difference between
* the start and end time.
* @author (Jim Strohl
* @version 1
public class Time
// Instance fields (variables)
private int hours;
private int minutes;
// Constructor method
public Time (int military)
hours = military/100;
minutes = military%100;
public int getHours()
return hours;
public int getMinutes()
return minutes;
public Time difference(Time military)
int startMinutes = hours * 60 + minutes;
int endMinutes = military.getHours() * 60 + military.getMinutes();
int timeDiff = endMinutes - startMinutes;
int timeDifference = (timeDiff + 1440) % 1440;
int diffHours = timeDiff/60;
int diffMinutes = timeDiff%60;
Time atime = new Time(0);
atime.hours = diffHours;
atime.minutes =diffMinutes;
return atime;
Here is the Time Driver code. This drives the program and comes up with a difference .
import java.util.Scanner;
* This takes the Time program and test's it.
* @author Jim Strohl
* @version 1
public class TimeDriver
public static void main(String[] args)
Scanner in = new Scanner(System.in);
System.out.print("Enter military start time: ");
int t1 = in.nextInt();
System.out.print("Enter military end time: ");
int t2 = in.nextInt();
Time start = new Time(t1);
Time end = new Time(t2);
Time diff = start.difference(end);
System.out.println(diff.getHours());
System.out.println(diff.getMinutes());
The only thing that I get out when tested is : Enter military start time: 940.
I expect to get the start time and end time and the difference. Example 800 - 1333 = 5 hours 33 minutes.
Then when entering the a time of 1333 - 800 = 18 hours 27 minutes. The code needs to keep it from going negative.
Message was edited by:
Gem

Similar Messages

  • Help with asp code

    Helleo Everyone
    I have been given a website to ammend and although i am not new to dreamweaver and using asp within dremweaver i sometimes struggle dealing with stuff that may have not been created with the tools i am used to.
    I have a page that displays information relating to different clocks the page gets its info ftom an access table called tblmovements, in that table is column Called KitID and another column called details that has link information that would go to another page.
    Back to the main page all that i need to happen is when the user scrolls down to find the clock that they want i need them to be able to click on more details and for that to link to the page that is referenced in the details column in the table.
    But i am not sure on how to do this.
    The column kitID is a unique column.
    Can anyone assist
    Thanks
    John

    Hi Thanks for the response
    Below is the page that shows the information, then where it says details that would then link to the appropriate page.
    I did do a link using dreamweaver recordset to the column that has the link in it but every details bit went to the same page, so i understand what you are saying about identifying via the ID but thats the bit i am unsure of.
    <%@LANGUAGE="VBSCRIPT"%>
    <!--#include file="Connections/dbConn.asp" --> <% Dim Recordset1 Dim Recordset1_cmd Dim Recordset1_numRows
    Set Recordset1_cmd = Server.CreateObject ("ADODB.Command") Recordset1_cmd.ActiveConnection = MM_dbConn_STRING Recordset1_cmd.CommandText = "SELECT * FROM tblMovements"
    Recordset1_cmd.Prepared = true
    Set Recordset1 = Recordset1_cmd.Execute
    Recordset1_numRows = 0
    %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <%
    Dim objRS
    Set objRS = Server.CreateObject ("ADODB.Recordset") strSQL = "SELECT * FROM tblMovements ORDER BY KitID ASC"
    objRS.Open strSQL, MM_dbConn_STRING%>
    <title>Oakside Classic Clocks | Clock Makers - Kit Gallery</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="description" content="Oakside Classic Clocks' Gallery of clock makers Kieninger 'movement, dial, pendulum and accessories' kits." /> <style type="text/css">
    <!--
      @import url(css/global.css);
    .style3 {
          color: #990000;
          font-style: italic;
    .style6 {
          font-family: Georgia, "Times New Roman", Times, serif;
          color: #000066;
          font-style: italic;
    .style9 {color: #990000; font-style: italic; font-weight: bold; }
    .style14 {color: #990000; font-style: italic; font-weight: bold; font-size: small; }
    .style15 {color: #000000}
    -->
    </style>
    </head>
    <body id="gallery">
    <table width="100%" height="56" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td background="imgs/banner.gif"><img src="imgs/banner_l.gif" width="236" height="56" /></td>
        <td width="12"><img src="imgs/banner_r.gif" width="12" height="56" /></td>
      </tr>
    </table>
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td bgcolor="#000066"><img src="imgs/slogan.gif" width="485" height="24" /></td>
        </tr>
    </table>
    <!--#include file="incl/mainnav.asp" -->
    <div id="content">
      <h1 class="strapline">Kieninger Clock 'Movement, Dial &amp; Pendulum' Sets - For those who insist on the Best! </h1>
      <h2 align="left" class="strapline">Welcome to Oakside's  'Clock Makers' Gallery - On this page Frank has assembled a large selection of comprehensive clock makers sets to suit all styles of clock cabinets - each Set contains  a Kieninger mechanical Clock Movement  and a Dial and where appropriate, a Pendulum, the Weight Shells &amp; Fillings, plus all of the Accessories required to get your clock running. We believe that Oakside now stock the largest range of Kieninger Movements and Accessories in Europe! </h2>
      <h2 align="left" class="style14">  </h2>
      <h2 align="left" class="strapline">Each of Oakside's Clock Makers Sets include every thing you will need to get your clock running, including a Kieninger Mechanical Clock Movement, a Dial, a Pendulum, polished brass weight shells &amp; fillings,  the cable pulleys, the gongs, winding key and the fixings. We also include a drawing showing the primary 'movement,  dial and pendulum' accommodation dimensions and a template for  positioning the mounting holes required to fit these items into your  clock. On the 'Spares &amp; Accessories' page you will find special brass  rebate hinges, mortise locks, escutcheons, keys and brass screws and adjustable cabinet feet for leveling your clock. You may collect your pre-ordered/pre-paid kit and save the postage.</h2>
      <h2 class="style9">  </h2>
      <h2 align="justify" class="strapline">We also stock a huge range of <a href="kit_spares_accessories.asp">replacement parts</a> for Kieninger movements. </h2><h2 align="left" class="strapline">If you require a replacement Kieninger movement without accessories please <a href="movement_gallery.asp">click here</a>. </h2>
       <h2 class="style9">  </h2>
       <h3 class="style6"> You are invited to phone Frank to discuss your project prior to ordering a kit. If you are designing your own clock or are intending to modify an existing design, we suggest that you pre-order  your Movement set with a deposit of &pound;25.  We will then send you the Kieninger installation drawing so that you can ensure that all parts will fit and operate without later cabinet alterations.</h3>
       <h3 align="justify" class="style6">Please  note, when you purchase your mechanical clock parts  from Oakside, you are dealing with  a dedicated Longcase Clock Designer &amp; Maker, not just a shop! We  would happily examine you clock drawings to ensure that your design  will be able to accommodate the Kieninger movement of your choice; we  will also provide telephone assistance when you are installing the mechanicals and commissioning your clock - our expertise will ensure  that your new clock performs perfectly!</h3>
       <h3 class="style6">Thinking about building you first Grandfather Clock - We suggest that you visit the web site of <a href="http://www.van-vliet.org/dempseywoodworking/grandfatherclock.shtml">Dempsey Woodworking</a> in Canada. Frank has coordinated with   the sites owner who has prepared detailed construction plans for a longcase clock, in the style of our Winchester Grandfather clock. Please note that by modifying the depth dimensions on the plan, you can build this clock to accept any of our Kieninger 116cm movements. The web site provides an illustrated  'Step by Step' guide showing each of the constructional stages and you can down-load a free copy of the plans.</h3>
       <h5> For Grandfather Clocks around 80 inches high and taller we suggest a 116cm movement with a 280mm width dial.</h5>
        <h5> For Grandmother Clocks between 60 &amp; 70 inches tall consider a 100 or 93cm pendulum Movement with a 250mm width dial. </h5>
        <h5>For Granddaughter clocks we suggest a 93 or 80CM pendulum Movement and a 200mm width dial. </h5>
        <h5>For  Laterndluhr Style,  Large Wall Regulators with 116cm 'Seconds pendulums, consider Kits 24, 25, 26, 27 28 and 29. </h5>
        <h5>For Medium Height Longcase Wall clocks consider the 65, 80 and 93cm Pendulum Movements.</h5>
        <h5>For Smaller longcase Wall Clocks consider Kits 08, 09 and 09A. </h5>
        <h5>Shaker Wall clocks require a movement of shallow depth and are usually without chimes - Frank suggests Kit 09 .</h5>
        <h5>For Small Mantle Clocks consider Kits 01 and 02. </h5>
        <h5>For Large Mantle or Bracket  Clocks,  consider Kits 04, 05, 06 and 07.. </h5>
        <hr /><hr />
        <div class="clock">
          <p>
            <%
    Do While Not objRS.EOF
      ' Replace character retuns, ' and " characters
        strKitDescriptionShort = objRS("KitDescriptionShort")
        strKitDescriptionShort = Replace(strKitDescriptionShort, vbCRLF & vbCRLF, "</dd><dd>")
        strKitDescriptionShort = Replace(strKitDescriptionShort, chr(34), "&#34;")
        strKitDescriptionShort = Replace(strKitDescriptionShort, chr(39), "&#39;")
          strImgSrc = "imgs/clocks" & objRS("imgKitCatalogue") %>
          <dl>
            <img src="<%="imgs/clocks/movement_images/" & objRS("imgKitCatalogue")%>" alt="<%=objRS("imgKitCatalogueAltText")%>" hspace="10" vspace="10" class="img-gallery" />
            <dt><%=objRS("KitID")%> featuring the Kieninger
              <%=objRS("MovementName")%> </dt>
             <dd class="strapline"><%=objRS("Strapline")%></dd>
            <dd><%=strKitDescriptionShort%></dd>
      <h6 align="center" class="strapline">Price including UK &amp; Ireland delivery £<%=objRS("KitCostStandard")%></h6>
      <h6 align="center" class="style3"> Please note that we ship to Canada, the USA, Australia &amp; New Zealand and you get UK Tax Free Prices.  </h6>
      <dd>
          <h3 class="strapline">  You can view the dials etc available for this kit by <a>clicking here.</a>Details</h3>
      </dd>
      <dt class="strapline">Click to view the </span><%=objRS("KitID")%> <a href="kit_options.asp?KitID=<%=objRS("KitID")%>"> Options &amp; Prices</a> page. </dt>
      </dl>
          <%
    objRS.MoveNext
    Loop
    %>
      </div><!-- clock End -->
      <!--#include file="incl/footer.asp" --> </div>
    <!-- content End -->
    </body>
    </html>
    <%
    Recordset1.Close()
    Set Recordset1 = Nothing
    %>

  • Using pages to publish on Kindle

    I would like to create an ebook on pages and publish it for Kindle on Amazon.  Is is possible to preview the book on my kindle BEFORE I publish?  The amazon site makes it sound like the only way to do this (for Mac users) is to know HTML and use Kindle Gen.  I hope that is not true!
    Kate

    First of all, I'm starting with regular Kindle.  Not for Kindle Fire yet.  So these are for the basic Kindle that most people have.  Kindle Fire has other options, like the use of color and such that I might take advantage of.  But this book is not printed in color so I didn't utilize color.
    I did not reset my side margins.  I removed the top and bottom margins, setting them to 0 because Kindle defines them, not the document.
    Tiffs are fine BUT are huge in file size.  The image files cannot be huge because they will not load properly and could crash the Kindle.  My book, printed, is 8x10x440 pages with 27 full page b&w images and THOUSANDS of links with 954 anchors.  That's a lot of book.  That's even MORE ebook.  So concession must be made for the sake of the ebook on any non Kindle Fire ebook.  And remember too, that it seems that all the different readers have different specs.  I'm starting with Kindle and working my way out.  It's a major p.i.t.a. in general but not nearly as painful as I thought in Pages.  Actually, Pages simplifies the process a LOT.
    Considering that the images are b&w (mine are to start with) and you know how to convert a color image into a great b&w image in Photoshop by doing more than simply desaturating it (I know how to do that...simply desaturating will turn a color such as red to black so it looks awful.  There is a simple process to convert, but desaturating is not it.) Why use a huge file like a tif for a b&w graphic?  It is simply ego and not common sense.  A gif that is set for 16 shades of grey, dithered and then saved at 300 dpi then resized down will look utterly amazing.  AND and the file size is quite small in comparison to a tiff.  AND a jpg isn't even as clear.  Other images will work...but they weigh down the file.  And my file data, alone is huge.  And the images are simply iimages....for looks not information.  That part is up to the writer.  You experiment.  This is what works for my book.
    I insert the image at 300 dpi, into Pages...it's big.  I resize it manually from there.  Especially for the smaller images like fancy drop caps, that after I look at the document on my Kindle itself, I may want to adjust a bit.  Which is easily done in the original document, rather than having to redo the image, etc.
    I have examined my Kindle ebook by downloading the converted file from KDP and installing it on my Kindle and I fudge around with it from there.  It looks amazing.  the links all work (which is what I was stressing over) and I can't believe it was SOOOO much easier using Pages than other apps that I tried on the Mac and on the PC's (which make me crazy). 
    I've been fortunate to not have to do a lot of fixing in the HTML file that must be downloaded from KDP because the Pages HTML file is pathetic, so I don't even mess with that ever.
    KDP is NOT converting and fixing my formatting.  There is nothing to fix.  The book looked the same when I put the document on my Kindle BEFORE I uploaded it to KDP.  After I loaded it onto KDP.  After I downloaded it as a book from Kindle.  I'm quite impressed.  I'm ready to do my others now.  That was the MOST complex of the books, and the largest.
    The others are novels, poetry.  Such and such.  But the real challenge with Kindle now, and I will also publish it on iPad, etc. will be a young child's book that is in color, will have media and all that for Kindle Fire and other such devices.  I have yet to take on that challenge.  It's an entirely different animal. 
    When I was first starting my project (back when I had began it in Appleworks and then moved it to Pages midway) I was reading all the negativity and began to panic.  I almost bought Word.  But then I experimented with Word on one of the kid's PC's and it was so complicated and I thought this isn't going to be any better.  I tried NeoOffice and it could not handle the size of my document with all it's links.  I tried some other wp program Abi something or another and it was so slow with such a large document it could barely scroll to the bottom of a page.  Taking it up into Calibre was a joke.  Etc., etc. 
    I am still using Pages 1 for crying out loud!  My computer is so obsolete and my memory is limited.  I need a new machine badly.  But it was all handled quite well. 
    The one big problem that I had with this particular document is that because my memory is so low, I have 768MB of Ram (which is laughable) and cannot add more because I have a Powerbook 13" and it cannot go up more than that.  I could not export into a PDF file for Create Space.  I freAKeD!  I called Create Space and they told me to download their template, which is a Word template and use that.  So I did.  I downloaded their template, opened it in Pages, copy pasted my entire book into it from my original Pages document and then if you cannot, for any reason, convert to a PDF you simply upload THAT document made in the template to Create Space and it automatically converts to a PDF within their system.  Like magic.  Whew!  One really good thing about that template is that it has a TOC box that I used and it worked better than the Pages TOC did.  So I copied pasted that box into other documents and my goto TOC :-D
    You gotta' do whatcha' gotta' do.  Thank goodness there are work arounds when needed.  However, I've found that MANY folks will tell you how to build a clock when you ask for the time.
    This book was an education.  From there on it will be easy.
    I hope I clarified.
    Peace.

  • SCANNING PICTURES TO FINAL CUT PRO

    I don't know if this is the best place to post this but I am scanning pictures to put into final cut pro to do a montage, what is the best dpi to use for scanning pictures, when I put it in final cut I need to enlarge them a little but then it seems to pixalize the picture.

    to Ymir
    'Just like this site to tell you how to build a clock when you simply ask what time it is.'
    well its 15 degrees centigrade here, what time is it with you?
    so how does this help Bill when he asks for some help with scanning?
    well it would help to provide the correct measuring system for a start. In this case it would be pixels for the frame size he is using and definatly not dpi
    'I make photo montages all the time and I scan at 72 dpi.'
    Your workflow may well end up with an adequate result for your situation, but how can that possibly help anyone else? Stating you scan at 72dpi is meaningless when you know nothing about the posters requirements or set up.
    what is being scanned, a transparency a print?
    what size is the original?
    what is the optical resolution of the original?
    what equipment is being used?
    what is the final frame size required, is it SD or HD-DV NTSC or PAL?
    To Bill I would suggest; simply scan the originals to produce a file at the video frame size your working on; for example, if it is for PAL DV video it would be 720x576 or 720x480 for NTSC DV. You may want to scan for a larger frame size to allow for enlarging or positioning the image.
    refer to the Final Cut Pro Manual vol III page 339 which explains all the above.
    G

  • How to update combobox that with xml source binding when xml updated in Powershell

    I'm just newbie to WPF & Powershell. Currently have a Powershell program with XAML UI. Herein a combobox control binding a xml file. The problem lays in how can I update the combobox once xml updated? Thanks in advance!

    Hello sihat,
    I've read some articles about using PowerShell and WPF:
    https://msdn.microsoft.com/en-us/magazine/hh288074.aspx
    http://blogs.technet.com/b/heyscriptingguy/archive/2014/04/06/weekend-scripter-build-a-clock-widget-by-using-powershell-and-wpf.aspx
    It seems the steps are all related to using PowerShell to create WPF UI. As the script comes from PowerShell I would think that PowerShell related forum may much better.
    I will introduce things in WPF, if you want to make UI update based on your source,  the source must implement a suitable property change notification mechanism such as
    INotifyPropertyChanged. See
    How to: Implement Property Change Notification for an example of an
    INotifyPropertyChanged implementation.
    For more details about this WPF scenario, please see WPF databinding:
    https://msdn.microsoft.com/en-us/library/ms752347(v=vs.110).aspx
    If you want to do the same in PowerShell, please consider to post on PowerShell related forum to ask how you can write the same script.
    Best regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Facebook 6.1.1 on ios 6.1.3 notification sound

    after facebook updated to 6.1.1
    found that even I turned off the notification sound in the notification setting page
    it still knocks when I got a message
    now I mute the effect sound
    but I still need build-in clock alarm
    anyone stuck in same situation?

    Hello there tboy0128,
    I think that the best thing to do since you have already done the correct steps to turn off the notification sound would be 3 things, restart the phone, or close all the apps on the phone, or remove and re install the Facebook app, possibly restore the iPad but I dont think it will come to that.
    From our iPhone Troubleshooting Assistant found here http://www.apple.com/support/iphone/assistant/application/#section_3, I recommend starting at section 3 and working your way down from there. Here is section 3 to get you started:
    Close App
    If only a single app has stopped responding or closes on launch, try the following:
    Return to the Home screen, and then click the Home button twice.
    Tap and hold on the app.
    When it starts to jiggle, tap the - to close it.
    Double-click the Home button and try opening the app again.
    Note: I recommend closing all apps in this step.
    Cheers,
    Sterling

  • One solution to the iMessage / facetime login / network connection issue

    I am one of many who posted, read, tried many of the solutions with an issue of iMessages telling me to check my server connection. Buried somewhere on this site, one person posted a solution, and it worked for me, along with the person who posted the problem. Maybe this will save someone else with a similar issue hours of frustration, reading links that tell me how to build a clock, when all I wanted was the time.
    On Ipad, go to settings > general > date & time.
    Slide the button to set automatically to "on"
    Under the time zone, select a city in your zone.
    At this point, my pad went into "think" mode, and stayed there.
    It doesn't matter. (12 hours later, it still hasn't selected the time zone).
    I then shutdown and restarted my pad, and iMessage, and Facetime worked just like it used to.
    Hope this saves someone from the "link jungle" that I found myself in.

    Hi,
    This may be due to a lack of a serial number showing in System Information > Hardware.
    This is supposed to show the Serial Number which is stored on the main Logic Board.
    If the machine has been Refurbed or Repaired and the board replaced then the Serial Number id "flashed" back to the new board.
    Some people are discovering that this has not been done and FaceTime  and iMessages "registrations"  on the Mac  are not working as it uses this info somehow.
    10:38 PM      Saturday; December 1, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • How do i build a digital clock in multisim

    I need help. I am trying to build a digital clock in multisim. I know some things but not what I need to know. Originally this project was supposed to be a full 12 hour format with minutes and seconds but  the instructor decided to make it just the hours. So, count to 12 then reset to 1. I want to use jk flip flops, 7447 decoder and 2 seven segments. I am attaching the circuit that my instructor helped me with yesterday that counts from 3-9( I dont know why , but just in case it helps). Also, I am not looking for someone to just build a circuit for me, I want to understand HOW it works. From what I was able to understand yesterday, it seems that the output is derived from the combination of my clears and presets, but I couldn't figure out exactly what my instructor was trying to explain to me. PLEASE HELP!!!!, this project is due in 6 days and I need ti understand it.
    Attachments:
    Design3.ms11 ‏302 KB

    Hello,
    For those of you are still interested in knowing how to build a digital clock in Multisim, you can find a digital clock in the component database under The Sources group, Digital_Sources family.  After placing the digital clock on your schematic you can change its frequency, duty cycle, and delay time in its property window (you can access by double-clicking on the component).
    Regards,
    Sharanya R
    Market Development Engineer
    National Instruments

  • CPU clock timer in vision builder

    Hi
    I need send to Ethernet port PC clock time as an inspection result in vision builder where can I find clock timer in vision builder tools? Like the tick counter in Labview.
    I have used some items like active timer in system variable but I have not succeeded.
    Would you please help me?
    Thank you
    Refa

    The Active Time reports how long the inspection has been running. Why does this not work for you? It sounds like this is what you want since you're looking for something like LabVIEW's Timer. The main difference is that LV's timer starts at a random offset, and VBAI's Active Time always starts at 0 from when the inspection starts. If you want the system time, there is a System Variable called Current Time that reports the time of the system. It only reports the time to the second, so if you need more accuracy, you can use a Run LabVIEW VI to get the current time with more accuracy.
    Hope this helps,
    Brad

  • Will I Benefit By Upgrading Video Card Only? or Complete New Build?

    I, too, was wondering if I might benefit from upgrading only the graphics card. My current system:
    Windows 7 Ultimate 64-bit SP1
      CPU
       Intel Core i7 2600K @ 3.40GHz 43 °C
       Sandy Bridge 32nm Technology
    RAM
       32.0GB Dual-Channel DDR3 @ 799MHz (10-10-10-27)
      Motherboard
       ASUSTeK COMPUTER INC. P8Z77-V PRO/THUNDERBOLT (LGA1155) 37 °C
      Graphics
      1535MB NVIDIA GeForce GTX 580 Amp! (ZOTAC International) 44 °C
      Storage
      CACHE & PREVIEWS 111GB ATA KINGSTON SH100S3 SCSI Disk Device (SSD) 34 °C
      OS DRIVE 238GB ATA Samsung SSD 840 SCSI Disk Device (SSD) 35 °C
      CAPTURE STORAGE 16 TB Intel Raid 0 Volume SCSI Disk Device (4 x 4TB) 34 °C
         DNxHD 220 Footage
         DSLR Footage
         AVCHD
       Optical Blu-ray Drives
       HL-DT-ST BD-RE BH16NS40 ATA Device
    I was shooting HDV when I built this system, but am now shooting with a Canon EOS C100 and a 5D Mk III DSLR. I record DNxHD externally onto Atomos Ninja Blade.
    Although this system seems pretty well balanced, I have never been able to do much more than basic editing with Premiere's real-time effects, since anything else (like Noise reducers, MB Looks and Red Giant effects) pretty much cripples my system playback, rendering, exporting. Even with HDV footage I was never satisfied with performance. I recently upgraded my storage from a 2-disk RAID 0 to a 4-disk 16 TB RAID 0, which seems to have helped transfer rates a little.
    I wonder if the GTX 580 is defective.  It seems to run pretty hot under load at 60 degrees or more unless I boost fan speed to the max. I cannot change any GPU clocks speeds or other settings from default without the display crashing. That is why I am considering a new GPU. I plan to build or buy a new PC within the next year, anyway, but it would be great if a GPU could extend the life of this one.
    As for a new complete built, I need to know if now is the time to do it. Or, is there some new motherboard/processor series on the horizon that I should wait for? The frustrating thing about these kinds of forum threads is that the information is quickly dated and obsolete.

    I am hardware accelerated.
    As for the GPU temperature. The NVidia control panel monitors voltages and temperatures, but gives no reference for what the normal operating temperature should be. How do I know if the GPU is running too hot? The same goes for the rest of the components. I'm sure you professional computer builders have that kind of info available, but how do the rest of us know when something is wrong with a component? Is there a troubleshooter I can download? or a chart that shows a normal range of numbers?
    When I first built this computer 3 years ago or so, I had a GTX 470, but it fried a year later and I replaced it with the GTX 580, which gave me a good boost in performance over the 470. It would seem that a 700 series GPU would give me better performance over the 580 - with a vast in increase in CUDA cores and more RAM, etc. But, I have read in this forum and other places that a newer model GPU alone will not make much difference, which makes absolutely no sense. If that's true, then what's the point of having all those additional CUDA cores?

  • MSI Big Bang-XPower New Build Compatibility Questons

    I am doing my first build, and do not see several components I have selected (some already purchased) for my new system in the MSI compatibility literature for the Motherboard.  Can someone please advise if any of the below components will cause issues?  I have done much research and believe I am OK, but would like to have confirmation before proceeding.  As an FYI, I will be doing video editing with the new system:
    1.) Motherboard:  MSI Big Bang-XPower LGA 1366 Intel X58 SATA 6Gb/s USB 3.0 ATX Intel Motherboard (purchased)
    2.) Video Card:  MSI N470GTX Twin Frozr II GeForce GTX 470 (Fermi) 1280MB 320-bit GDDR5 PCI Express 2.0 x16 HDCP Ready SLI Support Video Card (purchased)
    3.) OS Drive:  Western Digital VelociRaptor WD6000HLHX 600GB 10000 RPM SATA 6.0Gb/s 3.5" Internal Hard Drive -Bare Drive (purchased)
         (I will also have four 1TB drives in raid "10" - 7200 RPM Western Digital SATA 3.0 Gb/s for data storage, working files, etc.) (to be purchased)
    4.) CPU:  Intel Core i7-950 Bloomfield 3.06GHz LGA 1366 130W Quad-Core Processor BX80601950 (purchased)
    5.) Memory:  This one I would like confirmation on but I believe it will work (I like that it is Cas Latency 7 and know I will pay a few more $ for this):
    G.SKILL Trident+ Turbulence II 12GB (3 x 4GB) 240-Pin DDR3 SDRAM DDR3 1600 (PC3 12800) Desktop Memory Model F3-12800CL7T-12GBTDD
    DDR3 1600 (PC3 12800) Timing 7-8-7-24 Cas Latency 7
    Voltage: 1.65V
    Multi-channel Kit: Triple Channel Kit
    Timing: 7-8-7-24
    Model #: F3-12800CL7T-12GBTDD
    Item #: N82E16820231381
    6.) OS:  Windows 7 Ultimate (purchased)
    7.) The other items are fairly straight forward.
    Any feedback on the above will be greatly appreciated, especially the memory.

    I have two follow-up items from the above (one power supply and one RAM):
    1.) I Am between the following 2 power supplies:
    - CORSAIR HX Series CMPSU-850HX 850W ATX12V 2.3 / EPS12V 2.91 80 PLUS SILVER Certified Modular Active PFC Power Supply ($169.99)
    - CORSAIR Professional Series AX850 850W ATX12V v2.31 / EPS12V v2.92 80 PLUS GOLD Certified Modular Active PFC Power Supply ($194.99)
    I am leaning toward the first one, I do not believe the second is worth $25 more - comments???
    2.) I spent another few hours on RAM selection today.  This is driving my crazy...
    I spent time today with Intel concerning RAM for the Intel Core i7-950 Bloomfield - here is a cc of my log (they obviously have only one recommendation):
    You are now chatting with 'Allan'
    Allan: Hello. Thank you for using the Intel Customer Support chat service. We are glad to be of service. How can I help you today?
    sldwaa: I just purchased in i7-950 Bloomfield and am in the process of purchasing the RAM. I have an MSI Big Bang X-Power MOBO and am running Windows 7 ultimate 64 bit. I have read many posts and Intel spec sheets and I understand Intel does not recommend anything other than 1066 / 1.5v VDIMM. Now for my question as I am new to purchasing ram and building PCs.  Here are my questions:
    1.) I am deciding between 1066 and 1600. The most posts recommend 1600.  The obvious alternative is the Intel recommended 1066.  I believe if I do not over clock, 1066 will be the ticket.  If I buy the 1600, then I can only achieve this by over clocking - correct?
    2.) If I buy 1600 and do not over clock, it will perform at 1066 without any negative effects - is this correct?  This is assuming XMP is not enabled.  I will not be a heavy over clocker, but want the capability just in case.
    Allan: the processor supports DDR3-800/1066 at 1.5V
    Allan: no other memory is supported... no matter if the board supports 1600 or even 2000mhz
    Allan: I remind you that the memory controller is on the processor, this is not integrated on the board
    sldwaa: Understood. Follow up question - If I purchase 1066 with the fastest CAS Latency I can find (possibly 7), can I over clock the 1066 (understanding the negative potential effects) or would I still need the 1600 to achieve any over clocking capability?
    Allan: I am afraid I cannot answer that... I cannot comment anything about over clocking
    Allan: you will need to search this information on Internet
    sldwaa: OK - to summarize you only recommend 1066 at 1.5VDIMM. Anything else, I am on my own, including risks of overheating and instability = correct?
    Allan: that is exactly correct
    Allan: Intel recommends DDR3-800/1066 at 1.5V
    That being said, I guess I am between 1066 with the lowest CAS Letency I can find at 3x4GB, or go with the 1600 (I researched and agree 3x4GB is better than 6x2GB).  As intel is against the second, based on what I am reading, I am leaning toward 1066.  If so, can I overclock the 1066 to something higher or is this the max speed?  Help!

  • New Build - Looking for Tips

    So I have purchased the components listed in my Sig and getting ready to set everything up, just wanting to get some tips/advice on the best way to go about it.
    My biggest question is concerning RAID, as this is the first time I have set one up. Any tips, guides, etc. on how best to accomplish this on my MB is appreciated. I am wanting to end up with a 1TB RAID 1+0 (4 500GB drives paired up, both pairs RAID 1, then one pair RAID 0 of the other pair). Am I correct in assuming it is best to plug only 2 in (SATA 1&2) setup the RAID 1 on those, then plug the other 2 in (SATA 3&4) and set those up as RAID 1, then tie everything together as with RAID 0? Or can I plug them all in and do it all at once? The instructions look fairly straight forward, just looking for some clarity and actual user input.
    Do I need to update my BIOS? I haven't tried booting at all, so not sure what I am starting with, but I notice in the CPU compatibility the same CPU I have lists Version 10.4. Should I stick with what I have and only upgrade if I am having issues, or should I upgrade from the start.
    I have a SATA Blu-Ray burner, and have seen a few things mentioning a SATA ODD coming up under RAID configurations. Is this an issue, is there a certain SATA port I should use to avoid this, certain settings I need to pay attention to, or does it matter?
    Regarding memory, I read (in a sticky) that fewer memory sticks result in faster performance due to Dual Channels. I was under the impression that if all 4 slots were filled you would have 2 groups, each using Dual Channel. Am I incorrect in that? If faster performance (MHz-wise) is achieved by only using 2 sticks, will I get better overall results by removing 2 sticks (leaving only 4GB) or will the additional memory compensate for the speed loss? (The RAM is rated as being Dual Channel, if that makes a difference).
    Does anyone have any general computer building tips? I have built a number of them before, but would like some input on the best/most efficient/fewest problems way is. All previous builds have been done with default configurations, if anyone has suggestions for some settings that they recommend those are welcome. I will be over-clocking at some point, depending on how things go and if there is any advantage to doing so from the start or waiting until the system is setup. I did notice this MB has a OC center as well as the Easy OC Switch. Any input or thoughts on those?
    To sum it up, I am looking for as much input on getting everything set up as easily as possible, with the best settings without requiring a lot of adjustments. Any and all input is appreciated!

    Quote from: Bas on 22-September-10, 15:45:56
    Windows rating is rather silly, it's not the sum of the system but rather the slowest part that gives you this rating.
    Yeah, I agree with the silliness of Windows final rating, however I do like to use the individual ratings as a sort of benchmark. The issue isn't the final rating, it the rating I am receiving for my processor, which is 4.1, and is the lowest rating on there.
    From memory -
    Processor - 4.1
    RAM - 4.9
    Graphics - 7.4
    Gaming - 7.1
    HD - 5.9
    As a comparison, another computer with a 2.2GHz quad core processor, 4GB RAM, and single drive rates as follows:
    Processor - 6.9
    RAM - 7.2
    Graphics - 4.8
    Gaming - 6.1
    HD - 5.9
    With the components I have vs the comparison computer, I would expect CPU, RAM, and HD to all be higher, but they are lower or the same! So something somewhere is not right in my opinion.
    Thanks for any feedback!

  • Animated Gif/movie not following build order

    Animated Gif/movies do not build in proper order.
    For example, I have an animated clock that is suppose to come in as Build No 29
    and run. However, it loads as though it is Build item No 1.
    It does run at the proper time in the build.
    Must I hide it with color or other tricks. The problem is it shows immediately as the
    slide builds and looks hideous.

    Never-mind. I have it working properly now.

  • SQL Server 2008 R2 - Report Builder 3.0 - timeout using shared data source and stored procedure

    I select the shared datasource from the data source propeties dialog, test the connection and everything is good.
    I add a dataset by selecting "use a dataset embedded in my report" option within the Dataset properties dialog.
    I select the newly added data source, click the "Stored procedure" query type and drop down the list box and select my intended stored procedure.
    the timeout for the dataset is "0" seconds.
    I click the "OK" button and I'm presented with the parameters to the stored procedure.
    I enter valid data for the parameters and click the "OK" button.
    I then get the following error message after 30 seconds:
    The problem is, all of the timeouts, that I'm aware of, have values of zero (no timeout) or high enough values that 30 seconds isn't even close to the timeout.
    I think the smallest timeout we have is 120 seconds.
    I have searched this site and many others and the solutions all involve altering the stored procedure to get the fields into report builder and then revert the stored procedure back to its original form.
    To me, this is NOT a solution.  
    I have too many stored procedures that need to be brought into Report Builder.
    I need a real solution.
    Thank you for you time, Tim Caldwell.
    Timothy E Caldwell

    I don't mean to be rude, but really, check to see if the stored procedure can return data rows???
    Maybe I'm not being clear enough.
    The stored procedure runs perfectly fine.
    it runs perfectly fine in the production environment and the test environment.
    I can access the stored procedure in several ways and have it return correct data.
    I can even trick report builder into creating a dataset with parameters and run the stored procedure that way.
    What I cannot do, is to get report builder to not timeout after 30 seconds on the initial creation of a dataset with a Query type of stored procedure.
    I have seen this issues posted again and again and again on may different sites and the "solution" is to simplifiy the stored procedure by creating a stored procedure that has a create table and a select in the stored procedure and that's it.  After
    report builder creates the dataset the developer then has to replace the simplified stored procedure with the actual stored procedure and everything works fine after that.
    HOWEVER, having to go through this process for 70 or more stored procedures is ridiculous.
    It would appear that there is something within report builder itself that is causing this issue.
    The SQL Script included is an example of a stored procedure that will not create fields create a dataset with fields and parameters in Report Builder 3.0:
    USE [CRUM_IT]
    GO
    /****** Object: StoredProcedure [dbo].[COGNOS_Level5ScriptSP] Script Date: 11/17/2014 08:02:26 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER procedure [dbo].[COGNOS_Level5ScriptSP]
    @CompanyCode varchar(8) = null,
    @GetSiblings varchar(1) = 'N'
    as
    Begin
    -- get emergency contact info
    select *
    into #tmp_Contacts
    from
    (select
    ConEEID,
    con.connamelast as [Emer Contact Last Name],
    con.connamefirst as [Emer Contact First Name],
    con.connamemiddle as [Emer Contact Middle Initial/Name]--,
    ,ROW_NUMBER() over (Partition by ConEEID order by ConNameLast)as rn
    ,ISNULL(
    case when con.conphonepreferred = 'H'
    then '(' + substring(con.conphonehomenumber, 1, 3) + ')' + substring(con.conphonehomenumber, 4, 3) + '-' + substring(con.conphonehomenumber, 7, 4)
    else '(' + substring(con.conphoneothernumber , 1, 3) + ')' + substring(con.conphoneothernumber , 4, 3) + '-' + substring(con.conphoneothernumber , 7, 4)
    end,
    ) as [Emergency Phone]
    from [ultiprosqlprod1].[ultipro_crum].dbo.Contacts con
    where con.ConIsEmergencyContact='y'
    and con.ConIsActive='y'
    ) A
    where A.rn = 1
    CREATE TABLE #tmp_CompanyCodes (CompanyCode varchar(8))
    If @GetSiblings = 'Y'
    Begin
    INSERT INTO #tmp_CompanyCodes (CompanyCode)
    EXEC [z_GetClientNumbers_For_ParentOrg_By_ClientNumber] @CompanyCode
    End
    INSERT INTO #tmp_CompanyCodes
    values (@CompanyCode)
    select *
    into #tmp_Company
    from [ultiprosqlprod1].[ultipro_crum].dbo.Company
    where cmpcompanycode in (select CompanyCode from #tmp_CompanyCodes)
    select distinct
    cmpcompanycode as [Client ID],
    CmpCompanyDBAName as [Client Name],
    eec.eecEmplStatus AS [Employment Status],
    eec.eecEmpNo AS [Employee Num],
    rtrim(eep.eepNameLast) AS [Last Name],
    rtrim(eep.eepNameFirst) AS [First Name],
    isnull(rtrim(ltrim(eep.eepNameMiddle)), '') AS [Middle Initial/Name],
    rtrim(eep.eepAddressLine1) AS [Address Line 1],
    isnull(rtrim(eep.eepAddressLine2), '') AS [Address Line 2],
    eep.eepAddressCity AS [City],
    eep.eepAddressState AS [State],
    CASE
    WHEN len(eep.eepAddressZipCode) > 5 and charindex(eep.eepAddressZipCode, '-', 1) = 0
    THEN substring(eep.eepAddressZipCode, 1, 5)
    ELSE rtrim(eep.eepAddressZipCode)
    END AS [Zip code],
    CASE
    WHEN len(eep.eepAddressZipCode) > 5 and charindex(eep.eepAddressZipCode, '-', 1) = 0
    THEN substring(eep.eepAddressZipCode, 6, 4)
    WHEN len(eep.eepAddressZipCode) > 5 and charindex(eep.eepAddressZipCode, '-', 1) > 0
    THEN substring(eep.eepAddressZipCode, charindex(eep.eepAddressZipCode, '-', 1) + 1, 4)
    WHEN len(eep.eepAddressZipCode) <= 5
    THEN ''
    END AS [ZIP + 4],
    substring(eep.eepSSN, 1, 3) + '-' + substring(eep.eepSSN, 4, 2) + '-' + substring(eep.eepSSN, 6, 4) AS [SSN],
    isnull(convert(VARCHAR(10), eep.eepDateOfBirth, 101), '') AS [Date Of Birth],
    eetFED.TAXCODE AS [FED Tax Code],
    eetFED.FILINGSTATUS AS [Fed Filing Status],
    eetFED.EXEMPTIONS AS [Fed Exemption Allowance],
    eetFED.ADDITIONAL AS [Additional Fed Withholding],
    eetSIT.TAXCODE AS [SIT Tax Code],
    eetSIT.FILINGSTATUS AS [State Filing Status],
    eetSIT.EXEMPTIONS AS [State Exemption Allowance],
    eetSIT.ADDITIONAL AS [Additional State Withholding],
    isnull('(' + substring(eep.eepPhoneHomeNumber, 1, 3) + ')' + substring(eep.eepPhoneHomeNumber, 4, 3) + '-' + substring(eep.eepPhoneHomeNumber, 7, 4), '') AS [Home Phone],
    isnull((SELECT cod.codDesc
    FROM [ultiprosqlprod1].[ultipro_crum].dbo.Codes cod WITH (NOLOCK)
    WHERE cod.codCode = eep.eepEthnicID
    AND cod.codDosTable = 'ETHNICCODE'), '') AS [Race-Origin], --eep.eepEthnicID AS [Race-Origin],
    eep.eepGender AS [Gender],
    isnull(convert(VARCHAR(10), eec.eecDateOfOriginalHire, 101), '') AS [Original Hire Date],
    isnull(convert(VARCHAR(10), eec.eecDateOfSeniority, 101), '') AS [Seniority Date],
    isnull(convert(VARCHAR(10), eec.eecDateOfTermination, 101), '') AS [Termination Date],
    isnull(eecTermType,'') as [Termination Type],
    isnull(TchDesc, '') as [Termination Reason],
    rtrim(eec.eecJobCode) AS [WC Code],
    isnull(eec.eecJobTitle, '') AS [Job Title],
    pgr.pgrPayFrequency AS [Pay Frequency],
    eec.eecFullTimeOrPartTime AS [Full/Part Time],
    eec.eecSalaryOrHourly AS [Pay Type],
    isnull(convert(MONEY, eec.eecHourlyPayRate), 0.00) AS [Hourly Rate],
    isnull(eec.eecAnnSalary, 0.00) AS [Annual Salary],
    [YTD Hours],
    isnull(eep.eepNameFormer, '') AS [Maiden Name],
    eec.eecLocation AS [Location ID],
    rtrim(eec.eecOrgLvl1) AS [Department ID],
    eec.eecorglvl2 AS [Cost Item],
    eec.eecorglvl3 as [Client Project],
    eec.eecPayGroup as [Pay Group],
    isnull(eepAddressEMail,' ') as [Email Address],
    isNull(BankName1,' ') as PrimaryBank,
    isNull(BankRoute1,' ') as PrimaryRouteNum,
    isNull(Account1,' ') as PrimaryAccount,
    isNull(AcctType1,' ') as PrimaryAcctType,
    isNull(DepositRule1,' ') as PrimaryDepositRule,
    isNull(BankName2,' ') as SecondaryBank,
    isNull(BankRoute2,' ') as SecondaryRouteNum,
    isNull(Account2,' ') as SecondaryAccount,
    isNull(AcctType2,' ') as SecondaryAcctType,
    isNull(DepositRule2,' ') as SecondaryDepositRule,
    isNull(
    CASE
    WHEN DepositRule2 = 'D'
    THEN '$' + convert(varchar, cast(EddAmtOrPct2 AS decimal(10,2)))
    WHEN DepositRule2 = 'P'
    THEN convert(varchar, cast((EddAmtOrPct2*100) AS decimal(10,0))) + '%'
    ELSE null
    END,' ') as SecondaryDepositAmount,
    isNull(BankName3,' ') as ThirdBank,
    isNull(BankRoute3,' ') as ThirdRouteNum,
    isNull(Account3,' ') as ThirdAccount,
    isNull(AcctType3,' ') as ThirdAcctType,
    isNull(DepositRule3,' ') as ThirdDepositRule,
    isNull(
    CASE
    WHEN DepositRule3 = 'D'
    THEN '$' + convert(varchar, cast(EddAmtOrPct3 AS decimal(10,2)))
    WHEN DepositRule3 = 'P'
    THEN convert(varchar, cast((EddAmtOrPct3*100) AS decimal(10,0))) + '%'
    ELSE null
    END,' ') as ThirdDepositAmount,
    Supervisor,
    eec.eecEEID AS [Employee EEID],
    eec.EecJobCode As [Job Code],
    isnull(eec.EecTimeclockID,' ') As [Time Clock ID],
    con.[Emer Contact Last Name],
    con.[Emer Contact First Name],
    con.[Emer Contact Middle Initial/Name],
    con.[Emergency Phone]
    from [ultiprosqlprod1].[ultipro_crum].dbo.empPers eep WITH (NOLOCK)
    inner join [ultiprosqlprod1].[ultipro_crum].dbo.empComp eec WITH (NOLOCK)
    ON eep.eepEEID = eec.eecEEID
    inner join #tmp_Company cmp WITH (NOLOCK)
    ON eec.eecCOID = cmp.cmpCOID
    inner join [ultiprosqlprod1].[ultipro_crum].dbo.PayGroup pgr WITH (NOLOCK)
    ON eec.eecPayGroup = pgr.pgrPayGroup
    left outer join [ultiprosqlprod1].[ultipro_crum].dbo.TrmReasn
    on tchCode = eecTermReason
    left join (select CAST(sum(isnull(eee.eeeYTDHrs,0.00))AS DECIMAL(18,2)) as [YTD Hours],
    eeeEEID,
    eeeCOID
    from [ultiprosqlprod1].[ultipro_crum].dbo.EmpEarn eee with (NOLOCK)
    group by eeeCOID,eeeEEID)eee
    on eec.eecEEID = eee.eeeEEID
    and eec.eecCOID = eee.eeeCOID
    left join (SELECT eetCOID AS COID,
    eetEEID AS EEID,
    eetTaxCode AS TAXCODE,
    eetFilingStatus AS FILINGSTATUS,
    eetExemptions AS EXEMPTIONS,
    eetExtraTaxDollars AS ADDITIONAL
    FROM [ultiprosqlprod1].[ultipro_crum].dbo.empTax WITH (NOLOCK)
    WHERE eetTaxCode = 'USFIT'
    )eetFED
    ON eec.eecCOID = eetFED.COID
    and eec.eecEEID = eetFED.EEID
    left join (SELECT eetCOID AS COID,
    eetEEID AS EEID,
    eetTaxCode AS TAXCODE,
    eetFilingStatus AS FILINGSTATUS,
    eetExemptions AS EXEMPTIONS,
    eetExtraTaxDollars AS ADDITIONAL
    FROM [ultiprosqlprod1].[ultipro_crum].dbo.empTax WITH (NOLOCK)
    WHERE eetTaxCode like '%SIT'
    AND eetIsWorkInTaxCode = 'Y'
    )eetSIT
    ON eec.eecCOID = eetSIT.COID
    and eec.eecEEID = eetSIT.EEID
    left outer join (SELECT eddCOID,
    eddEEID,
    eddEEBankName BankName1,
    eddEEBankRoute BankRoute1,
    eddAcct Account1,
    EddAcctType AcctType1,
    EddDepositRule DepositRule1,
    EddAmtOrPct EddAmtOrPct1
    FROM [ultiprosqlprod1].[ultipro_crum].dbo.EmpDirDp WITH (NOLOCK)
    WHERE eddSequence = '99')edd
    ON eec.eecCOID = edd.eddCOID
    and eec.eecEEID = edd.eddEEID
    left outer join (SELECT eddCOID,
    eddEEID,
    eddEEBankName BankName2,
    eddEEBankRoute BankRoute2,
    eddAcct Account2,
    EddAcctType AcctType2,
    EddDepositRule DepositRule2,
    EddAmtOrPct EddAmtOrPct2
    FROM [ultiprosqlprod1].[ultipro_crum].dbo.EmpDirDp WITH (NOLOCK)
    WHERE eddSequence = '01')edd2
    ON eec.eecCOID = edd2.eddCOID
    and eec.eecEEID = edd2.eddEEID
    left outer join (SELECT eddCOID,
    eddEEID,
    eddEEBankName BankName3,
    eddEEBankRoute BankRoute3,
    eddAcct Account3,
    EddAcctType AcctType3,
    EddDepositRule DepositRule3,
    EddAmtOrPct EddAmtOrPct3
    FROM [ultiprosqlprod1].[ultipro_crum].dbo.EmpDirDp WITH (NOLOCK)
    WHERE eddSequence = '02')edd3
    ON eec.eecCOID = edd3.eddCOID
    and eec.eecEEID = edd3.eddEEID
    left outer join (SELECT eecCOID,
    eecEEID,
    rtrim(eepNameLast) + ', ' +
    rtrim(eepNameFirst) + ' ' +
    isnull(rtrim(ltrim(eepNameMiddle)), '') AS [Supervisor]
    FROM [ultiprosqlprod1].[ultipro_crum].dbo.EmpComp WITH (NOLOCK)
    join [ultiprosqlprod1].[ultipro_crum].dbo.EmpPers with (NoLock)
    on eeceeid = eepeeid)eec2
    ON eec.eecSupervisorID = eec2.eecEEID
    left outer join #tmp_Contacts con
    on eep.eepEEID = con.ConEEID
    order by [Client ID],
    [Last Name],
    [First Name]
    drop table #tmp_Contacts
    END
    Timothy E Caldwell

  • How can I use external clock to implement a delay?

    Hi all,
      I am testing to use external clock to drive dev/PFI0 (on device 6711) which is used as the clock for the analog ouput. I have thinking two applications by using the external clock but I don't have much idea on the implementation yet.
    First of all, I have a sequence of data (array) with each sample being sent at the interval of 1us. I use an external clock (10MHz) driving the PFI0 so it is pretty easy to achieve that goal. I am thinking what happen if I want each sampel being sent at different time. For example, if I have 5 samples, I want the first one sent 1us after the task start and wait 2us to send the 2nd sample, wait 5us to send the 3rd sample and wait 11 us to send the 4th sample, and wait 1us to send the last sample. Is it possible to achieve that based on the external clock?
    Second question is about the delay. My code require ciritcal timing and the builtin delay doesn't behave very well because I am running in windows. I can increase the priority of the vi to highest, it helps a bit but still not perfect. I am thinking if it is possible to implement hardward delay based on the external clock. Any idea?

    Hello dragondriver,
    To answer your first question, yes you could send data in that fashion. You would have to programmatically build a pulse train and use that to trigger the sending of data. The answer to the second question is essentially the same. You should be able to programmatically build a pulse train with a delay and use it as trigger to begin whatever operation you have.
    Jonathan L.
    Applications Engineer
    National Instruments

Maybe you are looking for

  • How to add an internal link on pages 5.0.1?

    Could anyone please tell me how to add an internal link on pages 5.0.1. I am making FAQ list, and I would like to make the first page of the document as a list of questions and when a user click on each question, it jumps to the answer (in the same d

  • InDesign CS4 wrong UI language for non-admin users

    Hi! I work in the IT department of a large company and we have some trouble with our Indesign CS4 installations. We have all the adobe products in our local language (Swedish) and it works perfectly when logging into a computer with admin rights. But

  • Software Component Version

    Hi Friends, I maintained two Namespaces(say Name1, Name2) under a Software Component version. I developed a scenario under Name2. But i found it wrong. So I deleted all the objects in it like interface objects, mapping objects and also ExchangeFaultD

  • Importing from Lightroom

    The Lightroom file structurs consists of folders for the year in which are sub-folders for the date (month and day). I have exported the LR metadata to xmp files and I can import into Aperture using a referenced library with good results - metadata c

  • Do I have a virus that isn't showing up?

    i went into a website and then something came up saying i had a virus, the website went off my computer and something came up that looked like a virus scanner and said my computer was infected. i exited the "virus" and my macbook pro seems unaffected