Need help with expression builder issue

Hi all
I'm hoping someone can help with an issue I'm having. I'm creating a database for a manufacturing joinery. For 1 of my forms, Ive to create a despatch form which includes order details along with customer details. Some customers can have contracts in which
they get a fixed price on certain item. This is where the problem lies.
For my customers table, I have a field called "On contract" which is a Yes/No field. I've created a query to attempt to make this form. I'm having trouble with adding a total column at the end of this query. Quantity,Unit Price, Contract Price
are also in the query. I've been trying to build an expression to say like;
iif [on contract] = "Yes", [Quantity] * [Contract Price]
iif [on contract] = "no", [Quantity] * [Unit Price]
It obviously wont work, what am I doing wrong?
Thanks in advance

Hi,
Assuming you are using the database is SQL Server:
SELECT [CustomerID]
,[Quantity]
,[Unit Price]
,[Contract Price]
,[Total] = CASE WHEN [On Contract] = 'Yes' THEN [Quantity] * [Contract Price]
WHEN [On Contract] = 'No' THEN [Quantity] * [Unit Price] END
FROM [Customers]
Modify the SQL to suit your need.
Hope this helps.
~J.

Similar Messages

  • Need help with Itunes Authorization issue

    I've been a Itunes/Ipod user for a couple years. During that time, I've sure spent over $500.00 on Itunes music from the Itunes store for my Ipod. My daugter and I both have Ipods.. There have only been 2 machines with Itunes installed here but I occasionally rebuild my computers to have the latest and greatest hardware for my business.. The other day I backed up all my music and data before rebuilding my machine due to hardware upgrades. Everything went smoothly including importing my purchased music back into Itunes.. The problem is I can't listen to it now. When I try to double click a song I get an error that says "You have already authorized 5 computers with this account. To authorize this computer you must first deauthorize one of the other computers" This isn't possible because the computers aren't around anymore to deauthorize. They were all housed (except 1, my daughters pc) in the same case as I have now.. Please respond...

    The other day I backed up all my music and data before rebuilding my machine due to hardware upgrades.
    okay. you may have ended up with multiple authorisations on that PC due to the system changes. if so the following documents should be of some help with techniques for freeing up authorisations:
    One computer using multiple iTunes Music Store authorizations
    About iTunes Store authorization and deauthorization

  • Need help with an innerjoin issue

    Hello;
    I am writting a small app for my web site and have run into
    an issue with an innerjoin. Let me explain what the function is for
    this so maybe you can understand what I am doing.
    There are 2 pages to this. Page 1, is a category selection
    page. It loads all the categories on the page with a link that
    passes a category ID to page 2. Page 2, then allows you to view all
    the projects that are associated to the specific category. There is
    a numbered navigation on this page, kind of like google, 1 2 3 4
    More> Next>
    Now what I am trying to do it create a select function that
    allows you to choose another category to look through on page 2 so
    you don't have to go back to page 1 and select another category
    there.
    Right now, I have the innerjoin working well with page 1
    going to page 2 and the numbered nav, it is doing what it is
    supposed to. BUT the select function is working off the where
    clause and not working independantly from what the numbered nav and
    body is supposed to be doing. There is also a spot I added to this
    page that kind of works like the select function, it puts the name
    of the category your viewing on the page.
    What is happening with the select function and this name
    function is lets say there are 5 project records tied to the
    category you selected, then the select function gets 5 names of the
    same category in it and so does the category name function.
    (Follow this?)
    Let me post the code for page 1 and page 2. also will add
    what the tables are in the db.
    DB tables:
    Table1: Categories
    Name (this is the actual category name), MYFile(the file that
    give an image of the category), Description(a description of this
    category), CategoryID (this is added to the projects table for each
    project that is connected to each category)
    Table 2: Projects
    ProjectID (this is the ID of the projects), Name (this is the
    name of the project) Body (thi sis the description and picture of
    the project), CategoryID (this is the id of what category the
    project falls under, also assigned to tproject from the categories
    table)
    There is a lot of code that goes in this, so I am going to
    post the code that is pertinent to this question, 90% of it is
    working at this time, just not the select function and category
    name on page 2.
    Page1 Code:
    <CFQUERY name="GetRecord"
    datasource="#APPLICATION.dataSource#">
    select Name, MYFile, Description, CategoryID
    FROM Categories
    </CFQUERY>
    <head>
    </head>
    <body>
    <cfloop query="GetRecord" startRow="#URL.startRow#"
    endRow="#endRow#"><cfoutput>
    <img src="../img/cat/#MYFile#" width="50" height="50">
    <a
    href="portfolio-detail.cfm?CategoryID=#CategoryID#">#Name#</a>
    #Description#
    </cfoutput></cfloop>
    <!--- there is a numbered nav on this page, it works nice
    so I didn't add the code, that is why I am using a cfloop --->
    Page2 code:
    <CFQUERY name="getProjects"
    datasource="#APPLICATION.dataSource#">
    SELECT Projects.ProjectID, Projects.Name, Projects.Body,
    Projects.CategoryID,
    Categories.CategoryID AS catID, Categories.Name AS cat_name
    FROM Projects
    INNER JOIN Categories
    ON Categories.CategoryID = Projects.CategoryID
    WHERE Projects.CategoryID = #categoryID#
    ORDER BY ProjectID
    </CFQUERY>
    <cfif getProjects.recordCount is 0>
    No projects in this category.
    <cfabort>
    </cfif>
    <head>
    <!--- this script is for the select function so when you
    make a selection, it goes to the next category without having to
    hit a submit button --->
    <script language="Javascript">
    function changeRecord(){
    document.category.submit();
    </script>
    </head>
    <body>
    <!--- here are the Category name and select functions that
    aren't working properly yet --->
    <cfoutput
    query="getProjects">#cat_name#</cfoutput>
    <form Name="category" method="post"
    Action="portfolio-detail.cfm?CategoryID=true">
    <select name="CategoryID" size="1"
    onChange="category.submit();">
    <option value=""> --Select a Category--
    </option>
    <CFOUTPUT query= "getProjects">
    <option value="#CategoryID#">#cat_name#</option>
    </CFOUTPUT>
    </select>
    </form>
    <!--- this part is working properly, it also has a
    numbered nav, like google that is working properly at this point
    --->
    <cfoutput query="GetProjects" startRow="#startRow#"
    maxRows="#maxRows#">
    #Name#
    #Body#
    </cfoutput>
    <!--- next is the cfmodule for the nav, the nav is a lot
    of code, a whole page on it's own so I am not posting it --->
    <cfmodule
    template="../CFdocs/PageNav.cfm"
    totalItems="#numRows#"
    numPerPage="#maxRows#"
    startRow="#startRow#"
    url="#cgi.script_name#?categoryID=#categoryID#&startRow=#startRow#">
    The main part that is not working properly is the select, and
    category name. How to I get those to work independantly from my
    where clause? (I need the where clause for the numbered nav and
    cycling through the projects tied to the category you called up
    from page 1.
    Can someone help me tweek my code from this point? I am
    stumped, I looked at the cf docs and I can't find a solution. I am
    using CF 8.
    Any help would be appreciated. Thank you!
    CFmonger

    I fixed a lot of this since I posted it this morning. Now all
    that isn't working properly is the select, it isn't passing the
    proper variable to make the query work.
    This is what I have now:
    Page 2:
    <CFQUERY name="getProjects"
    datasource="#APPLICATION.dataSource#">
    SELECT Projects.ProjectID, Projects.Name, Projects.Body,
    Projects.CategoryID,
    Categories.CategoryID AS catID, Categories.Name AS cat_name
    FROM Projects
    INNER JOIN Categories
    ON Categories.CategoryID = Projects.CategoryID
    WHERE Projects.CategoryID = #categoryID#
    ORDER BY ProjectID
    </CFQUERY>
    <!--- I will add the <cfqueryparam> in a bit --->
    <cfif getProjects.recordCount is 0>
    No projects in this category.
    <cfabort>
    </cfif>
    <!--- This query populates the select nav --->
    <CFQUERY name="cata"
    datasource="#APPLICATION.dataSource#">
    select Name, MYFile, Description, CategoryID
    FROM Categories
    </CFQUERY>
    <head>
    <script language="Javascript">
    function changeRecord(){
    document.category.submit();
    </script>
    </head>
    <body>
    <!--- this output works well now, gives me what I need and
    changes when you select a category from page 1 --->
    <cfoutput query="getProjects"
    maxrows="1">#cat_name#</cfoutput>
    <!-- the select isn't passing the CategoryID properly, it
    is now throwing an error --->
    <form Name="category" method="post"
    Action="portfolio-detail.cfm?CategoryID=#CategoryID#">
    <select name="CategoryID" size="1"
    onChange="category.submit();">
    <option value=""> --Select a Category--
    </option>
    <CFOUTPUT query= "cata">
    <option value="#CategoryID#">#Name#</option>
    </CFOUTPUT>
    </select>
    </form>
    <!-- the rest of the code goes after this, it ias all
    working --->
    The error I get when using the select is this:
    Error Executing Database Query.
    [Macromedia][SequeLink JDBC Driver][ODBC
    Socket][Microsoft][ODBC Microsoft Access Driver] Syntax error
    (missing operator) in query expression 'Projects.CategoryID ='.
    The error occurred in C:\Websites\folio\portfolio-detail.cfm:
    line 12
    10 : INNER JOIN Categories
    11 : ON Categories.CategoryID = Projects.CategoryID
    12 : WHERE Projects.CategoryID = #categoryID#
    13 : ORDER BY ProjectID
    14 : </CFQUERY>
    I also tried doing it this way:
    <form Name="category" method="post"
    Action="portfolio-detail.cfm?CategoryID=true"
    This way didn't work at all, it only made the numbered nav on
    the page cycle through all the projects in all the categories.
    What do I need to change to pass the proper variable from the
    select nav to the innerjoin query and my where statement?

  • Just Switched To  Mac's and Need Help With A Few Issues!

    Hi All,
    I finally did it and switched to a Mac!! Never thought it would happen as I always felt guilty about the cost but after 5 laptops crashing on me - well, I just could not take it anymore! I managed to get a fairly good deal on a 15" Macbook Pro - 2.2/120GB version. I still don't know much about the mac way but am trying to learn so any help would be appreciated!
    1). Is there any kind of video tutorial (preferably free!) that I can use that will help me learn the Ma OS X? I have Tiger 10.4.11 on my MBP (Did you hear that - MY MBP!!!)
    2). AOL Assured me that they fully support Mac before I purchased (only 5 times!) but after I had bought it - they then told me that they do not! I got the AOL disk for Mac but it kind of ***** - features are missing etc. Does anyone in the UK run their Mac's with AOL and does it run as per normal? Any advice with AOL & Mac?
    3). AOL also told me - hey, no probs - of course you can transfer all your old emails, favourites folders, personal filing cabinet from a PC to a Mac - but then, after I bought it - the so called dedicated Mac Experts at AOL tell me that simply is not possible - What advice can anyone give me who has switched from PC to Mac with AOL and who needed to transfer all their stuff over? AOL tells you totally different things depending on who you talk to and even from what their web page state! I am really fed up with them!
    4). If I am ever successful in getting all my many years worth of data from AOL on a PC to a Mac, I am really intent of changing ISP's - what are the best ones for Mac that offer good Mac support, good deals and no charges for telephone support?
    5). I was initially happy with Tiger as again, AOL assured me they supported it but not Leopard (even their website says so) and as I stupidly thought that it must be true (we are talking AOL here!). Now I know that they don't support anything Mac, I am contemplating moving to Leopard - I am a little cautious as I heard there were/are many bugs and unhappy leopard experiences - have the majority of these been solved yet and is it advisable to change to Leopard or should I wait until an updated version comes out?
    6). My MBP was originally bought in the US but is registered to my name in the UK. it has 6 months Apple warranty left and I wish to buy Applecare. Apple says it 'recommends' buying Applecare in the country at which the item is registered (not bought, as I understand it). Does that mean, if I buy Applecare in the USA, Apple UK will still accept it and service my MBP as they would do any other or will I have to have the hassle of sending the thing to the USA if it needs attention? Applecare USA T&C's state only for the 50 States & Canada and Applecare UK state only for the UK & EU. Both however state international servicing?! I am a bit confused on this one. I travel a lot and need to know, that any Applecare I buy will not then be limited to just the places they state in the T&C's. As It reads to me, Applecare purchased in the USA/Canada will not cover the UK/Europe/ROTW and vice versa. Is this true or am I missing something or just plain thick?
    5). I really wish to upgrade the 120GB HDD. My understanding is that it must be done by either Apple (who charge really silly money) or if correct, at an "Authorized Apple Service Provider" who of course will be much cheaper. If true, does this mean at ANY authorized apple service provider on the planet or just ones in which the item is registered? If I do the upgrade with a service provider, will Apple then also service the new HDD if something goes wrong as per normal anywhere in the world or will they then say, sorry, will not service the new HDD and you have to go back to the place where you had it installed, even though it was one of their authorized service centers? (that would really suck)!
    6). The spelling and dictionary (and a few other things) are set to US English - how can I set to UK English? I have tried but to no avail so far.
    7) What and how should I set the Firewall settings so I will not get attacks by any form of malware? (I do not know much about this area and what the implications mean)!
    Well, that's it so far - please bear my ignorance, I am so new to Mac's and hope this to be one of the smarter decisions I have made in life! Already I have strange sensation that I never had with all those years of Microsoft & PC's - I kinda feel reassured, safe, that if I have problems, they will get sorted, My life will now be easier and not having to worry so much about crashes, viruses, trojans etc, gives me a sense of liberation and contentment almost - very strange feeling but a **** good one! (if only the women in my life were like that)!
    Thank You All From A PC to Mac Switcher (and NO! I do not feel guilty or scared anymore)!
    SuaveBhav!

    I can help you with your questions about AppleCare, and can also reassure you that both the macbook pro and Leopard will be worth your investment and the time you are putting into figuring out how to get your data across. I switched from windows when I bought my macbook a year and a half ago and would not use any other system now. The other day I completed the transition by erasing parallels and Windows from my system entirely.
    As for AppleCare, you can get warranty care anywhere in the world, no matter where you buy your AppleCare. Mine was bought and is registered in the US, I live in Slovakia, and have had it serviced several times in Austria and Slovakia under the warranty without any problems at all. There are differences, however, in exactly what the warranty covers from place to place, in accordance with the law in each place that AppleCare is issued. Even though I live in the EU, my agreement with Apple is an American one, and the American guarantees hold. If EU law would demand that Apple fix more things, for instance, than American law does, I could not get those things repaired under my agreement, and vice versa.
    Basically, though, I understand my agreement with AppleCare to be that they will fix all problems/damage that are not my fault free of charge for two years after my initial one-year warranty runs out, and that is good enough for me.

  • Need Help With New Build, Please

    Ok, built a new PC.  Here are the parts:
    MSI K8N Neo4 Platinum
    XFX Geforce 6800GT
    Seagate 160 Gig w/ NCQ
    1 Gig (512x2) Corsair value memory 3200
    PC Power and Cooling 470 Watt Silencer w/ Y PCI-express adapter
    Athlon 3500+ (Clawhammer, says Newegg)
    Lian-Li V-1100 (black)
    My problem: 99.7% sure all cables are connected properly. 
    All lights and fans come on, drives open and close, but no video signal.
    D-Bracket indicates the boot sequence is stuck on "processor initialization".
    Things I've tried:
    Swapped out the motherboard for an Asus A8N-SLI, same problem.
    Reset CMOS on both: same problem, obviously not a motherboard issue.
    Built w/ just CPU, GPU, and Memory on a towel, not a grounding issue.
    Tried swapping out DIMMS one at a time in primary slot, same problem with both.
    Yes, both 24-pin connectors and 12v 4-pin connector are hooked up.
    Where I am now:
    It's not the motherboard, or memory (unless both DIMMS are bad).
    Based on the D-bracket LEDs,  I assume it was the processor.  I've sent the processor back to Newegg for a new one.
    If that's not it, that leaves the PSU, the GPU, and/or the way I've got the y-adapter running to the GPU via two molex.
    If the processor comes back and it doesn't work, I'll probably buy a cheap PCI card from newegg to see if it's a GPU problem.  And/or I'll try a new PSU with a native 6-pin PCI-Express power connector.
    Does anyone see any common compatibility problems with the K8N Neo4 Platinum and the parts I've selected, and/or does anyone have any other suggestions?
    It's very depressing to have all this gear sitting around and be unable to power up Half-Life 2.  :(  Any help would be appreciated.

    Quote from: tdho on 19-April-05, 05:06:22
    Most likely RAM is your problem. Reset bios and try new memory.
    Tom
    Possible, but as mentioned, the LED bracket indicates it makes it completely through POST without the video-card, and I've tried alternating each DIMM, one at a time, in the primary slot.  Unless both sticks are bad (wonder what the statistical chance of that is), it's not memory. 
    Though I'll try swapping out both as a last resort if the GPU switch doesn't work.

  • Need help with PC build for use with Photoshop CS4 Extended - Have I made the right choices?

    Hello,
    I'm very new to the inner workings of a PC...this will be first time building one from scratch.  I know enough to be dangerous but not enough to be confident.  I will use the PC primarily for editing, secondarily for iTunes management.  I've heard that I should have, at the very least, an SSD for PS, other apps and the O/S.  I'll also have a hard drive for data storage.  Do I need yet another SSD for scratch?  If so, any recs for one?  Also, my current build (which does not include any SSDs) is about $800.  What can I skinny down, without sacrificing a huge amount of speed/performance?  I am looking for major guidance here...I'm ready to order, but I keep second-guessing my choices.  I want to make sure I get this right the first time around.  I want this machine to last me a good long while.  Any help at all will be HUGELY appreciated! 
    Here are my current picks:
    Part list permalink: http://pcpartpicker.com/p/1bwi
    Part price breakdown by merchant: http://pcpartpicker.com/p/1bwi/by_merchant
    CPU: Intel Core i5-2500K 3.3GHz Quad-Core Processor  ($214.99 @ SuperBiiz)
    Motherboard: Gigabyte GA-P67A-D3-B3 ATX  LGA1155 Motherboard  ($104.99 @ Newegg)
    Memory: G.Skill Ripjaws Series 16GB (4 x 4GB) DDR3-1333 Memory  ($85.00 @ Newegg)
    Hard Drive: Samsung Spinpoint F3 1TB 3.5" 7200RPM Internal Hard Drive  ($49.99 @ Newegg)
    Video Card: XFX Radeon HD 6850 1GB Video Card  ($129.99 @ Newegg)
    Case: Cooler Master Elite ATX Mid Tower Case  ($60.00 @ Amazon)
    Power Supply: Corsair 500W ATX12V Power Supply  ($49.99 @ Newegg)
    Optical Drive: Lite-On iHAS124-04 DVD/CD Writer  ($19.99 @ SuperBiiz)
    Operating System: Microsoft Windows 7 Home Premium SP1 (64-bit)  ($91.98 @ Amazon)
    Total: $806.92
    (Prices include shipping and discounts when available.)
    (Generated 2011-09-19 18:29 EDT-0400)
    Thanks!
    Andrea

    Make sure the motherboard is the third revision as the earlier two had problems with the i5-2500K (Sandy Bridge)
    I prefer Asus motherboards but doesn't mean the Gigabyte is a problem. (I note that it scored 4 eggs...)
    May not make a difference in Photoshop but for Premiere the Geforce video cards with GDDR5 are preferred.
    The LiteOn iHas 224 does lightscribe which is a nice touch for clients/gifts.
    There is no room to save as I would consider your build minimum specs for a nice photoshop experience.
    As for SSD drives...my research of reviews and articles makes me feel the technology is not ready for mission critical work. So if you are running a business then I recommend not using SSD drives. Rather look at Raptor 10,000 rpm drive for Windows and Photoshop and use the Spinpoint for storage. If not business then I've read the intel x25 SSD drives are solid but I have no personal experience with them.
    Cheers,
    Steve

  • I need help with a mapping issue.

    We have a number of websites setup so that they are all under the default website in IIS 7.  We use ISAPI/ReWrite/3 to process and take it to the correct page to view.  Unfortunately this does not work so well with CFAJAX or CFFILEUPLOAD.  Can anyone help?
    Example:
    Local Directory: D:\sites\website1\index.cfm  or D:\sites\website2\index.cfm
    URL: http://website1.preview.domain.com/ would show a different website than http://website2.preview.domain.com/
    ISAPI ReWrite code:
    RewriteCond %{HTTP:Host} ^(?:.*\.)?website1\.preview\.domain\.com|^(?:.*\.)?website1\.new\.preview\.domain\.com|^( ?:.*\.)?website1\.office\.preview\.domain\.com$
    RewriteRule (.*) /website1$1 [NC,L]
    and the same with website2, only it has website 2 instead of website1.
    However, when I use CFFileUpload it creates the parameter as: 'http://website1.preview.domain.com/website1/upload/process.cfm'
    I have tried to replace the code when processing the template and the page content, but it does not replace it.  It must happen last, even after I do a <cfsavecontent>
    I need it to show up as http://website1.preview.domain.com/upload/process.cfm
    Can anyone help me with either an idea to use in the ISAPI/ReWrite or some other change I can make?

    The issue comes down to the fact that in the Coldfusion Administrator I set the Settings > Default ScriptSrc Directory : http://10.4.3.80/CFIDE/scripts/, because http://website1.preview.domain.com/cfide/scripts does not exist.
    This works for cfchart, but when I look at the source for any flash stuff, it still puts just "/CFIDE/...", which is trying to pull from http://website1.preview.domain.com/CFIDE/..., which doesn't exist, and it shows http://website1.preview.domain.com/website1/upload/process.cfm (which does not exist) instead of http://website1.preview.domain.com/upload/process.cfm like it should.  Everything else works on the website, all coldfusion stuff (although, I do convert some of the links and things in my page so that they work properly).  However, I can't find a place to replace links when I use a cffileupload, it puts that in very last, so my links are messed up.
    The nicest thing would be a setting that I could set the cffileupload to know what the path is.  If that is not available, then I need to write a ISAPI/ReWrite line to redirect it.

  • Need help with Expression

    I need to search and replace several Title Tags with
    information such as "<b>Almond Oil (5 ml)</b>
    </font> <hr size="2" noshade>" (without quotes). What
    expression do I use to indicate "everything between the >b>
    and </b> as this information changes?

    Hi,
    Assuming you are using the database is SQL Server:
    SELECT [CustomerID]
    ,[Quantity]
    ,[Unit Price]
    ,[Contract Price]
    ,[Total] = CASE WHEN [On Contract] = 'Yes' THEN [Quantity] * [Contract Price]
    WHEN [On Contract] = 'No' THEN [Quantity] * [Unit Price] END
    FROM [Customers]
    Modify the SQL to suit your need.
    Hope this helps.
    ~J.

  • New to Flash AS3, Need help with some weird issues, have .fla link attached...

    Basically, the buttons are not visible when siteplan_mc is replayeed after floorplan closes, but they still work. Most things are only working on double click for soe reason, tho I have them to function on click. and the back button only woorks on unit 1 floorplan, tho the code it the same for all floorplans. I have a feeling it has something to do with levels... but I really have no idea... hopefully someone can help!
    thanks in advance,
    Sarah
    http://www.30eastroosevelt.com/RRHA_SITE.fla

    There are at least two things you're doing wrong. You can't go to a frame where something exists for the first time, and immediately do something to it. Like in your playunit functios for example:
    gotoAndStop("unit1")
    unit1_mc.alpha = 1
    unit1_mc hasn't yet drawn itself on stage to have its alpha set, and so there's an error. That is something that was improved in Flash 10, so if you had set the Flash to publish for Flash 10 and not Flash 9, then the floor plans and the back buttons appears ok. It would sometimes work with double clicks because by the second time you clicked, the movieclip now existed. You might be able to do what you want by having all of the room units on frame 1 of the siteplan_mc, and then set their visible to true or false as you need them, instead of doing the gotoAndStop().
    The other problem is that you're trying to set listeners on the Back buttons that don't yet exist. Wait until you're on the frame where the buttons exists, and then set its listener for the mouse click.
    Other things you're doing could be improved too, but really you might want to get together with someone who has done more AS3, to help you become more familiar with how it works.

  • Error message "VI is not executable"! Need help with Application Builder

    Hello,
    I have a problem with an application, built with the Application Builder. I have read some threads about the problem I have, but I still don't know a solution.
    When I run my front panel from LabVIEW, everything is good. So, now I created an application (and an installer) to be able to run it on other PCs as well. This application does not work. Everytime I start it on my PC, I get the error "VI is not executable. ...". I read in several forums solutions for this error, but I cannot fix it! I've changed my properties for the builder, but with no success. Perhaps, anybody has more ideas, what's the problem.
    To get a better idea from my project, here a little description of it:
    In the block diagram there is a while loop which is continuously runned. In this loop I only set some properties for the layout of the front panel, such as decorations which will be hidden/shown and changes of colours of indicators... For the rest, it waits for a click on the button "Start" in the front panel. After that, a DLL is called to communicate with a USB device. Some measurements are carried out and the DLL is closed. I hope, you can get a global idea from my block diagram...
    I use LabVIEW 8.5, the DLL is a third-party DLL, which we wrote on our own. But I think the DLL works properly, if it is called from a C# application it works and it works, too, by calling it from LabVIEW when I am in development mode.
    It's a project for university and I'm just a beginner in LabVIEW, so I don't have so much experiences in it, but I think i improved my knowlegde about LabVIEW very well in the last weeks!
    So, i hope to get an answer soon (the deadline for the project is not soooo far away )
    If you need more information, please let it know...
    I would be very grateful if there is someone with a working solution...
    Kind regards from the Netherlands,
    Sebastian

    Sebastian,
    Your architecture makes it very difficult to debug this and other problems.  Does the error message mention which VI is causing the problem?  It is very important to wire your error clusters everywhere.  In LabVIEW, when a node throws an error (Error.Status = T), future nodes do not execute.  At the end, place an error cluster indicator that you can see on your front panel.  When an error posts, you can right click the indicator (even in a compiled application) and select "Explain Error".
    This is a start, but you really need to push this into a queued-state machine before this gets any more complicated.  As it were, if anything in your loop hangs, your whole application hangs.  See attached for a queued-message handler (not advisable for actual applications, but you get the point.  You would want to have a type defined enum in lieu of strings, and shared data between states differently, etc.)
    -Jason
    Message Edited by LabBEAN on 01-20-2009 08:36 AM
    Certified LabVIEW Architect
    Wait for Flag / Set Flag
    Separate Views from Implementation for Strict Type Defs
    Attachments:
    State Machine.vi ‏18 KB

  • Need help with startup Sync issue with Photoshop Elements 8.0

    When starting up Photoshop Elements 8.0 a brief dialog appears about sync space being filled up with options for Cancel or Proceed. This is then quickly covered up by the frame showing Survey/Show What's New/etc... cannot get back to dialog about sync space. Only way to get into the program is to click on the right arrows in the Welcome to Elements frame, start a tour, click right arrow until Go box is presented and then click on Go. Major PITA to do this. If we are quick, we can click on the initial dialog and click on Cancel or Proceed and get into the program without the covered up frame. We are running PSE8 on Windows 7.
    I have shut off sync and still this problem remains.I have been a loyal Adobe product user but this Automatic Sync stuff is really starting to get VERY irritating.
    Thanks for any help that can be provided.

    A lot of people are finding the same frustrations. Apparently PSE8 does not let you select start up with the Editor but forces the welcome screen on users. This is a classic case of Adobe not knowing what customers want and giving us what they think we want. It ignores the fact that the majority of users will have upgraded from earlier versions.
    You can make quick short cuts. If using windows right click on the desktop, select new short cut then browse to program files, Adobe Photoshop elements and scroll right down the list and click on Editor; then finish.
    You can do the same for the organizer and then launch each one independently.
    You need to think carefully whether you need to keep everything in sync with Photoshop.com. Several users have found problems when they have quickly used up their free storage capacity and then have to pay Adobe an upgrade fee just to continue using the program, otherwise they are locked out.

  • Need help with Firefox display issue on one page of site

    I have a page that W3C validates, displays properly in IE and Netscape, but does not display properly in Firefox. The issue is with a style class applied to the inner centered table. class= "vert_table" This class works on all of the other pages in the site, but not in this one.
    The page:
    http://www.redshift.com/~lorac/sdy-46-49.html
    The issue:
    < table class="vert_table" width="760" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#f1ebe8" >
    The vertical rule does not display, and further down the page a dark left-right border appears starting with this text.
    my mother, when I was wasting my life away not knowing who I was,
    and ends with:
    Mojin: (hugging him) I don't expect you to love me. I just want you to live, that's all.
    I have been looking through this code for two days, searching for any offending omission in code or redundancy that would break the page. I've searched for missing div tags but none are apparent to me. I'm hoping someone with fresh eyes can spot it right away.
    It's odd that the page validates but Firefox cannot display it properly.
    Sample page of code working properly:
    http://www.redshift.com/~lorac/sdy-41-45.html
    Any help is appreciated.

    Hi Jim, thanks for the reply. Your suggestions sound interesting but I'd like to figure out why this particular page doesn't work when all of the others do. I'm sure it's just a little code thing that I'm overlooking.
    I could revert back to a saved page, but I updated text and images on this page before the verticle border broke, so I don't want to lose those edits. And that is why I'd like to fix this one instead of redesigning the page.
    BTW, I forgot to mention in my first post, GoLive CS, W2K.

  • Need help with netstream crossdomain issue

    Our company has a main server for our web site. But all of
    our graphics are then copied from the main server to a special
    caching server to speed things up. I am trying to use netstream to
    create a universal video player for our company and it works fine
    as long as the source .swf and .flv are being called from the same
    server. But when I call the .swf from our main server and then the
    .swf tries to load the .flv from the graphics server, it doesn't
    play. I have tried the crossdomain.xml thing and it still doesn't
    work. I've looked for information relating to netstream crossdomain
    issues but haven't found anything. I know the easy solution is to
    make sure everything is called one server, but many people might
    use this and I can't always be sure they know what they are doing.
    Can anybody help???? OR could this be a problem with the way our
    servers are setup?

    forgot to add that i did delete and re add the Drivers thinking that might be an issue
    Ran system test on everthing and it show its working just fine
    but still no  SPOKEN VOULUME TO SPEAK OF
    the music or Sound side works fine 
    Paul

  • Need help with Powerbook freeze issue

    I'm having a strange problem with my PB: At seemingly random times, the system will lock up and display the spinner and the only way I know how to fix it is to pop the battery out and reboot. It doesn't respond to any input once the spinner starts.
    Here's the thing: when the freeze happens, I can hear an abnormal noise from the spacebar or upper left area. It sounds like hard drive activity at short spurt intervals, with almost one-second pauses in between.
    I have repaird the HD and permissions, which said it fixed some errors, but the problem is persisting. I ran a hardware scan and all is well. I took it to the Apple Store and the guy couldn't find anything physically wrong with it after running some diagnostics.
    One last thing--I seem to be running Safari usually when these freezes occur. Any help would be greatly appreciated.
    Powerbook G4 Aluminum 15"   Mac OS X (10.4.7)   1.5 GHz, 1.5 GB RAM

    forgot to add that i did delete and re add the Drivers thinking that might be an issue
    Ran system test on everthing and it show its working just fine
    but still no  SPOKEN VOULUME TO SPEAK OF
    the music or Sound side works fine 
    Paul

  • Need help with sales/warranty issue

    I need some assistance and I am hesitant to ask for it here since I know this is not an official support channel, but so far official support has not been able to do anything for me.
    I wrote extensively about my experience here. Basically my notebook arrived but I did not get a ship notification  e-mail and my credit card was not charged until over a month later. This wouldn’t be that big a deal, but my warranty is not showing correctly on the look-up site. I paid extra for a two year warranty with Thinkpad Protection yet the look up site shows the standard one year warranty. I talked to warranty support several times and they told me that I needed my invoice number (which I didn’t have until recently when the ship confirmation e-mail came) and recommended I talk to sales. I have talked to sales multiple times and they generally say they have no record of my order shipping, my serial number is invalid, I must have received the wrong computer, etc. etc. Usually the call ends with them saying they will investigate the issue and get back to me which never happens.
    Once the shipment e-mail finally arrived (with an invoice number) I emailed the person I have been working with at warranty support the invoice number but I have heard nothing back and my warranty is still showing incorrectly. I was considering upgrading to on-site warranty support but considering I can’t even get the warranty I originally bought working I don’t think I will bother at this point.
    The whole process has left me incredibly frustrated. I continue to be very pleased with the T61 itself, but dealing with Lenovo has been quite negative so far. If anyone has any suggestions or can lend any assistance I would greatly appreciate it!

    Hi,
    There may be dust buildup in the heatsink. You can buy a Can of Compressed Air from electronics stores (DickSmith and Jaycar for example) to blow the dust through the vents.
    As for the battery drain, update the BIOS to the latest version ( have a look at mytoshiba.com.au -> Support -> Downloads ), then go into the BIOS by pressing F2 during POST and disable USB Sleep and Charge.
    If you still have problems with it, you can send the notebook to a Toshiba Repair Center. There is an ASP list on mytoshiba.com.au

Maybe you are looking for

  • How to update ipad ios 4.3.5 to current version

    HI This is dinesh Currently i am using ipad which have ios version of 4.3.5 8L1. I would like to update this version to current version(7.X.X.x). i  tried with auto update but its stopped in the middle of update. Please Suggest me how i update my ipa

  • Cisco NAC web agent failure

    Is there a list somewhere that shows what the status's mean?  I have a few users getting this error, while others are working fine - Failed to download  Cisco NAC Web Agent ( status = -2 ) ! Thanks!

  • Exciting times with the Air Disk: Drive format and Remote access

    What a great addition to the Air Port. Tell me this, since the Air Port extreme is Mac+PC compatible, can my external drive be formated NTFS and still work with a Mac on the network? Also, can someone point me to a resource for accessing the Air Disk

  • Youtube freezes my computer

    After having troubles similar to the ones being described in the AMD bar and grill, I changed my video driver xf86-video-ati. But it seems to be allergic to youtube videos. All I have to do is have an embedded video in my browser window - not playing

  • AMS 5 Standard capability/compatibility with Haivision

    Is Adobe Media Server 5 Standard capable/compatible with streaming Haivision Kulabyte encoded streams to more than 10 connections? We installed it at Haivision's recommendation. After it working on an initial stream, it stopped working altogether aft