Any ideas on how to make program simpler?

This program is designed to send multiple TTL pulses to different instruments, while at the same time receiving and analyzing analog input data.  We will likely be sampling at fairly low rates (rarely over 100 Hz).  We will be getting a new USB board soon, but this program is written for the USB-6008.  The program is over 9 MB, and I would like to know if there is anything I can do to make it more manageable.  I have already gotten a lot of help from this forum and really appreciate it (haven't done much computer programming before this summer) and those of you in cyberspace have saved me a lot of headaches.  Thanks in advance for the help!
Attachments:
Linear 3ch Wave Gage and pressure Data Capture.zip ‏162 KB

Hello again
Thanks lynn for the advice, I am sorry for the delay since my last post.
I am pretty comftorable with the programming of labview, but not the applications of DAQmx and data flow overall for that matter.  I have been searching the forums all morning trying to find some examples of what I wish to do, but have been unsuccessful.  What I am working on is creating a program that controls all of the instruments in the lab, in other words, send triggers to different instruments at different times to turn them on and off. 
I now see that the wait VI that I put in the TTL subVI was a poor choice and am still trying to find a way around it. 
I want to set up some kind of a clock that starts when the VI is run.  From this, I want to allow the user to set up a delay for each TTL, so the wavemaker might be triggered immediatly, but the individual instruments could be triggered after some time interval.  The On/Off booleans are present because we do not use all the instruments at all times, so if say the laser is off, LabView would not send the TTL to laser's computer.  I would also like to incorporate the data acquisition to the clock, say to let the wavemaker run for 5 minutes before data is acquired, however that part won't be too hard once I figure the timing out. 
An example of what might need to be done could be
1.  VI is started
2.  Wavemaker is triggered immediatly
3.  Data acquisition is started after 5 minutes, and acquires 10,000 samples at 100 Hz
4.  Laser and ADV are triggered simultaneously after 6 minutes
5.  After voltages are acquired, they data are analyzed (plugged into a calibration curve to get pressure or wave height...)
6.  The final values are written to a spreadsheet.
I am thinking that using a tick counter and event structures might work, but I havent been able to figure it out yet.
Thanks
Chris

Similar Messages

  • Deleted itouch files using ifile from cydia. i restarted it but now it shows the apple logo and that is it... it doesnt respond. any ideas of how to make it work?

    I restarted my itouch using the home button and top button...it restarted but it only shows the apple logo and that is it.  I deleted all files from ifile and then it froze... any ideas of how to make it work again?

    Discussions of hacked ipods is not permitted here.

  • Anyone have any ideas of how to make the battery on the iphone5 last longer?

    Anyone have any ideas of how to make the battery on the iphone5 last longer? I don't use the phone that much and the battery does not last all day. Phone is new.

    Many suggestions can be found here
    1. turn off push email and use fetch or manual fetch instead.
    2. turn off or at least limit notifications
    3. limit use of apps that use location services (eg. maps app - heavy power useage when running).
    4. in General->About->Diagnostics & Usage, turn off Automatic sending.
    5. Privacy->Location Services->System Services, disable everything (none of it need be running for normal use).
    6. Wifi, turn off "Ask to Join Networks" so your device is not polling all open networks it finds.
    7. keep brightness as low as you can get by with.
    Finally, get a car charger, and a second charger for work/school and just plug in whenever it is convenient to do so.
    Or, if it suits your daily routine better, get an external battery power brick or case and charge it periodically from that.

  • My 3gs wont restore after ios 5 update. I have tried firmware restore and restore from backup, neither works. All I get is "iphone restore failed because backup session failed" Any ideas on how to make a successful restore with this ios 5 update?

    My 3gs wont restore after ios 5 update. I have tried firmware restore and restore from backup, neither works. All I get is "iphone restore failed because backup session failed" Any ideas on how to make a successful restore with this ios 5 update?

    I was having the same problem, I backed up my phone and then updated to iOS 5 and then it kept telling me it could not restore from my backup as it had failed.  After reading a bunch of forums and posts and trying everything, I did manage to get it to work.  I had tried the Time zone, creating a new computer user account, disabling anti-virus, etc.
    It took a combination of things, one of which was disabling the anti-virus completely and copying the contents of the backup folder to my desktop and then deleting everything in the backup folder.  Then I rebooted the PC, entirely disabled the anti-virus, copied the one backup I wanted to restore from the desktop to the backup folder and then trying to restore.  Low and behold the phone said restoring from backup and I am back in business, so when in doubt, trying combining some of the fixes together.

  • Hi. I have a 2008 macbook pro 15.4 inch. Not abused but the hinge is stiff and the lid/ screen is starting to de-laminate at the bottom edge. Any ideas on how to make the hinge work a little more freely and how to re-seal the screen to the lid?

    Hi. I have a 2008 macbook pro 15.4 inch. Not abused but the hinge is stiff and the lid/ screen is starting to de-laminate at the bottom edge. Any ideas on how to make the hinge work a little more freely and how to re-seal the screen to the lid?

    When you have kernel panics, the pertinent information is in the panic report.
    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    In the Console window, select
              DIAGNOSTIC AND USAGE INFORMATION ▹ System Diagnostic Reports
    (not Diagnostic and Usage Messages) from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar.
    There is a disclosure triangle to the left of the list item. If the triangle is pointing to the right, click it so that it points down. You'll see a list of reports. A panic report has a name that begins with "Kernel" and ends in ".panic". Select the most recent one. The contents of the report will appear on the right. Use copy and paste to post the entire contents—the text, not a screenshot.
    If you don't see any reports listed, but you know there was a panic, you may have chosen Diagnostic and Usage Messages from the log list. Choose DIAGNOSTIC AND USAGE INFORMATION instead.
    In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.)
    Please don’t post other kinds of diagnostic report.
    I know the report is long, maybe several hundred lines. Please post all of it anyway.

  • IOS 6 updated on my 3GS phone. The maps works well but does not give spoken turn by turn directions. Any ideas on how to make this work?

    Installed iOS6 on my 3GS phone. The maps app works well, but does not give spoken turn by turn directions.
    Any ideas on how to fix this?

    Go to http://www.apple.com/ios/maps/ and look at the bottom: Turn-by-turn navigation is available only on iPhone 4S, iPhone 5, and iPad 2 or later with cellular data capability. Flyover is available only on iPhone 4S, iPhone 5, iPad 2 or later, and iPod touch (5th generation). Cellular data charges may apply.
    You can always use the WAZE app like I do.

  • Hi, I have an issue with a program that needs Windows Access for, it to run, any Ideas on how to make it work, the program I need to run is sbem (a building calculation software)

    Hi
    I have a mac book pro, I need to run a software package that requires Windows Access for it to work
    The software is SBEM (A building calculation software)
    Any ideas
    Many Thanks

    Direct you to the proper forum for MacBook :
    MacBook Series Forumshttps://discussions.apple.com/community/notebooks?view=discussions
    Mac OS X Forums
    https://discussions.apple.com/community/mac_os?view=discussions 
    http://www.apple.com/support/macbookpro
    Mac 101: Using Windows on your Mac via Boot Camp
    https://support.apple.com/kb/HT1461
    Helpful Apple Support Resources (Forum Overview)
    Boot Camp Support 
    Boot Camp Manuals
    Community
    https://discussions.apple.com/community/windows_software/boot_camp
    Boot Camp 4.0, OS X Lion: Frequently asked question
    http://support.apple.com/kb/HT4818

  • Any ideas on how to make my video preview work?

    We have installed Premiere Pro CS4 on some brand new HP Compaq dc7900 machines (http://h10010.www1.hp.com/wwpc/au/en/sm/WF06a/12454-12454-64287-3328898-3328898-3785403.ht ml) that supposedly use the Intel GMA 4500 integrated graphics chip. The problem is, that we cannot play any captured or imported video (sounds do play though), all we get is this funny turquoise screen. However, if I click in the preview window while stopped, the frame does show as it should.
    I have spent some time searching for this and I realize I'm not the only one experiencing this problem but I have yet to see a solution that works, at least on my system.
    The Intel Graphics chip only supports OpenGL 1.4 (see hp link), not 2.0 as the CS4 requirements states.
    Well, I could be mistaken already at this point, but I am under the impression that the OpenGL 2.0 only comes into play when playing certain effects, not just playing video on the timeline. Intel has also said that 2.0 support is included in the "new" driver for Q43/Q45 (http://software.intel.com/en-us/articles/quick-reference-guide-to-intel-integrated-graphic s/) My current driver is from September 09, and I have also tried drivers from April and March without any luck.
    The weird thing about this, is that when I disable the Q43/Q45 driver under device manager and restart my PC (with a blurry image in too low resolution), the video in Premiere plays back like there is no tomorrow! Everything runs just fine! (Except that I have to sit 3 metres from the screen to actually see anything)
    The "Other devices" is most likely something to do with the 1394-card we put in. It does work as is though. Enabling/disabling the other video adapters shown does not change anything around our issue.
    I can't understand what is making this problem, but it does sound a lot like a driver issue. For good measure I have included a screenshot from GSpot:
    I'm grateful for any help I can get on this!
    -Steffen

    There are some low-profile slots though 1 of them are occupied by the firewire card: 1 low-profile PCI, 2 low-profile PCI Express x16, 1 low-profile PCI Express x1
    We actually purchased 13 of these computers for video editing, so I really hope it is possible to fix this without buying 13 low-profile graphics adapters. What gets to me is the fact that it does work when I disable the driver. (!) Shold therefore be doable to make a driver/update that works :-(
    Any ideas? Or, in worst case, anyone know about a low-profile graphics card that works?
    Thanks,
    Steffen

  • Any ideas on how to incorporate a simple database into my website?

    Firstly I am to create a website that will survey the user on what their ideal laptop would be (each answer would relate to a certain brand or model of laptop); once the user has filled out the survey I went to be able to tally up their results to work out which record in the pre-existing database would be best suited...
    This would be a simplified example,
    Which brand would you prefer:
    Apple  ( )        HP      ( )         Sony    ( )
    Price range:
    100   ( )       200    ( )     300     ( )
    I have attempted to just 'search the database' since each answer has is representing a record in the database; however this does not take into account various answers across the survey (Will only search and display for the price, while ignoring what brand, etc.)
    The database is on phpmyadmin, whether that makes any difference.
    Perhaps there is a simple line of code that will handle all this, but I'm relatively new to the whole thing so any help would be greatly appreciated.

    Having a bit of trouble getting it to work, would you mind looking over my code to see where I've messed up?
    <?php require_once('../Connections/survey.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $colname_Brand = "-1";
    if (isset($_GET['Brand'])) {
      $colname_Brand = $_GET['Brand'];
    mysql_select_db($database_survey, $survey);
    $query_Brand = sprintf("SELECT * FROM ideal WHERE Brand = %s", GetSQLValueString($colname_Brand, "text"));
    $Brand = mysql_query($query_Brand, $survey) or die(mysql_error());
    $row_Brand = mysql_fetch_assoc($Brand);
    $totalRows_Brand = mysql_num_rows($Brand);
    $colname_Price = "-1";
    if (isset($_GET['Price'])) {
      $colname_Price = $_GET['Price'];
    mysql_select_db($database_survey, $survey);
    $query_Price = sprintf("SELECT * FROM ideal WHERE Price = %s", GetSQLValueString($colname_Price, "text"));
    $Price = mysql_query($query_Price, $survey) or die(mysql_error());
    $row_Price = mysql_fetch_assoc($Price);
    $totalRows_Price = mysql_num_rows($Price);
    $colname_Rating= "-1";
    if (isset($_GET['Rating'])) {
      $colname_Rating = $_GET['Rating'];
    mysql_select_db($database_survey, $survey);
    $query_Rating = sprintf("SELECT * FROM ideal WHERE Rating = %s", GetSQLValueString($colname_Rating, "text"));
    $Rating = mysql_query($query_Rating, $survey) or die(mysql_error());
    $row_Rating = mysql_fetch_assoc($Rating);
    $totalRows_Rating = mysql_num_rows($Rating);
    ?>
    <!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>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Search Results</title>
    </head>
    <body>
    <h1> Survey results</h1>
    <?php
        $temp = $totalRows_Results;
        if ($temp == 0) { echo "No Records Found"; }
    ?>
    <table width="200" border="1">
      <tr>
        <td>id</td>
        <td>Brand</td>
        <td>Name</td>
        <td>Price</td>
        <td>Rating</td>
        <td>Purpose</td>
      </tr>
      <?php do { ?>
      <tr>
        <td><?php echo $row_Results['id']; ?></td>
        <td><?php echo $row_Results['Brand']; ?></td>
        <td><?php echo $row_Results['Name']; ?></td>
        <td><?php echo $row_Results['Price']; ?></td>
        <td><?php echo $row_Results['Rating']; ?></td>
        <td><?php echo $row_Results['Purpose']; ?></td>
      </tr>
      <?php } while ($row_Results = mysql_fetch_assoc($totalRowResults)); ?>
    </table>
    <br />
    <a href="survey.html">Back to survey</a>
    </body>
    </html>
    <?php
    mysql_free_result($Results);
    ?>

  • Any ideas on how to make a form in a SWF?

    I want to add a contact form in a SWF. I know forms are possible only for PDFs, but I was wondering if there is any solution also for SWF. I tried once building it in Adobe Flash, but since I have never tried using it, it was not so easy and well it worked, but not 100% how I wanted. So.. are there other solutions? Thanks.

    SWF is not valid for DPS. You should make your for in HTML, I think.
    I used a server-side (PHP) form in one of my apps and it worked fine.

  • Using Mavericks - Keychain does not pass the passwords to my iPad?  Any ideas on how to make it work?

    Does anyone kbnow how to have Keychain use passwords in my iOS device (iPad)?  I find my self writing down passowrds now which completely defeats the concept behind Keychain and iCloud, right?  Thanks for any help.

    Make sure Keychain is switched ON in Settings > iCloud
    Try the instructions here >  How to automatically generate a password with iCloud Keychain and iOS 7

  • [SOLVED] Any Ideas on how to fix program menu font?

    Hey guys,
    For some reason the greyed out items on menu's does dont display correctly and I cannot seem to figure out what the problem is.
    I am using awesome window manager with I think it was the lain theme pack. I have tried changing to various fonts in the theme.lua and .Xresources but neither seem to make any difference.
    If you look at the top box "save comment" and "save color value from transparent pixels" options this is what I am talking about.
    http://i.imgur.com/IkSEYA4.jpg
    Moderator edit [ewaller] converted over sized image to a link https://wiki.archlinux.org/index.php/Fo … s_and_Code
    Last edited by life617 (2014-05-17 00:33:38)

    that has nothing to do with your window manager settings or .Xresources settings.
    The window in screenshot appears to gimp if I'm not mistaken, which uses gtk2, so you should look into changing its theme/font settings: https://wiki.archlinux.org/index.php/GTK+

  • Any idea on how to make a smart home?

    Is there anyway to use bluetooth microphones to station throughout your house to all simultaneous link to your iphone (iphone plugged into an AirPlay hub). So when you use Siri any microphone in the house can pick up your voice and broadcast Siri's response throughout the wired house via AirPlay. It would in essence be like having your house wired like a car is wired for "eye-free" driving. You would be able to access and hear siri from any room regardless of where your phone was. I know you need to press the home buttom to activate siri, but there are alternative accessories to fix that. My main concern is not the location of the home button.

    No, you can't have that many BlueTooth connections.

  • What happened to the overwrite,always/ask/never pull down in the application builder. It was in 6.i. Any ideas on how to make the installer ask.

    The builder in ver 6.0i had a pull down to address the over write issue for support files. My new ver 6.1 does not. Is there a work around, a solution, or a new ver on the way? Thanks

    6.1 now uses the Microsoft Windows Installer. Information on that can be found here. I have download the SDK but haven't started to play around with it yet. There is editor included that I believe will allow you to change the settings in the msi file. I think right now, the default is to overwrite files if what's on the installer is newer.

  • Flickr uploading is a horrible experience. Does anyone have any ideas on how to make it better?

    I am using iPhoto and I amd trying to upload several undred pictures to Flickr at a time.
    The native iPhoto exporter hangs and crashes.
    The Flickr Exporter plugin by ConnectiveFlow does the same.
    The web based importer will also do the same and it can only do 200 pictures at a time.
    I am considering Apeture, but does anyone have better experience with Apeture's native uploader?
    Thanks

    I don't believe there's a solution to that. I don't believe there's a way to upload hundreds at one go. But you could contact Flickr support and see what they suggest.

Maybe you are looking for

  • Do I have to install acrobat updates in sequence?

    I choose to disable Acrobat automatic updates and install them manually.  I find the end users don't install updates and usually ignore the acrobat updates icons.  The only issue is that I'm not able to install the latest updates unless I go through

  • FTP adapter on BPEL

    I am using Oracle AS 10.1.3.1 on windows. My FTP server is also on Windows. But during invoke of outbound FTP adapter i am getting following error I am able to do FTP from AS machine to FTP server (Window) through command prompt and it is working fin

  • Repoting Server Error "NT AUTHORITY\ANONYMOUS LOGON'".

    Hello, We have windows 2008R2 on all systems. Server A is the reporting server, ServerB is the SQL (DB Server) , Server C is another client the we connect via web to reporting server. From Server A to B getting reports works fine. From Server C  gett

  • Does anyone think this forum is an improvement?

    The previous webforum/NNTP interface had roughly 90 percent of the questions coming from the webforum, and 90 percent of the mostly correct replies coming from the NNTP newgroup users. The newsgroup users are for the most part NOT going to use this w

  • Tutorials for web dynpro

    hi i do the the first 6 Tutorials for Beginners in abap web dynpro ,there is anoter Tutorials that i can do and learn from that? i reward Regards