If / then syntax

I'm fighting to understand how the "column" is identified by the syntax error. Regardless, this is what I have in the script and can't identify the script error

If LoanAmount.rawValue = (FranchiseFee.rawValue + Buildout.rawValue + EMR.rawValue) then

PostTotalExpense.rawValue = PostExpense.rawValue + PostSalary.rawValue + LoanPayment.rawValue + PostRent.rawValue + PostUtilities.rawValue + PostMedical.rawValue + Royalty.rawValue + Marketing.rawValue + PostBilling.rawValue;

ElseIf LoanAmount.rawValue < (FranchiseFee.rawValue + Buildout.rawValue + EMR.rawValue) then

PostTotalExpense.rawValue = PostExpense.rawValue + PostSalary.rawValue + ((FranchiseFee.rawValue + Buildout.rawValue + EMR.rawValue) - LoanAmount.rawValue) + PostRent.rawValue + PostUtilities.rawValue + PostMedical.rawValue + Royalty.rawValue + Marketing.rawValue + PostBilling.rawValue;

else if LoanAmount.rawValue = 0 then

PostTotalExpense.rawValue = PostExpense.rawValue + PostSalary.rawValue + (FranchiseFee.rawValue + Buildout.rawValue + EMR.rawValue) + PostRent.rawValue + PostUtilities.rawValue + PostMedical.rawValue + Royalty.rawValue + Marketing.rawValue + PostBilling.rawValue;

endif

The error I get is

Error: syntax error near 'LoanAmount' chip on line 1, column 13

Any thoughts?

Hello

I hope you use formcalc to do this, because it wouldn't be good, if you are using javascript...

"in any case in formcalc the '=' must not be used in an if statement it should be replaced by"eq"as"<" it="" should="" be="" replaced="" by="">

also, never forget to put the brackets for the if statement, here it comes... Look at the following code

If (LoanAmount.rawValue eq (FranchiseFee.rawValue + Buildout.rawValue + EMR.rawValue)) then

PostTotalExpense.rawValue = PostExpense.rawValue + PostSalary.rawValue + LoanPayment.rawValue + PostRent.rawValue + PostUtilities.rawValue + PostMedical.rawValue + Royalty.rawValue + Marketing.rawValue + PostBilling.rawValue

ElseIf (LoanAmount.rawValue lt (FranchiseFee.rawValue + Buildout.rawValue + EMR.rawValue)) then

PostTotalExpense.rawValue = PostExpense.rawValue + PostSalary.rawValue + ((FranchiseFee.rawValue + Buildout.rawValue + EMR.rawValue) - LoanAmount.rawValue) + PostRent.rawValue + PostUtilities.rawValue + PostMedical.rawValue + Royalty.rawValue + Marketing.rawValue + PostBilling.rawValue

ElseIf (LoanAmount.rawValue eq 0) then

PostTotalExpense.rawValue = PostExpense.rawValue + PostSalary.rawValue + (FranchiseFee.rawValue + Buildout.rawValue + EMR.rawValue) + PostRent.rawValue + PostUtilities.rawValue + PostMedical.rawValue + Royalty.rawValue + Marketing.rawValue + PostBilling.rawValue

endif

I hope this helps!

Tags: Adobe LiveCycle

Similar Questions

  • characterstyle duplicate "[None]".

    Hello

    I have a text of the ILO which has a format (fontsize, fontweight, color, etc.) is not a characterstyle applied to you, so he hase the "[None]" style. I would like to reproduce this style and add a new name. But the "[None]" style do not have to be duplicated apparently, it gives me the following error:

    < code > error: Invalid request on a root style. < code >

    the code I use is as follows:

    var styleRanges:Array is InDesign.app.activeDocument.stories.everyItem ().textStyleRanges.everyItem () .getElements ();.

    for (var i: uint = 0; i < styleRanges.length; i ++) {

    if (styleRanges [i].appliedCharacterStyle.name = "[None]") {

    var dupeCharStyle:CharacterStyle is styleRanges [i].appliedCharacterStyle.duplicate ();.

    dupeCharStyle.name = String ("vit2printstyle"+ i);

    styleRanges [i].appliedCharacterStyle.remove (dupeCharStyle);

    }

    }

    But as said, it does not work.

    What would be the best and most importantly, the fastest, way to do this?

    (1) in the format of your code click on the > next the smile then syntax then Java.

    (2) I'm confused by what you want to do with your code.

    What you seem to want to do is whenever you come across a styleRange who doesn't have a character style applied and therefore the "[none] "Style has asked to make a new style based on 'None' with just with the relevant deviations of the 'None' style. "

    This is problematic because the 'None' style has all this value is null. 851876449 (NothingEnum.NOTHING) or values

    Run the code below for demo, with the opening of the JavaScript Console.

    noneProperties = app.activeDocument.characterStyles.itemByName("[None]").properties;
    ms = app.selection[0];
    msp = ms.properties;
    for (n in noneProperties) $.writeln("[None]: "+noneProperties[n]+"\tSelect: "+msp[n]+ "\tProp: "+ n);
    // 1851876449 = NothingEnum.NOTHING
    

    One way around this problem is like that.  If I paid, I'll try to optimize a bit more.

    //script to create new character styles by Trevor http://forums.adobe.com/message/4961504#4961504
    redraw = app.scriptPreferences.enableRedraw;
    app.scriptPreferences.enableRedraw =0; // speeds up script
    app.doScript("main()", ScriptLanguage.javascript, undefined, UndoModes.FAST_ENTIRE_SCRIPT, "Trevor's create new character styles");
    app.scriptPreferences.enableRedraw = redraw;
    
    function main()
        {
            var doc =  app.activeDocument,
            tempFrame = doc.pages[-1].textFrames.add({geometricBounds:["-12mm",0,"0mm","50mm"], contents: "Hi Vincent"});
            var tempNoneStyle = tempFrame.textStyleRanges[0].properties,
            noneProperties = app.activeDocument.characterStyles.itemByName("[None]").properties,
            myTextRanges = doc.stories.itemByRange (0,-2).textStyleRanges.everyItem().getElements();
            var l = myTextRanges.length;
            while (l--)  if (myTextRanges[l].appliedCharacterStyle.name == "[None]")            {
                    NONE = {};
                    myProps = myTextRanges[l].properties;
                    for (n in noneProperties) if (myProps[n] != tempNoneStyle[n]) NONE[n] = myProps[n];
                    NONE.basedOn = "[None]";
                    var cs = app.activeDocument.characterStyles.add();
                    cs.properties = NONE;
                 }
            tempFrame.remove();
        }
    
  • SQL syntax recordset IF THEN ELSE

    Here's what I'm trying to do: I am trying to display two different levels of content based on a user is profitable or not. for example, if the field xyz_paying = 'Yes' then select *, otherwise only display some fields, so I will try to use a mysql statement to create a SELECT query. I tried to do that IF, THEN, ELSE, but I'm getting syntax error messages. could someone show me a simple example please. or suggest a good resource. Thank you.

    I can't seem to get the sql to do what I want, so I changed gears and I use a conditional region to display only when my paid domain == works y. very well.

    I guess it's as good as force sql to do what you want. I'm now pulling all the data in the tables but it displays in a selective way.

  • PHP if then the syntax, a conditional link in the form submit button

    I have a site with a code that checks the value of a field in a database table and controls what page a user goes to when they hit the submit button in a form.

    It is part of a shopping cart, where a few extra options are available along the way.

    I have added a new option for a different size of cushions, but cannot get the syntax right or wrong somewhere.

    I have this code in my head:

    $row = mysql_fetch_assoc ($result);

    If (! @empty($_POST)) {}

    $_SESSION ['cart'] ['items'] [$_POST ['id']] ['paint'] = $_POST ['color'];

    If (@empty ($row ["cushions"])) {}

    $url = ' accessories.php? id = '. $_REQUEST ['id'] ;}

    ElseIf (@empty ($row ["cushions2"])) {}

    $url = ' accessories2.php? id = '. $_REQUEST ['id'];

    } else if (! @empty ($row ["glasstop"])) {}

    $url = ' glasstop.php? id = '. $_REQUEST ['id'];

    } else {}

    $url = "shopping_cart.php;

    }

    And this code in my form button:

    < a href = "<?" PHP echo (! @empty ($row ["cushions"]))? "shopping_cart.php": ' accessories.php? id = '. $_REQUEST ['id']? ">" style = "float: left;" color: #251717; background-color: #DBC87B "> NO THANKS, go AHEAD WITH the ORDER < /a >"

    How can change that it will go to the page accessories.php or the accessories2.php?

    Just to say that I'm this work. In the end, I thought I could use three links .every wrapped in a piece of conditional code like this:

    NO THANKS, PROCEED WITH THE ORDER

    "style =" float: left; color: #251717; background-color: #DBC87B "> NO THANKS, go ahead WITH the ORDER"

    "style =" float: left; color: #251717; background-color: #DBC87B "> NO THANKS, go ahead WITH the ORDER"

    It's not as elegant as a single link, but it seems to work.

  • If then the value of another cell - using the syntax visible

    My form is saved in dynamic PDF, the table is a set number of lines, opted in the case of this form cannot have repeating lines.  I am trying to simulate the index number of the column 1 depending on whether the cell column 2 on the same line is empty or not.  If a value is entered in the 2nd cell, I hope to see the default value of the 1st column by rank.  Here is where I am today, but no luck.  Not sure what event to place.  Right now, it's in the event of modification of a read-only cell in the 1st column.  Have also tried formcalc, but had no luck there, either.  Is there a better way to simulate an index when the table is static?  Thank you!

    Reading single column
    This column - empty or whose value should trigger the left column to display or not




     SPO.sfrmBOM.Table1.Row1[0].Cell1::change - (JavaScript, client)
    
    if (SPO.sfrmBOM.Table1.Row1.Cell2.rawValue == null  || SPO.sfrmBOM.Table1.Row1.Cell2.rawValue.length = 0)
      this.presence = "hidden";
    else
      this.presence = "visible";
    endif
    

    You could do something like (in formcalc in the output of Cell2 event):

    If ($.isNull) then

    Cell1 = «»

    of another Cell1 = '2 '.

    endif

    in this way, you don't have to have a default value and hid it originally, just leave it empty at the beginning.

  • Since the patch v17, I get syntax errors on each site, that I will. 2 windows each time. OK twice and they are gone.

    It's the 1st small window that displays ' evalInSandbox:SyntaxError: syntax error ".
    I click 'OK', then the following window appears "syntax error". I click 'ok' and it disappears until I go to another web page.

    I had the same exact errors to appear on all Web sites. I tested each extension and add on to my firefox and found that it was the application of SocialFixer (version 7.2) that was the problem. If you have installed, try to update to version 7.3 of SF. It fixed my problem, maybe he'll deal with yours!

  • Syntax of HP to convert error

    Hello

    I have a new HP first graphic calculator.  My old G 48 died on me, and decided to make the switch.  It's so different from what I am accustomed.

    First of all, this is my first HP Info:

    Software version: 2014 3 31 (6030)

    Hardware Version: has

    Version number: 1.1.0 - 46

    A function that I use a lot on my 48G was converting units.

    So I tried starting using Convert on my first HP and when I tried to convert I had a syntax error.  Looked around in forums and somewhere, he updated firmware, I did.

    Now I have 2 errors.  First of all, when I press "Convert", I get a new error: wrong number of arguments

    Then when I try to convert I get the same error of syntax.

    I think I know where the problem lies for the syntax error, when converting should put units (of) I think.  But for some reason any length that is not, for other units, he made (km2).

    I tried the feature on the virtual calculator on windows and on the virtual server an everything works, but on my physical, I always get the same 2 errors (even when the units are in (), with no result.

    Can anyone help please?

    Thank you

    Please let us know some examples of expressions that you tried, what you expected, and what has happened to the place.  ALSO please let us know how your premium is in (for example entry RPN, or CASE mode), because the first behaves very differently according to the home and CASE parameters.  The app is the active application (displayed in the title bar) can alter the behavior of premium.  When you know these things, we will be able to discern why you get syntax errors.

    If I had to bet, I'd bet a nickel that the problem is due to your first RPN mode.  If so, you must use RPN, not algebraic syntax.  Example: 5_ft, Enter, 1_in, Enter, CONVERT-> 60_in (as well as on your HP 48).  Earn a penny?

    DISCLAIMER: I do not work for HP. I'm a happy user of HP Calculator.

  • First HP Calculator: syntax error in line 23, first HP program

    Hello all, can not find this error, because I don't see anything wrong, maybe I count the lines wrong, then how count you lines in HP PPL. It's in the manual? Program to check say syntax error in line 23 program.

    Hi!, @surveying101bil:

    How are you?.

    To detect the line, HPPL, you needed to County, head, program... EXPORT ('title'), line 23.

    If you need assistance, the program, copy all lines, program, in the Forum.

  • Downgrade from Windows 7 to XP. "Syntax error in the .sif file.

    Every afternoon.

    I wasn't totally sure what forum to put this in.

    My boss bought a new laptop of A11 - 11: my my line manager and asked that he be demoted to XP and put it on our network. (usually, it didn't network.)

    It's Windows 7, so I know that's not easy to downgrade.

    I changed the SATA setting in bios compatibility (IDE) and that allowed me to start running the installation CD.

    Then, I got this error;

    "There is a syntax error in the." SIF file used by Setup Online: 8971.

    Setup cannot continue. Stop or restart your computer. »

    I have this with 3 different original discs

    Looking around without decommissioning is to get rid of all the recovery partitions. So, I have that one hidden and now I have a large main drive to NTFS.

    I still get the same error. No recovery disk. Original discs and now I'm totally stumped.

    Are there any other settings in the Bios maybe I need to change?

    Anyone has an idea what I might try?

    See you soon
    Stu

    You should try to install Windows XP Home (SP2 or SP3) using SATA driver to start loading. In this case do not use the compatibility mode but AHCI mode.

    Without load the driver (F6 option at startup to install of WXP) SATA disk HARD will be not visible to Windows XP Home edition.
    Option of job search on this forum and you will find so many threads on the installation of Windows XP Home on the latest portable Win7 supported.

  • format specifier syntax - several commands syntax

    Hey guys,.

    I know there must have been a post to it, but I can't seem to find it. I have several slna (11) that need to be formatted differently (some are dates MMDDYY, some of the values 0,5555) and then written to a file. I'm using and that's why I need to format it. Here's the format specifier syntax that I use:

    %8.0f %4.0f %5.0f %3.1f %5.2f %4.2f %3.1f %3.1f %3.1f %4.4f %3.2f

    When I open the file, this syntax follows all values (and they are not formatted). I hope that there is a glaring error that can be easily resolved.

    (PS I tried every different delimiter without result)

    See you soon,.

    Tyler

    Hold on to your current code until this idea is implemented (if any):

    http://forums.NI.com/T5/LabVIEW-idea-exchange/separate-format-string-for-each-index-of-array-to-SPRE...

    In the meantime, you'll have to individually format the columns to have different formats.

  • Spice up the syntax of the format rules

    Is there a document that explains the difference between the general syntax of SPICE and syntax of Multisim? I tried to read the Guide to using SPICE simulation, but the link takes me to an ad of Multisim 11. Then when I search the manual I loop back to the same place. Annoy her.

    When I import a file SPICE, I would like to know which statements will be valid. Including summaries of the study.

    Thanks in advance.

    Hello

    There is a page in the Multisim help file that highlights the difference between the syntax of Multisim SPICE and other Spice (PSPICE and XSPICE) syntaxes. To find this page, follow these steps:

    1. In Multisim, click Help > Multisim help
    2. Click the contents tab. If you use Multisim 10.1, the help topic can be found under the Multisim SPICE reference. If you use Multisim 11, the help topic are under Simulation > Multisim SPICE reference

    Generally, the study summaries are ignored by Multisim. To set your analysis, you need to click the menus available through simulation > Analyses.

    Hope that helps.

  • MathScript syntax error

    Can someone let me know what the syntax error in the present

    If ((A > = 1,70) & (a)<>
    A = 1
    If ((A > = 1.34) & (a)<>
    A = 1
    If ((A > = 0,925) & (a)<>
    B = 1
    If ((A > = 1.305) & (a)<>
    B = 1
    If ((A > = 1,935) & (a)<>
    C = 1
    If ((A > = 1,72) & (a)<>
    D = 1
    If ((A > = 1,70) & (a)<>
    E = 1
    If ((A > = 1,65) & (a)<>
    F = 1
    If ((A > = 1,29) & (a)<>
    G = 1
    If ((A > = 1.0) & (a)<>
    H = 1
    on the other
    I have = 1
    end

    Thank you chris

    I suppose you want all these s if (except the first) to be an elseif.  If this isn't the case, then you want to terminate after each individual case.

    In addition, it is not a bad idea to start one; at the end of each statement.  (Not the lines containing if, elseif or end)

    In addition, you probably want to use & instead of &.  I don't know if mathscript makes a distinction between the two, but I know some languages.  The help file for use mathscript &, then I'd go with that.  Someone at - it care to confirm if there is a difference?

  • Spreadsheet Excel add after the syntax

    I have a large application that creates a report following a test.  The report is about 250 pages, each page represented as a group in the data portal.  When we deliver him customer report also wants an excel file with pairs of X - Y data for each of the graphs in the report.  I know how to make the selection of the data and copy/paste it to Excel.  Where I encountered problems, that's when I add worksheets in Excel, I can't figure out how to run the new worksheet to add at the end.

    According to the news on Excel VBA, there are parameters before and after that should allow you to do.  I can't quite understand the syntax to include these parameters.  The line of code in question is red.

    If you have nothing but the. Add the statement that the code works but the worksheets appear in reverse order.  I tried a number of different ways, and the script just dies without even showing an error.  I know one around which we work to scroll the list of the groups back, but that's not fair to sit well with me.  I prefer to do things in a logical manner, being from the first to the last.

    If there are questions please let me know.

    Thanks in advance.

    Wayne

    FilePath = autoactpath & "\dataoutputtemplate.xls".

    ExOpen = True
    Nomclasseur = NameSplit (FilePath, "N") & ".". XLS '.
    On Error Resume Next
    Set Excel = GetObject (, "Excel.Application") ' get Excel via OLE if it is already open
    If Err.Number <> 0 Then
    Err.Clear
    Set Excel = New ' start Excel via OLE
    If Err.Number <> 0 Then
    ' Exit Sub
    End If
    ExOpen = False
    End If
    Excel.Visible = true
    IsWorkbookOpen = Excel.Workbooks (WorkBookName) there's nothing = False
    If ExOpen then
    If not IsWorkbookOpen then
    Set ExcelWkb = Excel.Workbooks.Open (FilePath) ' open the Excel file if it isn't already
    End If
    on the other
    Set ExcelWkb = Excel.Workbooks.Open (FilePath) ' open an Excel file from excel is not already open
    End If
    Err.Clear
    On Error Goto 0

    GrpStart = GroupIndexGet ("Globals")
    NumGrp = GroupCount - GrpStart
    ReDim PageList (NumGrp)
    ReDim SectList (NumGrp)
    b = 1
    c = 1
    for a = GrpStart to GroupCount
    CurGrpName = GroupPropValGet (a, "name")
    If InStr(CurGrpName,"List") then
    SectList (b) = Mid(CurGrpName,5) ' remove 'List' in the name of the group to be used in the Table of contents
    b = b + 1
    End If
    If InStr(CurGrpName,"_") then
    PageList (c) = CurGrpName ' Gets a list of groups that should be exported
    c = c + 1
    End If
    Next "(a cycle through groups can gather names)
    ' Add the Table of contents: sheet in workbook
    Set ExTOC = Excel.Workbooks (WorkBookName). WorkSheets.Add
    ExTOC.name = "Table of contents".
     
    For d = 1 to c - 1 ' c is the number of valid sheets in the report which will be exported
    Set ExcelSht = Excel.Workbooks (WorkBookName). WorkSheets.Add (after: = last sheet in the workbook)
    ExcelSht.Name = PageList (d)
    Next would then report to export page

    Hello Wayne!

    What you need to know, is that you can leave empty parameters. The solution to your problem is:

    Set ExcelSht = Excel.ActiveWorkbook.WorkSheets.Add (, Excel.ActiveWorkbook.WorkSheets (Excel.ActiveWorkbook.WorkSheets.Count))

    Matthias

  • using nest if then statements using ABM

    I have a two input, 1 output circuit, as in the attached schema. My third node is set down by the very high resistance voltmeter. What I have is a user defined current source ABM that depends on other parameters in the circuit. I wonder it is what my conditional statement is entered in the right format? Conditions are particularly complex and describe as follows:

    If the voltage difference between V2 and U1 is greater than 0, then the current in the ABM = 10 ^-12

    If this voltage difference that the above is not greater than zero and if (V (1) u (1))<(V(2)-U(1)), then="" the="" abm="" current="" is="">

    Otherwise, if (V (1) u (1)) > = (V (2) u (1)) then the current is (0.1*((-(V(2)-U(1)))^0.35))*0.00001596*(((V(2)-U(1))^2)/2)

    As you can see, they are very complex conditions and my concern is that I can't just type in U1 and get the compiler to understand I want the voltage read on the voltmeter of bottom-node. I think I'm using the correct nesting in the encoding format is: if (T, X, (if(Q,R,S))).

    Any help would be appreciated, and details can be provided.

    I don't know why its not throwing an error for the use of u (1), maybe it's a valid keyword.

    If you want to reference a voltage properly, it should be V (net_name) for single ended voltages (referenced to ground) or V (net1, net2) for differential voltages... For models ABM I suggest turning on net visibility throughout the schematic so that you know the net name to the positive terminal of U1 or anywhere else for that matter.

    I think the syntax you have to if/then/else is correct otherwise.

    Kind regards
    Pat Noonan
    National Instruments

  • DAQmxRepeatTask syntax

    I want to build an oscilloscope limited to card PCI-4474 with four analog inputs and level trigger similar on one of these four analog inputs. With CVI "CQI-IntClk-AnlgStart" example I have most of the code.

    Then with one - button start stop, I want it repeated acquisition 1000 samples in the analog-trigger, trace the curves of four and goes for the next trigger. The option (that I found in this forum) for redeclenchables DAQmxSetTrigAttribute is (according to the CVI debug information) not supported for this Council.

    Next ideais (probably not unique) to divide the example in some functions with the use of DAQmxRegisterDoneEvent:

    create tasks with and others.

    DAQmxErrChk (DAQmxCreateTask("",&gTaskHandle));
    DAQmxErrChk (DAQmxCreateAIVoltageChan(gTaskHandle,chan,"",DAQmx_Val_Cfg_Default,min,max,DAQmx_Val_Volts,));
    DAQmxErrChk (DAQmxCfgSampClkTiming (gTaskHandle",", rate, DAQmx_Val_Rising, DAQmx_Val_FiniteSamps, gSampsPerChan));
    DAQmxErrChk (DAQmxCfgAnlgEdgeStartTrig (gTaskHandle, triggerSource, triggerSlope, triggerLevel));
    DAQmxErrChk (DAQmxSetTrigAttribute (gTaskHandle, DAQmx_AnlgEdge_StartTrig_Hyst, triggerHysteresis));
    DAQmxErrChk (DAQmxGetTaskAttribute (gTaskHandle, DAQmx_Task_NumChans, & gNumChannels));

    Start with and others.

    DAQmxErrChk (DAQmxRegisterDoneEvent(gTaskHandle,0,DoneCallback,));
    DAQmxErrChk (DAQmxStartTask (gTaskHandle));

    DoneCallback that is called when the task has completed the acquisition of its finite number of samples

    DAQmxErrChk (DAQmxReadAnalogF64 (gTaskHandle,...))

    DeleteGraphPlot (panelHandle, PANEL_GRAPH,-1, VAL_DELAYED_DRAW);
    If (Seek_set > 0)
    for (i = 0; i<>
    Foot (panelHandle, PANEL_GRAPH, &(gData...)
    RefreshGraph (panelHandle, PANEL_GRAPH);
    DAQmxErrChk (DAQmxStartTask (gTaskHandle));

    This does NOT work unless I have insert in this DoneCallback DAQmxStopTask before starting the task. This isn't what I expected, because the callback function is called because the task has completed. And this is not what I prefer, because the manual of the CVI reports this judgment and start a task will reduce performance. So I have two questions:

    Can Q: you someone explain or refer to a text What's the difference between the task accomplished and task-stopped in combination with the start task?

    Q: what is the best syntax of DAQmxRepeatTask (not yet found) when re-trigger is required for the synchronisation and when this special attribute is not supperted for card PCI-4474?

    Kind regards, Jos

    Hi Jos,

    Help OR-DAQmx said the task performed the following:

    When a task is completed?

    If the measure or the generation is finished, the task is made when you acquire or generate the final sample or when you call the function stop task/VI. If the measure or the generation is continuous (including synchronization on demand), the task is not made until you call the function stop task/VI. In addition, the task is performed if a fatal error is generated during the execution of the measure or generation, or you give up the measurement or generation. Search for the errors and warnings to check the task completed successfully.

    > This does NOT work unless I have insert in this DoneCallback DAQmxStopTask before starting the task. This isn't what I expected, because the callback function is called because the task has completed.

    The callback function is called because the task is finished and the final sample was acquired. Acquisition of the final sample don't automatically pass the task of the "running" State to the "committed" State, it must always stop the task before you can start it again. See that section for help NOR-titled DAQmx 'model task status' for an explanation of the different States.

    > And this is not what I prefer, because the manual of the CVI reports this judgment and start a task will reduce performance.

    Yes, but in this case, I think that stop is necessary. In other cases, it is not necessary. For example, you wouldn't stop and start the task between each sample.

    There is a way to reduce the overhead of the judgment and the task to start: commit the task by calling DAQmxTaskControl(..., DAQmx_Val_Task_Commit) in the front. In this way, you don't waste time uncommitting, unreserving, re - book and re-engaging the task each time.

    Anyway, the performance does not satisfy your needs? If not, what are your performance requirements?

    Brad

Maybe you are looking for

  • Need drivers of Windows XP Home for Satellite A350D-114

    Hello! I'm Polish and I can't too much English, so I will use Google translation.I have a laptop Toshiba Satellite A350D-114 with standard MS Windows Vista installed. I got this laptop a few years, despite the format, several cleaning, etc., this lap

  • Intermtient his thundering on initialize toward the top of the Satellite P305-S8842

    All the: I recently bought a P305-S8842 with Windows Vista. A few days after the purchase, I went to restart it, and this sound signal strong, smoke detector started emitting from my laptop. When at last the booted system, it was as if a key has been

  • HP 15-r084ng Notebook PC: ECC or non - ECC RAM?

    Hello. It is my information of product here. I searched but I can't find the information online anywhere, including at HP. I am eager to increase the RAM of 4 GB to 8 GB. Could someone please inform me if this product has ECC or non - ECC RAM? I don'

  • Problem setting up an encoder input and PWM output tasks on CompactDAQ

    I use a chassis with a modules 9474 cDAQ-9174 and 9411. I do not think it is important, but they are the cRIO-XXXX modules NOR old provided with a test configuration that has been distributed to early adopters. I use DAQmx tasks in an application (C

  • Generate digital impulses at the counter of Daqmx

    Hello I set up a counter so that when I apply an impulse to him, there are 1. I wish that she either while whenever it receives an input pulse and figures upwards by one, I want to generate a strong 'logic' for a short time, then go back to 'low '. H