Variable creation in TestStand through CVI

I have one steptype in which during Edit, the new variable has been created. I also saved that sequence. If I close that sequence file with that steptype and reopen the same sequence, the variable created last time was not there. I think these variable are not getting stored with sequence. The steptype building block is created in CVI. Those edit time variable creation is done by means of using “TS_PropOption_InsertIfMissing” functions in CVI. Can you please tell us is there any CVI functions to create variable during edit time and to be saved with the sequence.??

Once again, Expression Strings, has stumbled another programmer!
Parameters.DatabaseOptions.ConnectionString is not a string but an Expression String, and your assignment of a StationGlobals.Database ( just a string ) is causing this error.
Here is what I did to solve your issue:
1.) StationGlobals ( remove the leading "\" and trailing \"" from the Database string ) it should contain NO leading or trailing quotes
StationGlobals.Database = Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;Data Source=C:\\Users\\Public\\Documents\\National Instruments\\TestStand 4.2.1\\Components\\Models\\TestStand Results.mdb.
2.) In Database Options Callback use the following expression to set the Data Source
Parameters.DatabaseOptions.ConnectionString= "StationGlobals.Database"
There are other alternatives as documented in this link.
http://zone.ni.com/devzone/cda/tut/p/id/4793
Good luck,
PH

Similar Messages

  • Unable to Create "Not Equal to" condition in Variable creation

    Hi ,
    I am getting an error while creating variable at report level,
    Well, my condition at variable creation is ----> sum(A) where [country] <> " x" ...(It is showing the results when the country is equal to x) and the converse for the same ... If I use [country] = "x" .. It is taking as country not equal to x ..
    Please suggest me on this..
    Thanks in advance ....

    Hi ,
    I am getting an error while creating variable at report level,
    Well, my condition at variable creation is ----> sum(A) where [country] <> " x" ...(It is showing the results when the country is equal to x) and the converse for the same ... If I use [country] = "x" .. It is taking as country not equal to x ..
    Please suggest me on this..
    Thanks in advance ....

  • Auto PO creation from PR through ME58 problem.

    Hi experts.
    We are providing facility to our client  auto po creation from PR through Me58 transaction code.
    I am facing amazing problem is that it is working fine in development client , not working in Quality and  Production client , exactly  problem is that ME58 u2013 Ordering Assigned Purchase requisition  & Process Assignment  Create PO , Purchase order cannot be created, PR  shift in document overview , it means user want to drag and drop in purchase order then system create PO , this problem I am facing in Quality & Production , but it is working fine in development server there is no need to drag and drop , immediately after Process assignment Create PO , system directly convert PR into PO  just only need to check and save PO. I compare everything with development & quality data including material master , source list and everything still I am unable to understand where is the problem , is there any customization settings related to auto po ?  pls. suggest any solution to solve this issue.
    Kumar

    Hi,
    Config setting.
    Settings for Automatic PO creation is:
    1. Select the Automatic PO check box/option in Purchasing view of material master
    2. Select the Automatic PO option in the purchasing data view of Vendor master
    3. Maintain Purchase info record
    4. ME56- Assign the vendors to PR's
    5. ME58- Create PO via assignment list(PR-> PO)
    6. ME57- Assign and process PR's
    7. ME59N - Create PO automatically via PR
    Above step by step procedure is involved in the Automatic PO creation.
    SAM

  • Dynamic variable creation

    i would like to know how to make use of bind variables in RPD variable creation . I tried creating in oracle10g by giving a sql query in Initiliazation block . I want to select a column based on a certain user input . For Your information i cannot use ':user' because it by default takes then current user who has logged in .

    If you are solely asking for a variable that would hold the value of username, Yes that is possible. It depends on the type of authentication you are using. Assuming you are using an LDAP server, providing the solution below:
    1) Source the list of usernames in to a external table in the database.
    2) Create an intialization block to populate that value based on user login.
    Ex: select username1 from externaltable where username1=':user' - Data Source
    variablename - Data target.
    Now you can use this in your required init block.
    Hope this answers your question.
    Please award points if helpful.
    Thanks,
    -Amith.

  • How to unify or merge the variables from several TestStand platforms to one TestStand platform?

    Hi,
       We work with TestStand 3.5 and LabVIEW 8.0 versions.
       We work in a parallel mode with several developers and each from developers:
         1. Wrote his sequences at his TestStand station
         2. Defined his local variables/sequence File Global variables/station Global Variables at his TestStand
    I need to create the one file sequence at dedicated for it TestStand platform (target station) that will include all of sequences from these developers.
    So, the questions are:
    How i do that? What the existing tools/methods/solutions?
    How i can distribute all the variables that relate to different sequences and from different TestStand platforms?
    In other words, how i collect all related collections of variables(whatever?) from every developer of my team and unify/merge/distribute all of that
    to dedicated TestStand station that will include of all developed sequences without forgetting/losing something???
    I attached the visual presentation of my question (unify.JPG), please see the schema.
    If you have the question regards something, please let me know.
    Message Edited by Yuri_IL on 06-11-2006 10:01 AM
    Thank you & Best Regards
    *I use LabVIEW 8.X & TestStand 3.5/4.0.1 versions only
    Attachments:
    unify.JPG ‏26 KB

     Perhaps, i did not expressed well my question...
    1. I do need that top level sequence / sequence file needs to know or even care what variables are used by other sequence / sequence files
    2. I know how to deploy SINGLE TestStand sequence file/project to a target station.
    3. I want to know how to deploy MULTIPLE TestStand sequences from MULTIPLE TestStand stations and unify it to the SINGLE set of these multiple sequences that i deployed at my target station...
    For example:
     TestStand station #1 with sequence: init_of_xxx.seq
     TestStand station #2 with sequence: init_of_yyy.seq
     TestStand station #3 with sequence: init_of_zzz.seq
    After deploying at my target: TestStand station #4 i want to get a WORKING set of sequences:
                      init_of_xxx.seq
                      init_of_yyy.seq
                      init_of_zzz.seq
    The problem is that i know how to deploy every sequence sepately, but do not know how to deploy together
    Message Edited by Yuri_IL on 06-12-2006 02:56 AM
    Thank you & Best Regards
    *I use LabVIEW 8.X & TestStand 3.5/4.0.1 versions only

  • How to parse CAN DBC file through CVI

    Hi ,
    I would like to know if we can parse the CAN .dbc file through CVI, let me know if there is any other approach, We use Labwindows CVI for our testing and we would like to know if we can parse through the .dbc file to get the PGN and SPN information and use them in our testing process. We do not use NI CAN cards etc we use a Supercom to transmit and recieve the messages.
    Thanks in Advance
    Kishore

    AndreasS wrote:
    Hi Kishore,
    you can use the NI-CAN or NI-XNET functions to read data from .dbc files. XNET is more advanced, but so far you can't to frame to channel conversion without hardware (coming soon).
    So I recommend using NI-CAN. There you can read the channel information fom the dbc file using CAN Get Names and CAN Get Property.
    You can convert the CAN channels into frames using either the virtual CAN interfaces 256 and 257 (both c and LabVIEW) or using the CAN Channel to Frame conversion library (only LabVIEW). Then you just have to write the frame data on your CAN interface.
    NI-CAN manual
    NI-XNET manual
    NI-CAN Virtual Ports
    Regards,
    When you say "coming soon", when is this anticipated to be out?  Also, can you use virtual CAN channels with XNET like you can with NI-CAN?
    I'm trying to determine whether I should write all my new programs using XNET instead of NI-CAN, so anything you can contribute would be appreciated.  Also, is there a significant reason to use XNET instead of NI-CAN if I'm only using CAN and don't care about FlexRay or other protocols?
    Message Edited by KavehV on 03-22-2010 05:48 PM

  • Lire variable locals de teststand dans labview par activeX

    Bonjour,
    Dans le cadre d'un projet interne, je crée une application sous labview qui servira d'interface utilisateur et autres choses.
    Le problème est que j'ai besoin de lire les variables locals de teststand avec labview sans que le programmeur teststand se soucie de faire appel à une fonction spécifique.
    Pour faire simple l'idée est d'utiliser l'activeX sur labview pour lancer les fichiers séquences etc. ça ne me posse pas se soucie à ce niveau-là.
    Mon problème est que j'aimerais lire les variables locals de teststand dans labview, j'avais l'habitude de lire les variables StationGlobals par cette méthode mais pas moyens de faire la même chose pour les locals.
    En gros, il faudrait que j'ai accès à sequenceContext par activeX mais sans faire un appel d'un VI dans teststand comme dans l'exemple proposé dans teststand.
    Cordialement.

    Bonjour Steve,
    En effet, ceci n'était pas aussi simple qu'il n'y paraissait...
    Voici un exemple:
    L'astuce étant de récupérer le Sequence Context depuis l'Executionview manager, on notera qu'il faut passer par l'exécution puis le thread car la propriété qui devrait renvoyer le SequenceContext directement ne fonctionne pas et renvoie une erreur... 
    Rodéric L
    Certified LabVIEW Architect
    Pièces jointes :
    récuperer locales depuis IHM.png ‏14 KB

  • Network variable creation through DSM

    I've been using CVI 2009 and I'm able to create a simple network variable using Distributed System Manager 2009 (DSM 2009).
    Now I need a "struct" network variable, and I noticed that the only option I can choose is "From Custom Control..." which asks me for a LabVIEW .ctl file.
    I read this KB and I created a custom control with LabVIEW 8.2.1, but DSM gives me the error "Invalid data type". I find the same error even if I create a .ctl file with a simple numeric indicator.
    Should I use a specific LabVIEW version to create this .ctl file?
    How can I create a struct network variable with DSM if I only have CVI 2009?
    Vix
    In claris non fit interpretatio
    Using LV 2013 SP1 on Win 7 64bit
    Using LV 8.2.1 on WinXP SP3
    Using CVI 2012 SP1 on Win 7 64bit, WinXP and WinXP Embedded
    Using CVI 6.0 on Win2k, WinXP and WinXP Embedded

    I tried with LV 8.2.1 and Variable Manager 8.2.1 and everything seems OK (both creating the varibale in LabVIEW and in Variable Manager).
    The problem is that I want to deploy variables on the PC where I have CVI 2009, that is not my old one where I have LabVIEW.
    On my new PC I only have CVI 2009 and DSM 2009, but not LabVIEW: how can I create a "struct" network variable?
    Vix
    In claris non fit interpretatio
    Using LV 2013 SP1 on Win 7 64bit
    Using LV 8.2.1 on WinXP SP3
    Using CVI 2012 SP1 on Win 7 64bit, WinXP and WinXP Embedded
    Using CVI 6.0 on Win2k, WinXP and WinXP Embedded

  • Intermittent problem with TestStand calling CVI DLL calling MSCV DLL

    Sorry about cross post, but I am not sure which group is best to address
    this issue.
    Setup:
    Windows 2000 SP1
    TestStand 2.01f
    CVI 6.0
    MSVC++ 6.0 SP5
    Problem:
    I have a CVI Test Library DLL that contains test functions called by
    TestStand using the C/CVI adapter. The CVI Test Library DLL in turn makes
    several calls to another DLL written in MSVC++. I am experiencing an
    intermittent problem with one of the MSVC functions. The problem ~appears~
    to be stack related, but I am not sure. Among other things, this MSVC
    function accepts a const char * argument that is a TestStand lookup string.
    The function uses this string to access the TestStand API.
    What happens is this: Everything works fine. I then recompile the CVI DLL
    after making some mod, then run. The MSVC++ DLL asserts that the const char
    * arg passed by the CVI DLL is NULL. However, this is not the case if I
    single step through the CVI code. It has happened both with passing
    variables as the const char * argument and as hardcoded strings literals, so
    its not that I am actually passing NULL. The other argument to this
    function is the TestStand sequence context dispatch pointer (LPDISPATCH
    pobjSequenceContextDisp) and it always ~appears~ to be passed correctly.
    The problem is frustrating and hard to debug because I can not
    deterministically reproduce it. The problem ~never~ appears when I debug my
    MSVC++ DLL in Visual Studio. And it only occasionally appears otherwise.
    The problem, when it appears, always appears on the first run after
    recompiling the CVI DLL, though the problem does not happen after ~every~
    recompilation. I'd say it happens 1 in 6 times after a recompile.
    Recompiling the exact same code does not always make the problem disappear.
    If I change the CVI code (code that has nothing to do with the argument
    itself though) and recompile the problem almost always goes away. Selecting
    'Mark all for compilation' and rebuilding does not make the problem go away.
    Only tweaking the CVI code and recompiling does (usually).
    Whats more, the problem appears:
    * With the CVI DLL built as Debug or Release mode.
    * With the CVI default calling convention set to __stdcall or __cdecl.
    * With the C/CVI TestStand adapter set to run in-process or external
    instance of CVI.
    The problem appears to be some sort of stack or argument passing problem
    between CVI and MSVC, though thats just a guess based on the symptoms. I
    have quadruple checked the calling conventions of all declared functions.
    The CVI DLL functions all use TX_TEST (which resolves to __cdecl). The MSVC
    DLL functions all explicitly use __stdcall. Is there a problem with calling
    __stdcall MSVC functions from a __cdecl CVI function?
    I can find no other memory leaks or indications of memory corruption
    elsewhere in either the CVI or MSVC DLLs. Its only this one function that
    exhibits this strange 'null const char *' problem.
    Can anyone offer any ideas about what may be causing this problem? Anything
    else I should check/verify?
    Regards,
    Joe

    Silvius,
    > Although I'm not sure if any of the following are the real cause of
    > your problem, I have the following suggestions:
    Thanks for the reply. At this point any and all suggestions are welcome...
    > 1. There could be a problem with calling
    > __stdcall MSVC functions from a __cdecl CVI function. As a workaround
    > wrap the _cdecl call inside a _stdcall call that is exposed or
    > exported to TestStand or vice-versa. This can be a problem because if
    > _cdecl is used, the calling function is responsible for cleaning up
    > the stack and if _stdcall is used, the called function is responsible
    > for cleaning up the stack.
    I was under the impression that as long as everything was explicitly and
    consistently declared, you could safely mix cdecl and stdcall f
    unction
    calls. Is it bad to do this? Is this a known issue with the CVI compiler?
    I've never seen a problem with doing this under MSVC++.
    I'll try wrapping them in cdecl calls for CVI - though we have a
    depressingly large number of stdcall functions in the MSVC DLL ;-). They
    need to remain stdcall in the DLL because we also call them from Visual
    Basic.
    > 2.Don't mix Debug version of one DLL with the Release version of the
    > other DLL. I had some bad experiences doing this and both DLLs where
    > developed in MSVC. Allways use either Debug either Release versions of
    > DLLs.
    I verified that the MSVC DLLs were either ALL Debug or Release. I too have
    seen nasty problems when MSVC Debug and Release is mixed.
    One thing I had not thought of until your reply: What about mixing CVI Debug
    DLLs with MSVC Release DLLs? Have you ever seen issues with doing this?
    Thanks!
    Joe

  • Problem in creation of HUs through FM HU_REPACK and HU_POST

    Hi Experts
    This is regarding the problem in creation of HUs with function modules HU_REPACK and HU_POST.
    I am sending two Unique Sources HUs with single destination HU for the same material and batch into HU_REPACK and it shows that it is successfully repacked and soon as the HU_REPACK function module passess I have called HU_POST without any parameters except messages..As the data will be picked up auomatically from the internal memory as these function module are related same function group.
    Even the HU_POST FM passes successfully and also it creates a Transfer order but the problem is that THe HU is created with the MULTIPLE LINE ITEMS for the same material and Batch which should not be done at all .
    Please find the example of the HU created in the system
    0 10020000038479 S-DISP 1 EA S DISPNSARY
    1 0024632192 000004 810062 0.250 KG L0533A4172 Lactose
    1 0024632192 000004 810062 24.900 KG L0533A4172 Lactose
    Material is 810062
    Batch is L0533A4172
    Can you please assist me how to acheive single line item HU when we are trying to repack the data for same material and batch as it does while you create the HU through Manual processing i.e HU02 etc

    Hi Sailaja,
    I have similar requirements like this before with HU_PACKING_AND_UNPACKING FM. It was a tough debugging before I came up with the right solution. Unfortunately, I was not able to document that code..
    But here is what I have been doing.
    Youre on track with the solution below, never use BDC as it will only limit the Handling units that you wish to put into.
    The function modules that starts with V5_ plays important role as you need to initialize the global variables and table of this function group with values before calling HU_PACKING_AND_UNPACKING FM
    Debug inside the Function module, and look for the FM that returns SY-SUBRC <> 0 then set a breakpoint.
    Restart the program then debug inside that FM again (and I do not want to go further on the details, I give you the presumption of literacy)
    You will find some items that has no value, try to initialize everything by utilizing the FM for this function group V51S.
    Happy Debugging.

  • How to specify a unique integer for each local variable defined in TestStand?

    I have a .net application that reads all TestStand local variables, but for the .net application each local variable should have a unique integer number. Iterating through the locals and storing the index is not a good solution, because if a local variable is moved or deleted, the index will change.
    Does anyone know how to do this in TestStand or having an idea how to this in my .net application?
    Thanks.

    Thanks Doug for your reply. Using a GUID is not an option because this ID is too long. I will try to explain why I need this ID for. I have a lot of C# code that generates code to deal with a lot of instruments. For example to configure a device, user defined variables can be used to specify some settings or to store results. These variables are not stored in the generated code with a name but with an integer number. Now I want to try to be use all our existing device driver code with the TestStand sequencer. So, I need a translation between the name of a TestStand local variable and an integer number. After constructing the interface to my code I want to read all the variables from TestStand and now I need the integer ID to do the mapping to my variables. I know that I can use use your proposition 2 by encoding the unique ID into the name of the variable and parse the name of the variable to get it back, but this is not an automated way. This will be rather difficult if there are several hundreds of variables. For this reason I am looking for an alternative way. Looking forward for your response. Best regards   

  • How can I pass a variable from Test Stand to CVI by reference

    Hi!
    I can't to pass numeric or boolean variable from Test Stand (for example: FileGlobals.StopFlag) into the step (CVI function).
    Function prototype: 
    void __declspec(dllexport) __cdecl PC2_WaitWhileResponceAppear(tTestData *testData, tTestError *testError, int *iStopFlag).
    When variable has bin changed I can't see this change from my function.
    CVI 2010, Test Stand 2010
    Can anybody help me?

    Hey Rombar,
    It is certainly possible to pass variables by reference; for example, if you go to <TestStand Directory>/Examples/Demo/C and open the computer.seq file, you can see one of the example sequences that uses CVI modules. If you click on one of these steps, you'll see that some of the parameters, such as the error information, is passed with pointers. This is a pass by reference.
    To help narrow this down, it'd be good for us to figure out a few things about how the code is run. First, if you go to Configure > Adapters, select the CVI adapter and choose Configure, you can see options for this adapter. Do you have it configured to run in an external instance of CVI or as an in-process call?
    Also, if you're wanting to see a change made in TestStand in your external code, this makes me think that you're wanting to run the code and then continue to execute your TestStand sequence while the code runs. How did you configure this behavior? For example, are you calling this code as a separate sequence in a new thread, or are you using another method to run this code while the sequence continues to run?
    Finally, if we could see a screenshot of how you're configuring the parameters on the TestStand step, that might be helpful as well.
    Daniel E.
    TestStand Product Support Engineer
    National Instruments

  • Teststand call cvi instrument driver

    I'm new to working with instrument drivers in TestStand. I'm trying to use TestStand to call a CVI instrument driver dll (for Agilent N5767 power supply), and then perform a specific function (init, set voltage, set current, etc.) All of the instruments in my test bench are connected via LAN, and they are configured in NI MAX too. I thought it was pretty straight forward, but I'm obviously missing something. Attached is the simple TS 3.1 seq file with the steps I'm trying perform.
    Attachments:
    N5700_on_off.seq ‏20 KB

    Hi Bkoch1,
    Please elaborate on the problem you are experiencing. I am able to open the sequence file you have attached and view your steps and on the surface, this seems like it should work just fine. What indications are you experiencing that it does not work fine? Have you tried setting breakpoints and using the Watch Window to monitor variables to ensure that they are being passed into the DLL? Please explain what the problem is and try to narrow down where the problem occurs and we would be happy to help you.
    Regards,
    Jackie
    DAQ Product Marketing Engineer
    National Instruments

  • Debugging Labwindows dll in teststand with CVI 9.1.1

    Is there a known problem when debugging Labwindows DLL used as Teststand Code module ( using the Labwindows CVI Adapter)?
    My setup includes to powersupplies with IVI instrument drivers ( Agilent 6032A and and E3634 A) a a few other instruments with non-IVI instruments drivers. When start CVI, load the dll project and then start the Teststand Sequence editor as program to be debugged an then step into the C-Code it looks like there is process that watches both powersupplies and tries to reset them again if I access them from my C code through the instrument driver. There is no such effect with the non-IVI instruments and also if I run the code outside the debugger there is no such effect.
    Any Ideas whats going wrong here ?
    Solved!
    Go to Solution.

    some more information. I#ve updated now to CVI 2010 and the effect still exists. To demonstrate it I've attached a NI SPY log. The 6032A lives at GPIB ID 3 the E3634 at GPIB ID 5. I'am running the following code:
    Fmt(resource_id,"GPIB::%d::INSTR",addr_PS_P24V);
    tsErrChk(status = hp6xxxa_init (resource_id, VI_ON, VI_ON, 2, &Instr_Handle_PS_P24V));
    // Export Instrument handle for PS_P24V
    tsErrChk (TS_PropertySetValNumber (testData->seqContextCVI, &errorInfo,
    "FileGlobals.Instr_Handle_PS_P24V", 0x1,
    Instr_Handle_PS_P24V));
    //set limit voltage and current
    // status = hp6xxxa_603xA_soft_limits (Instr_Handle_PS_P24V, 30, 0.5);
    tsErrChk (status = hp6xxxa_603xA_fold (Instr_Handle_PS_P24V, 0));
    //set voltage and current depending on device A/AP 10A B/C 11.5 A
    if ( is_ALA_B_device( testData->seqContextCVI) || is_ALA_C_device( testData->seqContextCVI) )
    tsErrChk (status = hp6xxxa_volt_curr (Instr_Handle_PS_P24V, 26.0, 11.5, 1));
    else
    tsErrChk (status = hp6xxxa_volt_curr (Instr_Handle_PS_P24V, 26.0, 10.0, 1));
    tsErrChk (status = hp6xxxa_delay (Instr_Handle_PS_P24V, 0.500, 1));
    Delay(.2);
    //output off
    tsErrChk (status = hp6xxxa_output_onoff (Instr_Handle_PS_P24V, 0, 1));
    Delay(.2);
    [... later for the E3634]
    // Get GPIB-Adress of PS_P3V3
    tsErrChk(TS_PropertyExists(testData->seqContextCVI, &errorInfo, "FileGlobals.GPIB_ADDR_PS_P3V3", 0, &propertyExists));
    if (propertyExists)
    tsErrChk (TS_PropertyGetValNumber(testData->seqContextCVI, &errorInfo,
    "FileGlobals.GPIB_ADDR_PS_P3V3",
    0, &GPIB_ADDR_PS_P3V3));
    addr_PS_P3V3 = GPIB_ADDR_PS_P3V3;
    #ifndef NO3V3 // NO 3.3V programmable source on TK2
    // Initialize PS_P3V3
    Fmt(resource_id,"GPIB::%d::INSTR",addr_PS_P3V3);
    tsErrChk(hpe363xa_init (resource_id, VI_TRUE, VI_TRUE, &Instr_Handle_PS_P3V3));
    // Export Instrument handle for PS_P3V3
    tsErrChk (TS_PropertySetValNumber (testData->seqContextCVI, &errorInfo,
    "FileGlobals.Instr_Handle_PS_P3V3", 0x1,
    Instr_Handle_PS_P3V3));
    hpe363xa_ConfigureOutputRange (Instr_Handle_PS_P3V3, "",
    HPE363XA_VAL_RANGE_VOLTAGE, 5);
    hpe363xa_ConfigureVoltageLevel (Instr_Handle_PS_P3V3, "", 3.3);
    // Output off
    hpe363xa_ConfigureOutputEnabled (Instr_Handle_PS_P3V3, "", VI_FALSE);
    hpe363xa_ConfigureCurrentLimit (Instr_Handle_PS_P3V3, "",
    HPE363XA_VAL_CURRENT_REGULATE, 0.5);
    hpe363xa_ConfigureOVP (Instr_Handle_PS_P3V3, "", VI_TRUE, 4);
    #endif
    #ifdef TK3 // use E3640 powersupply for TK3
    Fmt(resource_id,"GPIB::%d::INSTR",addr_PS_P3V3);
    tsErrChk(hpe364xa_init (resource_id, VI_TRUE, VI_TRUE, &Instr_Handle_PS_P3V3));
    // Export Instrument handle for PS_P3V3
    tsErrChk (TS_PropertySetValNumber (testData->seqContextCVI, &errorInfo,
    "FileGlobals.Instr_Handle_PS_P3V3", 0x1,
    Instr_Handle_PS_P3V3));
    hpe364xa_ConfigureOutputRange (Instr_Handle_PS_P3V3, "1",
    HPE364XA_VAL_RANGE_VOLTAGE, 5);
    hpe364xa_ConfigureVoltageLevel (Instr_Handle_PS_P3V3, "1", 3.3);
    hpe364xa_ConfigureCurrentLimit (Instr_Handle_PS_P3V3, "1",
    HPE364XA_VAL_CURRENT_REGULATE, 0.5);
    hpe364xa_ConfigureOVP (Instr_Handle_PS_P3V3, "1", VI_TRUE, 4);
    // Output on
    hpe364xa_ConfigureOutputEnabled (Instr_Handle_PS_P3V3, "1", VI_TRUE);
    #endif
    If you look into the Spy Log you will see at #241 the first hit of that strange process, which beginns with a viOpenDefaultRM
    and ends with a viClose at #252
    after issuing an *IDN?, which fails because the 6032A doesn't support *IDN?. Then the first driver call ( init function) can be identified.
    later on , when the code goes to the E3642 using ID5 at #1142 in SPY log you will see that the strange process will finally send a *RST if the *IDN? succeeds.

  • Acquisition nom du rapport TestStand depuis CVI

    Bonjour à tous,
    Je dispose d'une séquence exécutée par TestStand 2014.
    Cette séquence utilise une dll faite avec LabWindows/CVI pour créer un rapport personalisé à partir du rapport TestStand.
    Cette dll doit donc faire l'acquisition du nom du rapport TestStand.
    La DLL a été faite pour TestStand 3.5 et l'acquisition du nom du rapport TestStand était assurée par :
    TS_PropertyGetValString (testData->seqContextCVI, &errorInfo, "RunState.Caller.Locals.ReportFilePath", 0, &JournalPathName)
    J'ai compris que ça ne marcherait pas avec TestStand 2014 en voyant cet article :
    http://digital.ni.com/public.nsf/allkb/3D3B2358DF9B786B8625789500549A3B
    Par quoi remplacer la ligne de code pour TestStand 2014 ?
    (je précise que je suis débutant en LabWindows/CVI)
    Résolu !
    Accéder à la solution.
    Pièces jointes :
    Erreur génération rapport.jpg ‏51 KB
    Erreur génération rapport1.jpg ‏49 KB

    Salut,
    En effet, depuis TS 2012, RunState.Caller.Locals.ReportFilePath semble ne plus être une propriété valide
    En gros, dans le lien que tu pointes, ils indiquent que tu peux:
    1. Ajouter  à tes séquences, une callback nommée GetReportFilePath (tu peux aussi modifier ton process model directement je pense, ça a l'air d'être une callback de modèle)
    2. Stocker la valeur du paramètre Parameter.ReportFilePath de cette callback dans une variable TestStand
    3. Récupérer le contenu de cette variable depuis CVI (au lieu de récupérer RunState.Caller.Locals.ReportFilePath)
    En gros, ton code CVI va probablement très peu changer, c'est plutôt tes séquences TS qu'il va falloir aller modifier légèrement
    Je ne dispose pas de TS pour tester sur mon poste, mais ça semble bien être ça qu'il faut faire. On pourrait peut être éviter de passer par une variable, mais ça va complexifier le code CVI je pense.
    Si ce que je viens de dire ne te parle pas, fais signe.
    A+
    Mathieu
    Mathieu Steiner, Test System Engineer, Safran Engineering
    CLD, ISTQB

Maybe you are looking for

  • Add Button to Caption Bar of JFrame?

    Hi All, Has anyone been able to add a button to the caption bar of a JFrame? If so can you point to an example? Thanks

  • Saved sequences in Premiere Pro CC acting oddly, striped clips, green clips, blue clips...

    Rather new user to PP. Can't even find this question asked anywhere. 1. The other day, I created some sequences. Each sequence has its own bin and the source footage is in the bin. 2. Today I open up the sequences and though the source footage is int

  • Integration of Oracle Apex with EBS R12.1.1

    Dear All, We are in process of integrating Oracle Apex 4.0.2 with EBS R12.1.1 with the help of http://www.oracle.com/technetwork/developer-tools/apex/apex-ebs-wp-cabot-consulting-169064.pdf. After doing all the steps, the moment when we navigate from

  • Smart Folder That Includes iCloud Drive?

    How can you make a Saved Search (aka a Smart Folder) in Finder, that includes (as in, looks for) files stored in your iCloud Drive? Is this even possible?

  • Opinions on gVim as opposed to just Vim

    I'm finally going to learn Vim, and I will have gVim on my system for a graphical text editor to launch out of pcmanfm. I'm just curious whether any of you feel that there's some advantage to using, or at least learning out of, gVim over Vim.