questions of syntax

I'm studying just a script and I wanted to understand some of the syntax:

First sound with the regular expressions and variable has the value get-content a text file like $w = get-content c:\text.txt

Then, if a statement reads $w - match "\w+. '   "My question is what does'\w+" means and what it is trying to match.

Secondly, and I see a lot of variables like this foreach or instructions foreach-object like this:

(& $variable) or (! $variable).  That means & and! mean before the variables.

Can someone please advise.

In an expression the string RegEx "^ \w+ ' means:

-start at the beginning of the chain (the ^ symbol)

-Search for a word character (letters, numbers...) (the symbol \w) which appears between 1 and unlimited time (sign +)

See The Regular Expressions in excellent (and free) e-book of Tobias.

PS manages the text between quotation marks as a string.

For PS to run cmdlets in the chain to put an ampersand in front of her.

Ex:

$t = "Get-Service"
& $t

PS, the exclamation point is a logical operator, which means "not."

You can also use the - no operator.

Ex:

$u = $true
!$u             # Will show $false
-not $u      # The same as the previous line

Tags: VMware

Similar Questions

  • (Newbie question) Interval syntax question / explanation of the error

    Ok. So I reach into a big ticketing system based on Oracle (64 bit 11g 11.2.0.1.0) where they store 'ticket-open-time', 'ticket-fixed-time' and the interval of 'time-to-repair. Initially I wanted to calculate the number of minutes of the time of repair. 6 hours and countless Google searches later, I'm not about to the appropriate syntax. I was able to work around the problem through a simple calculation based on the values open and resolved. What I can't understand, is why I can't apply the same syntax extract just the interval field.

    Here's a simplified query that works:

    SELECT
    To_char (OpenTimeGMT, ' ' the HH24: MI: SS DD/MM/YYYY) "OT".
    , TO_CHAR (ResolvedTimeGMT, ' ' the HH24: MI: SS DD/MM/YYYY) "RT".
    , TO_CHAR (TimeToRepairGMT, ' ' the HH24: MI: SS DD/MM/YYYY) "TTR".
    excerpt (days of day (ResolvedTimeGMT - OpenTimeGMT) the second) "days".
    excerpt (time of day (ResolvedTimeGMT - OpenTimeGMT) the second) "hours."
    excerpt ((ResolvedTimeGMT - OpenTimeGMT) minute second day) "Minutes."
    , (extract (day of (ResolvedTimeGMT - OpenTimeGMT) day to second)) * 24 * 60 +.
    (extract (hour of the day (ResolvedTimeGMT - OpenTimeGMT) the second)) * 60 +.
    extract (minute since (ResolvedTimeGMT - OpenTimeGMT) second day) "TotalMinutes".
    FROM there where

    Which produces:
    [OT] 24/09/2012 20:06:29
    [RT] 26/09/2012 13:56:13
    [TTR] 4000/02/01 17:49:44 - Note the year.
    [Days] 1
    [Hours] 17
    [Minutes] 49
    [TotalMinutes] 2509

    The question:
    When I write [extract (minute of day (ResolvedTimeGMT - OpenTimeGMT) the second) "Minutes"], I get 49 minutes I expect

    When I write [extract (minute since (TimeToRepairGMT) second day) "Minutes"], I get an error "syntax error was found in the interval value expression.

    The three fields are declared as 'date' DESC command (even if TimeToRepairGMT is clearly an interval, based on the value of "4000/02/01 17:49:44" ""). While I can plough with my work-around, I really want to know how to deal with intervals that are stored in Oracle tables as dates. Any help is appreciated!

    Hello

    Welcome to the forum!

    966091 wrote:
    Ok. If I am living in a large (64 bit 11g 11.2.0.1.0) Oracle-based ticketing system

    Thanks, that's very useful. Always give your version (11.2.0.1.0) whenever you post a question.

    where they store 'ticket-open-time' and "ticket-fixed-time" interval "time-to-repair. Initially I wanted to calculate the number of minutes of the time of repair. 6 hours and countless Google searches later, I'm not about to the appropriate syntax. I was able to work around the problem through a simple calculation based on the values open and resolved. What I can't understand, is why I can't apply the same syntax extract just the interval field.

    Here's a simplified query that works:

    SELECT
    To_char (OpenTimeGMT, ' ' the HH24: MI: SS DD/MM/YYYY) "OT".
    , TO_CHAR (ResolvedTimeGMT, ' ' the HH24: MI: SS DD/MM/YYYY) "RT".
    , TO_CHAR (TimeToRepairGMT, ' ' the HH24: MI: SS DD/MM/YYYY) "TTR".
    excerpt (days of day (ResolvedTimeGMT - OpenTimeGMT) the second) "days".
    excerpt (time of day (ResolvedTimeGMT - OpenTimeGMT) the second) "hours."
    excerpt ((ResolvedTimeGMT - OpenTimeGMT) minute second day) "Minutes."
    , (extract (day of (ResolvedTimeGMT - OpenTimeGMT) day to second)) * 24 * 60 +.
    (extract (hour of the day (ResolvedTimeGMT - OpenTimeGMT) the second)) * 60 +.
    extract (minute since (ResolvedTimeGMT - OpenTimeGMT) second day) "TotalMinutes".
    FROM there where

    Which produces:
    [OT] 24/09/2012 20:06:29
    [RT] 26/09/2012 13:56:13
    [TTR] 4000/02/01 17:49:44 - Note the year.
    [Days] 1
    [Hours] 17
    [Minutes] 49
    [TotalMinutes] 2509

    The question:
    When I write [extract (minute of day (ResolvedTimeGMT - OpenTimeGMT) the second) "Minutes"], I get 49 minutes I expect

    When I write [extract (minute since (TimeToRepairGMT) second day) "Minutes"], I get an error "syntax error was found in the interval value expression.

    The three fields are declared as 'date' DESC command (even if TimeToRepairGMT is clearly an interval, based on the value of "4000/02/01 17:49:44" "").

    In fact, it is more likely that it is just a DATE, who got the year wrong somehow. Show how you have assigned values to these columns.

    While I can plough with my work-around, I really want to know how to deal with intervals that are stored in Oracle tables as dates. Any help is appreciated!

    The intervals are difficult to work. I suggest that you use very little, or not at all. Keep the storage points in time as DATEs, but store the length of the time as a NUMBER; either the number of minutes, hours, or days, depending on what is appropriate for your data and your business needs best.

    Let's say you decide to keep TimeToRepair as the number of minutes, the length of time of OpenTImeGMT to ResolvedTimeGMT. When you subtract one DATE from another in Oracle, the result is a NUMBER, the number of days between these two DATEs. To get the number of minutes, which multiplied by the number of minutes per day. So the forumla for TimeToRepair is

    (ResolvedTimeGMT - OpenTimeGMT) * 24 * 60
    

    If you store the length of time as a NUMBER, it is very easy to get totals and averages.

    If you want to display this number of minutes like days hours: minutes: seconds, then you can use an INTERVAL, but just for display. Use the NUMTODSINTERVAL function to convert the NUMBER to an INTERVAL DAY TO SECOND:

    NUMTODSINTERVAL (TimeToRepair, 'MINUTE')
    

    I hope this helps you.
    Whenever you have a question, it is useful to show an example of what you have tried and what results you want to get. Post CREATE TABLE and instructions INSERT for examples of data and the results you would get from these data. You will get answers sooner if your question is specific. "How work intervals?" is a very difficult question. Many people who can help you to not trying to answer a question as broad. But if you can formulate your question as: "I need help understanding intervals. Beginning with this data... I tried thinking it would follow... but instead, I got... Why is this? The manual SQL language, to... says..., why is... happening? ", and then it will be easier to help you.

  • Question about syntax of Format specifier

    Dear community,

    I try to write data in an Excel file, it does not work properly. My problem is that I'm not able to get the correct number of decimal points in my data. I would have three decimals after the comma (and not a period) and am currently using "% 3d" as a specifier to format syntax but it seems to round the data to numbers with no decimal point. I enclose below two screenshots, one of VI and the output of said file.

    Any suggestion would be great!

    Thanks in advance,

    Use .3f. Le.3 is for the number of digits after the decimal point and the f for a floating point number.

  • Question of syntax for the Desktop - generator model for Word - BI Publisher

    Hello

    Anyone have experience to add reports using the Publsiher BI for Word template generator?

    Practical question I have: how to implement logic such as: If < field_name > is not null, then, write "Hello" end if

    If anyone gave me some useful links, I'd be very happy.

    Thank you

    PL check the "Oracle XML Publisher Report Designer Guide" at http://docs.oracle.com/cd/B40089_10/current/html/docset.html

    HTH
    Srini

  • Questions of syntax for message ORA-01555

    My DBA has delivered the following message. I understand the cause of the message ORA-01555. My questions are about the additional content in the message.

    Imply the request of 8907 seconds time the failing query worked for so long?

    The 'GATHER_STATS_JOB met mistakes' States that the gather_stats_job was running when the error occurred?

    Has been the cause of the error message GATHER_STATS_JOB (not the root cause of the problem, but rather the ongoing process of execution when the error occurred)?


    ORA-01555 caused by the following SQL statement (SQL ID: fn1ccz80nx7g4, duration of application s = 8907, SNA: 0x0000.18f89957):
    /* SQL Analyze(124,1) */ select /*+ full(t) no_parallel(t) no_parallel_index(t) dbms_stats cursor_sharing_exact use_weak_name_resl dynamic_sampling(0) no_monitoring */to_char(count("MUNI_STAGING_DATE")),to_char(substrb(dump(min("MUNI_STAGING_DATE"),16,0,32),1,120)),to_char(substrb(dump(max("MUNI_STAGING_DATE"),16,0,32),1,120)),to_char(count("PRICING_REC_ID")),to_char(substrb(dump(min("PRICING_REC_ID") ,16,0,32),1,120)),to_char(substrb(dump(max("PRICING_REC_ID"),16,0,32),1,120)),to_char(count("DATE_OF_INSERT")),to_char(substrb(dump(min("DATE_OF_INSERT"),16,0,32),1,120)),to_char(substrb(dump(max("DATE_OF_INSERT"),16,0,32),1,120)),to_char(count("DATE_OF_UPDATE")),to_char(substrb(dump(min("DATE_OF_UPDATE"),16,0,32),1,120)),to_char(substrb(dump(max("DATE_OF_UPDATE") ,16,0,32),1,120)),to_char(count("INTERNAL_ISSUE_ID")),to_char(substrb(dump(min("INTERNAL_ISSUE_ID"),16,0,32),1,120)),to_char(substrb(dump(max("INTERNAL_ISSUE_ID"),16,0,32),1,120)),to_char(count("PRICING_DATE")),to_char(
    substrb (dump (min ("PRICING_DATE"), 16
    Met GATHER_STATS_JOB of errors. Check the trace file.
    Errors in the /u02/oracle/diag/FIAPPE/diag/rdbms/fiappe/FIAPPE1/trace/FIAPPE1_j000_16866.trc file:
    ORA-20011: approximate NDV failed: ORA-01555: snapshot too old: rollback segment number 12 with the name ' _SYSSMU12_1268237196$ ' too small

    Published by: 846797 on March 23, 2011 11:40

    Details of the message from the database pl and OS versions.

    846797 wrote:
    My DBA has delivered the following message. I understand the cause of the message ORA-01555. My questions are about the additional content in the message.

    Imply the request of 8907 seconds time the failing query worked for so long?

    Fix. About 2 hours and a half.

    The 'GATHER_STATS_JOB met mistakes' States that the gather_stats_job was running when the error occurred?

    Fix.

    Has been the cause of the error message GATHER_STATS_JOB (not the root cause of the problem, but rather the ongoing process of execution when the error occurred)?

    Fix.

    >

    ORA-01555 caused by the following SQL statement (SQL ID: fn1ccz80nx7g4, duration of application s = 8907, SNA: 0x0000.18f89957):
    /* SQL Analyze(124,1) */ select /*+ full(t) no_parallel(t) no_parallel_index(t) dbms_stats cursor_sharing_exact use_weak_name_resl dynamic_sampling(0) no_monitoring */to_char(count("MUNI_STAGING_DATE")),to_char(substrb(dump(min("MUNI_STAGING_DATE"),16,0,32),1,120)),to_char(substrb(dump(max("MUNI_STAGING_DATE"),16,0,32),1,120)),to_char(count("PRICING_REC_ID")),to_char(substrb(dump(min("PRICING_REC_ID") ,16,0,32),1,120)),to_char(substrb(dump(max("PRICING_REC_ID"),16,0,32),1,120)),to_char(count("DATE_OF_INSERT")),to_char(substrb(dump(min("DATE_OF_INSERT"),16,0,32),1,120)),to_char(substrb(dump(max("DATE_OF_INSERT"),16,0,32),1,120)),to_char(count("DATE_OF_UPDATE")),to_char(substrb(dump(min("DATE_OF_UPDATE"),16,0,32),1,120)),to_char(substrb(dump(max("DATE_OF_UPDATE") ,16,0,32),1,120)),to_char(count("INTERNAL_ISSUE_ID")),to_char(substrb(dump(min("INTERNAL_ISSUE_ID"),16,0,32),1,120)),to_char(substrb(dump(max("INTERNAL_ISSUE_ID"),16,0,32),1,120)),to_char(count("PRICING_DATE")),to_char(
    substrb (dump (min ("PRICING_DATE"), 16
    Met GATHER_STATS_JOB of errors. Check the trace file.
    Errors in the /u02/oracle/diag/FIAPPE/diag/rdbms/fiappe/FIAPPE1/trace/FIAPPE1_j000_16866.trc file:
    ORA-20011: approximate NDV failed: ORA-01555: snapshot too old: rollback segment number 12 with the name ' _SYSSMU12_1268237196$ ' too small

    Published by: 846797 on March 23, 2011 11:40

    HTH
    Srini

  • question of syntax dropdown.addItem

    Anyone can suggest the following function does not work why? addItem does not seem to accept the 'i' as an argument.

    function

    dropdownRange (dropdown,Start end increment)

    {

    for (var i = start; i < end; i+=increment) {

    dropdown.addItem (i);

    }

    }

    I'm calling the function of a group of radio change event that toggles the range drop-down menu:

    functions.dropdownRange (mydropdown

    , 200 , 1500 , 100);

    Thanks in advance

    Everything seems fine except the addItem syntax.

    It should be written as:

    dropdown.addItem(i+'');     don't forget to convert the variable whole i of the string here...

    It is to go...

    Nith

  • Newbie question (associated syntax)

    What is the syntax to target a function that exists within a different component?

    I'm trying to get a button within A component to target and execute a function within the B component.

    The function I'm trying target perform actions that affect only this component, in that it resides.

    So, basically I want to trigger a function within a component, a different component.

    ------------------------------------------------------------------------------------

    "Component".

    < mx:Button id = "backToMovieBtn" label = "Back to Movie" click = ""? "/ >"

    "Component B.

    private function showVideo (): void {}

    This.Visible = true;

    this.includeInLayout = true;

    }

    Thank you all!

    DK

    Here is an example that works if it can help

    COMP HAS

    http://www.Adobe.com/2006/mxml' width = '158' height = "58" backgroundColor = "#FFFFFF" >

    Model B

    http://www.Adobe.com/2006/mxml"width ="400"height ="300"backgroundColor ="#F5F5F5">

    Import mx.controls.Alert;

    public function sayHello (): void {}

    Alert.Show ("Hello there")

    }

    ]]>

    Application

    "http://www.adobe.com/2006/MXML" layout = "absolute" xmlns:ns1 = "" * "creationComplete =" addComps () ">

    private var compA:CompA = new CompA();

    private var compB:CompB = new CompB();

    private function addComps (): void {}

    compA.x = 100; compA.y = 100;

    compA.addEventListener ('clicked', handleClick);

    compB.x = 300; compB.y = 300;

    addChild (compA);

    addChild (compB);

    }

    private void handleClick(event:Event):void {}

    compB.sayHello ();

    }

    ]]>

  • Question of syntax nested symbol

    I'm dynamically loading 'slides' on the stage. In the symbol which is responsible on his script, I have the following:

    var icon = sym.$("honIcon");

    Icon.Hide ();

    This works as expected. However, the following does not work:

    var icon = sym.$("honIcon");

    Icon.CSS ('cursor', 'pointer');

    Neither binder of triggers such as

    var icon = sym.$("honIcon");

    Icon.bind ("Click", showToolTip);

    function showToolTip() {}

    Alert ("received message");

    }

    Suggestions?

    I have:

    Add this

    SYM.$("slideContainer1"). CSS('z-index',1000);

    line 70

    in the slide:

    var icon = sym.$("honIcon");

    SYM.$('HON_tooltip'). Hide();

    {Icon.Click (Function ()}

    SYM.$('HON_tooltip'). Show();

    });

  • IF (SELECT...) END IF; questions of syntax

    Here I have this quite straight forward piece of sql:

    ------------------------------------------------------------
    IF
    (SELECT COUNT (DISTINCT FLOOR (CAST (x 1 as float))) FROM SOURCEArchive) > 20 THEN
    DELETE SOURCEArchive
    )
    END IF
    ------------------------------------------------------------

    now, the error is:
    PLS-00103: encountered the symbol ")" when expecting one of the following values: , @ ; for a < ID > < a double quote delimited identifier > Group having less cross order partition boot subpartition union where connect SAMPLE_

    What I'm doing wrong here. It is not valid to have a select statement after the if...?



    When I do
    IF
    222 > 20 THEN
    SELECT SOURCEEArchive AData
    END IF;

    I get PL/SQL: ORA-00933: SQL not correctly completed command

    Published by: metalray on May 8, 2009 07:25

    Hello

    Try something like this:

    DECLARE
       v_count NUMBER; -- assing proper size
    BEGIN
       -- more code
    
       -- assigning v_count
       SELECT COUNT(DISTINCT FLOOR(CAST(x1 AS FLOAT))) INTO v_count FROM SOURCEArchive;
    
       IF v_count > 20 THEN
          DELETE SOURCEArchive;
          COMMIT,
       END IF;
    
       -- Maybe more code...
    END;
    /
    

    Kind regards

  • This is the right forum to ask questions about the development of .vbs script?

    Please feel free to point me in a direction different/various forum as appropriate.

    My goal is to automate the replacement of the connection on a Win7 x 32 machine wallpaper using vbscript. I know which will involve a change of register, create a folder and copy my image in the new folder. I can't use a packaged solution, because it's for my PC to work (outside the unauthorized programs), and I don't want to take the time to do this manually every time I'm on another PC or a virtual PC that is cleared to a State of origin on a regular basis.

    If anyone knows a vb script that already does, it's phenomenal. If this isn't the case, I try to find the best MS community forum to ask questions of syntax when working on the VBscript code.

    Thank you.

    Thank you - this site seems to be a few articles, but research on MSDN brought me to

    http://social.msdn.Microsoft.com/forums/vstudio/en-us/home?Forum=vbgeneral

    That seems to be a good fit.

    Thank you!

  • a matter of simple syntax that I hope!

    A few months ago, I got assistance by Jono (thank you) where the data in a cell of a table could be repeated it is in another table in my form. all other cells have been indepedant outside of a single cell.

    The downside was that the first table could grow by clicking an add button - IE. It started with a single row, but could have more and the table cell which has been repeated should retain its individual content.

    So, here's the code I used:

    Form1. Review.reviewsub.reviewtable._planrow. Count = form1.plan.plansub.plantable._planrow.count;

    vCol1 var = this.resolveNodes ("form1.plan.plansub.plantable.planrow [*] .wb");

    vCol2 var = this.resolveNodes ("form1. Review.reviewsub.reviewtable.planrow [*]. "WB");

    for (var I = 0; vCol1.length i < ; I ++) {

    vCol2.item (i) .rawValue = vCol1.item (i) .rawValue;

    }

    It is placed in the onsave event of the table where the data is taken in and the cell it brings data in is called wb

    It works a treat.

    However, and I'm being really stupid here, I've now been asked to shoot in another cell of table data in the same table origin called "better." Problem is that if I simply repeat lines 2 and 3 of the code above it fire only in the 'better' cell data and not the "wb" cell more.

    It is therefore a question of syntax - how lines 2 and 3 of the code of work for the TWO 'wb' and 'better' - I tried

    var vCol1 = this.resolveNodes ("form1.plan.plansub.plantable.planrow [*] .wb","form1.plan.plansub.plantable.planrow [*] .better");

    I tried

    var vCol1 = this.resolveNodes("form1.plan.plansub.plantable.planrow[*].wb"), ("form1.plan.plansub.plantable.planrow [*] .better");

    and a few others - as you can tell, my script is a bit fragile.

    Someone at - it help him?



    Tri-thought post it here so someone else can use if necessary.

    The correct code is:

    Form1. Review.reviewsub.reviewtable._planrow. Count = form1.plan.plansub.plantable._planrow.count;

    var vCol1 = this.resolveNodes ("form1.plan.plansub.plantable.planrow [*] .better");

    var vCol2 = this.resolveNodes ("form1. Review.reviewsub.reviewtable.planrow [*]. Better");

    var vCol3 = this.resolveNodes ("form1.plan.plansub.plantable.planrow [*] .wb");

    var vCol4 = this.resolveNodes ("form1. Review.reviewsub.reviewtable.planrow [*]. "WB");

    for (var i = 0; i)< vcol1.length;="" i="" ++)="">

    vCol2.item (i) .rawValue = vCol1.item (i) .rawValue;

    vCol4.item (i) .rawValue = vCol3.item (i) .rawValue;

    }

    I confused me on the name of the variables - thought vCol directly related columns (they can be called nothing) - so actually I simply had to double up on the variables to ensure that the two cells in the original (vCol1 and vCol3) table cells have been mapped in the subsequent table (vCol2 and vCol4 respectively) cells

  • Passage of the maxl script batch file value.

    Hi gurus,

    I want the user to select the scenario he wants to clear the data for a specific intersection in a cube of ASO for running batch file. Files and newspapers is as below

    Batch file:

    ECHO please select a scenario:

    ECHO A. actuals

    B. Budget echo

    choice/m C:AB '-> > enter a letter for the scenario you want to delete: "%1 '"

    IF ERRORLEVEL is 1 Set ScenarioName = law

    IF ERRORLEVEL == 2 Set ScenarioName = bud

    E:\Oracle\Middleware\user_projects\epmsystem3\EssbaseServer\essbaseserver1\bin\startMaxl.bat "C:\Users\TCleardata2.mxl" % ScenarioName %

    MaxL file:

    spool to 'C:\Users\Cleardatalog.txt ';

    / * Value Variables * /.

    Set vScenarioName = $1;

    Echo script: "$vScenarioName";

    connection username pwd on "IP:1423 Server";

    / * Erase data * /.

    ALTER database abc.abc clear data in the region ' {("$1", Final, FY15, P2, ACC_1011640)}' physical;

    echo * clear full *;

    disconnection;

    spool off;

    Log file:

    Scenario: law

    MAXL > connection username pwd on "IP:1423 Server";

    OK/INFO - 1051034 - user [username@pqr] connection.

    OK/INFO - 1241001 - connected to Essbase.

    *****************************************************************************

    MAXL > alter database abc.abc clear data in the region ' {("$1", Final, FY15, P2, ACC_1011640)}' physical;

    ERROR - 1260052 - syntax error in a MDX query on line 1 to token entry ' "$1".

    *****************************************************************************

    Full Claire *.

    MAXL > disconnect;

    Username is disconnected

    ___________________________________________________________________________________-

    in the MAXL if I write: law instead of ' $1 ' it works fine, but I can't take the user input, it is question of syntax?

    Below the command works fine:
    ALTER database abc.abc clear data in the region '{(law, Final, FY15, P2, ACC_1011640)}' physical;

    Can someone please let me know what I'm doing wrong here?

    Thank you

    RN

    I don't think that (alone) allows in this case - the problem is that the single quotes around the specification of the whole region removes extension variable (see Variables).

    Double quotes lose about $1, but also replace the single quotes around the specification of the entire region with quotes, i.e.:

    ALTER database abc.abc clear data in the region '{($1, Final, FY15, ACC_1011640, P2)}' physical;

  • Export of values vs. null empty

    I created a form with a Submit button that generates an email with the form of an attachment. The problem is that if there is an empty field, the e-mail contains the value "null" where I want to remain a Virgin. Question: How can I format the JavaScript below to let the empty fields remain blank in the email and not display as "null". ?

    SubmitNulls.png

    Questions of syntax, the main issue is you have = + (which is assignment) instead of += (which is concat). A correct should be +=

  • Questions about the alternative syntax using DAQmx

    Hi all

    my group has started to use an alternative syntax for functions DAQmx. Here is the part of our original code:

    nitWFM-> AOChannels.CreateVoltageChannel ("Dev1/ao0", _T(""), dMinimum, dMaximum, DAQmxAOVoltageUnitsVolts);
    nitWFM-> AOChannels.CreateVoltageChannel ("Dev1/ao1", _T(""), dMinimum, dMaximum, DAQmxAOVoltageUnitsVolts);
    nitWFM-> AOChannels.CreateVoltageChannel ("Dev1/ao2", _T(""), dMinimum, dMaximum, DAQmxAOVoltageUnitsVolts);
    nitWFM-> AOChannels.CreateVoltageChannel ("Dev1/ao3", _T(""), dMinimum, dMaximum, DAQmxAOVoltageUnitsVolts);

    that became:

    DAQmxCreateAIVoltageChan(nitWFM,"Dev1/ao0","",DAQmx_Val_Cfg_Default,dMinimum, dMaximum,DAQmx_Val_Volts,));
    DAQmxCreateAIVoltageChan(nitWFM,"Dev1/ao1","",DAQmx_Val_Cfg_Default,dMinimum, dMaximum,DAQmx_Val_Volts,));
    DAQmxCreateAIVoltageChan(nitWFM,"Dev1/ao2","",DAQmx_Val_Cfg_Default,dMinimum, dMaximum,DAQmx_Val_Volts,));
    DAQmxCreateAIVoltageChan(nitWFM,"Dev1/ao3","",DAQmx_Val_Cfg_Default,dMinimum, dMaximum,DAQmx_Val_Volts,));

    We changed it to a function that seemed to only work for us in a single syntax (DAQmxSetWriteAttribute (nitWFM, DAQmx_Write_RegenMode, DAQmx_Val_DoNotAllowRegen))

    My question is, what is the alternative syntax for the following lines? :

    nitWFM-> Control (DAQmxTaskVerify);

    CNiDAQmxAnalogMultiChannelWriter, writer (nitWFM-> Stream);

    because keep an error in this way.

    Your answers are greatly appreciated.

    Hello

    "" "" "" "" The first function can be found in the C reference help by clicking on start "all programs" National Instruments "NOR-DAQ ' Text Based Code Support" reference of C OR-DAQmx help and expand the functions C of NOR-DAQmx "task/Configuration control ' Advanced ' DAQmxTaskControl. This explains the function and syntax to use.

    Kind regards

    Justin

  • I need help with a question command line syntax

    I got 3 issues that need to be entered in command line / syntax.
    I had no training in command line and need help for that setting in the command line syntax.
    (The IP address is a fact).
    This will be done also on a PC that requires elevated permissions. So if a programmer can zip through it in no time it would be much appreciated. Perhaps one without high and an example with.

    1 setting up daily ping test to a server with the IP 10.254.254.1 which will be composed of 1 000 ICMP echoes.
    2. establish daily ping tests to a server with the same IP address which will consist of one hundred 1 500 bytes ICMP packets.
    3 configure these run every day and are output to a text file.

    Hi Matt,

    Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. Appropriate in the TechNet forums.

    Please post your question in the Windows 7 IT Pro: http://social.technet.microsoft.com/Forums/en/category/w7itpro/

    Thank you.

Maybe you are looking for

  • ATV4 play in BG music during playback or game

    Can you listen to music in the background while playing a puzzle game? I used to do on the factory tvOS 9.0, but since the 9.1 update, as soon as I press play/pause in the game (which requires a good number of them), the background music stops. Befor

  • Downgrading to XP Pro on New HP m9400f

    More long story-short version... Due to some production software that will work in XP 32 bit enviornment - I was forced to-reformat and reinstall Vista x 64 Home with XP Pro 32-bit. OK-says, I managed to-re - install all devices - EXCEPT sound. I had

  • CPU Upgrade - G6 2220SQ Pavilion

    I think my i3 of the 2370 M (SB) upgraded to an i7 3610QM (IB). I'm not shure if this would be a good idea because some say it could be a compatibility issue when switching from the CPU. I am sure that electrically and physically there is no problems

  • Change the order of Podcast episodes

    Hello. I wish I had my eps podcast playing high down, as right now the ep albums is number 67 but I would so he could play at the 1 and keep going down. Is there a way to do this? I went to iTunes, click on the tab release date for the podcast and it

  • compatibility with windows 10 and 14 DAQmx

    I have some problems with some DAQmx screw, I'm trying to use SensorDAQ, Vernier scale but even when my computer recognices the device when I try to create an application with LabVIEW, he can find screws as DAQmx clearly task among others. I have Lab