Problème d'utilisation de Property loader

Bonjour à tous,
J'ai besoin d'aide concernant un problème de transfert de données d'une base Access vers un tableau 1D et 2D.
Quand j'exécute la séquence il n'y a pas d'erreur retournée.
En fait quand il s'agit de récupérer les données et de les stocker dans les variables simples cela fonctionne, en revanche si ces variables sont dans un tableau elles restent à 0.
Pour le tableau 1D je ne vois pas où se situe l'erreur, pour le 2D j'ai peut-être mal configuré le step propertyloader.
Open Database
Done
Open SQL Statement
Done
Charger vers variables
Done
  NumPropertiesRead:
4
  NumPropertiesApplied:
4
Charger vers tableau 1D
Done
  NumPropertiesRead:
4
  NumPropertiesApplied:
4
Charger vers tableau 2D
Done
  NumPropertiesRead:
4
  NumPropertiesApplied:
4
Close SQL Statement
Done
Close Database
Done
NB: J'utilise TS 3.5
Attachments:
testbase.zip ‏16 KB

thank you for your assistance
I modified the sequence but that still does not function in 1D or 2D.
The values are not transferred in the tables.
Look at the joined image
Begin Sequence: MainSequence
(C:\TestBase\Test base.seq)
Step
Status
Measurement
Units
Limits
Low Limit
High Limit
Comparison Type
Open Database
Done
Open SQL Statement
Done
Charger vers variables
Done
  NumPropertiesRead:
4
  NumPropertiesApplied:
4
Charger vers tableau 1D
Done
  NumPropertiesRead:
4
  NumPropertiesApplied:
4
Charger vers tableau 2D
Done
  NumPropertiesRead:
8
  NumPropertiesApplied:
8
Close SQL Statement
Done
Close Database
Done
End Sequence: MainSequence
Gordon F
Attachments:
Capture1.jpg ‏120 KB
testbase.zip ‏16 KB

Similar Messages

  • How to use the property-loader?

    Hello,
    i´m using TS 3.5 and LV 8.0. Now i also want to use the built-in property-loader from Teststand.
    Is there somewhere a documentation for "beginners" how to use this property-loader? At the end i want to read parameters from an ascii-file which updates my input-parameters of the steps in the current-sequence.
    I know how to read and change parameters from teststand in labview via active-x, but i have no idea how to use this propertyloader-thing.
    Is there an easy help file somewhere in the net ( I havent found one yet)?
    Thanks for your help.

    Meanwhile i can use the propertyloader for Limits and Variables which are in a container of the teststep. What not worked was:
    1.) setting the properties of a "Messagebox". For example the property "Button1Label". Why is this not working?
    2.) The second thing what is not clear: Do i need for each sequence an own property-loader? I tested it with a sequence with one subsequence. Does the subsequence needs its own property-loader?
    Currently the import-csv-file looks like this:
    Start Marker,,,
    <Step Name>,Limits.Low,Limits.High,Cont.Voltage
    TestStep_1,1,2,4
    TestStep_2,8,16,32
    End Marker,,,
    When Teststep_1 and Teststep_2 are both in mainsequence then it works. When i copy Teststep_2 in a subsequence then i get an error (-18).
    Any ideas about my two questions?
    Thanks

  • How to Use Property Loader to Load All Step Limits of SubSequence

    I have a MainSequence which have 7 Sequence Call Steps,and these Steps all have several Numeric Limit Test(LabVIEW Adapter),Now I want Creat a property Loader Step in the Setup Table of MainSequence to load all the SubSequences' Steps Limits.But I do not know how to realize it?Who Can help me,Thank you!

    It wasn't your english I just misread the question. I found this link that might help answer your question.
    http://forums.ni.com/ni/board/message?board.id=330&message.id=13163&requireLogin=False
    Hope it helps.
    Using LabVIEW 2010SP1 and TestStand 4.5

  • How can I add a new vaiable to the file loaded by Property Loader without changing my script

    I have an input file to my script that I load via Property Loader. The number of parameters in the input file may change from test to test.. Is it possible in some way to add a new parameter without changing the sequence file?
    Is there for example a way to make the Property loader read parameters until end of file, and put the parameter into a temporary variable in my script?
    Hope there is a way to resolve this.
    Cheers
    Claus Christophersen

    Claus,
    The solution you have is a valid one.
    Basically you have a variable (global or local) and you import the expected parameter to this variable before you pass it to the hardware.
    You use that variable as the input parameter you pass to your hardware of course.
    You have to modify your source file depending on the test type you want to execute every time you want to change the test type though.
    Another solution would be to use Data Markers in your file to separate the variable values corresponding to each test type.
    Check the example I am attaching.
    At the beginning I prompt the user for the Test Type (Type I or Type II).
    Based on the type, I import the corresponding variables from the source file using Data Markers.
    If you have questions let me know.
    Attachments:
    SourceFile.zip ‏8 KB

  • Error while importing a big array with thr property loader

    Hello,
    the following problems occure: when I want to import a *.txt file with a array of more than arround 3300 members with the property loader, the following error meassage occures:
    property loader step failed to import or export properties
    x property values were found
    x-1 property values were imported from y rows
    Error code: -18, user defined error code.
    how can I solve this problem?
    I think sizes of arrays are limited somewhere in the source code of the property loader. is it possible to increase this size? And how?
    regards samuel

    Could you attach an example of your .txt file and your sequence?

  • Using WHERE command in property loader SQL query

    Hello All,
    Hopefully this will be a fairly straight forward question.
    I am attempting to use Property Loader to read in test limits from a SQL database. There are many types of models that need to be tested, each having a unique set of limits. I want to be able to retrieve the appropriate limits for the model of product under test.
    To do this I have the product model number available in a FileGlobal. The database contains a table with the test limit information with an identifying 'ModelNumber_Number' column.
    I have written the following SQL query achieve this:
    "SELECT *  FROM TESTLIMITS WHERE ModelNumber_Number=+ FileGlobals.ModelNumber"
    However, this is where I am confused. I'm not sure on the syntax for accessing a variable in the SQL command. I receive the following error:
    The multi-part identifier "FileGlobals.ModelNumber" could not be bound.
    Can someone please provide guidence on how to do this?
    Many thanks,
    Cam.
    Solved!
    Go to Solution.

    Thank you very much for your reply.
    Upon changing the query to as you suggest, I am presented with the following:
    Error In SQL Statement Expression. "SELECT *  FROM TESTLIMITS WHERE ModelNumber_Number = " + FileGlobals.ModelNumber
    Specified value does not have the expected type.
    The type of FileGlobals.ModelNumber is a numeric represented as a double precision 64 bit signed integer.
    The database column is also of type int 64.
    Can you suggest a solution?
    Many thanks.

  • Property Loader with Excel spreadsheet embedded into a Word doc

    I know I can load test limits from an Excel doc using Property Loader but can I load test limits from an Excel table embedded in a Word document? Has anyone ever done this?

    Jules,
    I looked into how this could be accomplished, and it doesn't look like it is possible using off the shelf methods. Please if anyone figures out how to do that, i would strongly encourage you to write a Community Example . I think your closest work around would be to have the excel document linked in the word document http://office.microsoft.com/en-us/word/HA101208101033.aspx . Unfortunately in this situation, the excel file is still seperate from the word doc, and anyone reading the word doc would have to open the excel through the link to view its contents. Also if you move the document, you have to remember to move or change the path of the link. What is your motivation behind having the Excel Spreadsheet in a word document? I agree it would be a novel Idea, but as of now when you copy the object into the word document, it gets encapsulated by the .doc or .docx, and there is no clean easy way I have found to abstract it out. I also looked into the potential of dynamically linking the excel spreadsheet and word document, so when you would update one...it would update the other automatically, unfortunately this functionality doesn't exist (that I could find). Sounds like a pretty good product suggestion for microsoft though ; ) Keep me updated if you find a better work-around.
    Richard S -- National Instruments --Applications Engineer -- Data Acquisition with TestStand

  • How to apply Property Loader to all sequences in the Sequence File?

    HI,
    I'm following the help instructions for the Property Loader and it states....
    Use Current Sequence File—Selects the file where the step is located.
    Sequence—Specifies the name of the sequence into which to import variables and properties. The specified sequence must exist in the specified sequence file. Select the <ALL SEQUENCES> tag from the drop-down list to instruct TestStand to import variables and properties for all of the sequences in the specified sequence file. You must specify a valid sequence name for the step to work properly.
    In my specific sequence file I added the Callbacks:  SequenceFileLoad, SequenceFileUnload, PreUUT. In addition to that, my MainSequence is calling 2 subsequences.
    I put the propertyLoader step (setting few values of the SequenceFileGlobals) in the setup section of the SequenceFileLoad, checked the 'Use Current Sequence File' and selected ALL SEQUENCES tag in the 'Sequence' option.  I verified that it does what I wanted.  Then, is it entered the PreUUT subsequnce, the values returned to the "original" values.
    Is that a bug?
    If not, how do I use the PropertyLoader in a sequenceFile that include several subsequences as well as Callback sequences.
    Thanks
    Rafi

    Ooops, sorry about that...
    I forgot to mention....it is TS 3.5.
    As per your questions-- yes they all in the same sequence file. 
         mySeqFile.seq
               SequenceFileLoad
               SdequnceFileUnload
               PreUUT
               Seq1
               Seq2
    AS I said....I put the property loader in the setup of the SequenceFileLoad,  I see that it works properly in that subsequence.  Then, after the SuequenceFileLoad is finished, I do Ctl+F5 for Test UUT's.  I put a breakpoint in the first step of the preUUT subsequence and check the context.  I notice that the variables in the FileGlobals to whom the property loader writes, have been changed back to the original values.
    I'll try to create a simple program to duplicate it but it may take me time as this test station is very busy.
    Thanks
    Rafi

  • Property loader / property saver

    Property loader works really well, but I have a question ...
    Where is the ability to 'Property save?'. I see the menu item, import/export properties.
    Is there an equivalent test stand statement that allows me to save properties from a sequence while it is executing?

    checkers18,
    I am attaching a simple example that uses TestStand database step types to update the values in the database.
    The attachment contains an Access database (testdb.mdb). The table where the calibration values are stores is LIMITS.
    I created 3 calibration values to impor (export).
    FileGlobals.CalibrationVal1.
    FileGlobals.CalibrationVal2.
    FileGlobals.CalibrationVal3.
    The sequence imports the calibration values from the database using a property loader step.
    In order to pretend the values changed I ask the user to enter the new values manually one by one.
    I store the temporary new values in local variables using a post expression.
    Finally I update the values in the database using a DataOperation step.
    Hope it helps.
    Let me know if you have any problem.
    I used TS 3.5 and Microsoft Access 2003 to create the database.
    Antonio Lie
    Message Edited by Antonio Lie (NI) on 10-03-2006 09:51 AM
    Attachments:
    Example1.zip ‏19 KB

  • Using Property Loader in a sub-sequence with multiple invocations

    I'm using the Property Loader to load a different set of limits for each invocation of a sub-sequence. In my example, I have a sequence to do tests all the tests on a given RF band. But I want the ability to specify different test limits for each band.
    It wasn't hard to come up with an expression based on Parameters.Band to specify different Start and End data markers in the Property Loader step. So far so good.
    I don't necessarily want to override the same limits in every band. For one band, I might be happy with a default limit from the sequence file itself. Trouble is, if I don't specify a limit in the limit-file for a given band, then the limit loaded by the previous invocation of the sub-sequ
    ence is still in effect. This was a surprising behaviour. There's a huge opportunity for errors to creep in here, because the limit files may be edited by "lusers", and it's hard to explain this pitfall.
    Is there an easy way to make the limits reset to the sequence-file defaults before I call the Property Loader? Or alternatively, to make the loaded limits affect only the present invocation of the subsequence (the same way loading Locals only affects the present invocation?)
    BTW, I'm not actually using the official TestStand Property Loader, which I find too unwieldy. We wrote our own Property Loader. But the problem is common to both. Changes to RunState.Sequence.Main... persist across invocations of the sequence.
    - Ron

    Here I go, answering my own question again. For the benefit of anyone else who ever runs up against this...
    The trick is in the Sequence Properties dialog. Turn off "Optimize Non-Reentrant Calls to This Sequence". The little comment there makes it pretty clear that this is what's needed. I tried it, and it works.
    - Ron

  • Can I use property loader in a main sequence to load properties in subsequence?

    Hi, I have been trying to use the property loader to load test limits and local variabels into subsequences from the main sequence.
    I can export all the properties for my main sequence and all the subsequences contained within by selecing <all sequences> in the export function.
    When I try to load the exported file back in using the property loader I get differant errors depending on the format I exported/imported it with.
    For text or csv files iget error -17100
    "The file format is incorrect near the section 'StationGlobals'.  Make sure that you are using start and end markers correctly."
    For an xl format I get error -18 
    "Property loader step failed to import or export properties.
    310 property value(s) were found.
    43 property value(s) were imported from 920 row(s) of data"
    There is no where near 920 rows of data or 320 properties in the exported file.
    If i use the property loader to load properties in just main it works fine, is there extra formating I need to do to the file before importing it or is it not possible to load properties into a subsequence from a property loader in main?
    Solved!
    Go to Solution.

    Hi,
    I have tried several sequences and building the propertyloader file using the export tool,
    Moving the End_Mainsequence to the bottem did not help.
    I can load values into a single sequence with no problem it is only when I try to load properties into a sub sequence from the main sequence that I have issues.
    Attached is a more simple example of what I am trying to acheive. 
    Kind regards,
    Hugo
    Attachments:
    Sequence File 2.seq ‏9 KB
    Test.csv ‏2 KB

  • Property Loader - How to set it up for all sequences?

    Hi,
    I made an attempt to use the property loader for the first time. (TS3.5).
    I set it up in the setup section of the SequenceFileLoad and specified few parameters of the FileGlobals.
    What happened was a proper operation for the SequenceFileLoad sequence, but as soon as the procedure stepped into the MainSequence, the values return to the original values.  I repeated the process with and without import to Run-time sequence only' and it behaved the same.
    Is there a way to set it up so ti will apply to all sequences within my sequence file and also to the external sequence files called from the main sequence.  In short to replace the parameters of the FileGlobals for the duration fo the test.
    Thanks
    Rafi

    Rafi,
    The behavior you are seeing with the SequenceFileLoad engine callback is expected.  The SequenceFileLoad callback occurs before the Sequence File is actually loaded.  In your case, you are setting the FileGlobals then loading the SequenceFile.  When the Sequence File is loaded by the engine, the FileGlobals are also loaded in with the file.  So the FileGlobals are reset to their default values.  If you want to set the FileGlobals from the property loader, put the Property Loader step in the Setup group of the MainSequence.  In this case, you are setting the values of the FileGlobals after the Sequence File is already loaded.
    FileGlobals only have a scope that covers a SequenceFile.  You will not
    be able to load FileGlobals that are accessible to sequences in
    external sequence files.  You have a few options for getting the data into the external sequences:
    (1)  Add parameter variables to the Parameters section of each external sequence.  When the sequence is then invoked, you can pass the data which will be used by the sequence.  This provides the proper data dependency between sequences and avoids confusion on when the data is being initialized.
    (2)  For each Sequence File or each Sequence, create a separate property file.  When each sequence is called, then use the Property Loader step to load in the data.
    (3)  Use StationGlobals instead of FileGlobals.  StationGlobals have a scope that covers all SequenceFiles on a test station.  However, this is not a recommended method, because the data is accessible to all sequences.  For large applications, it is easy to mistake points in the sequences where data is being initialized and used.  In these cases, you may expect the data to be a certain value that it isn't because another Sequence has already changed the data values.  That is why it is better to use smaller scoped data variables.
    Let me know if you have any further questions.
    Thanks,
    Tyler T

  • Teststand property loader for multiple sequences

    Hi, I am using Teststand 3, and would like to be able to Export all sequences into one Excel spreadsheet, so that each tab references a single sequence. If anybody has already done this, or has a suggestion as to how to do it, I would be grateful. The end goal is to create a single excel file, that can be emailed around, without people losing track of all the different excel sequence files.

    ADL,
    Unfortunately, there is no way to do this with the property loader features of TestStand. The Import/Export Property tool does not distinguish between worksheets in a workbook and the Property Loader step type can only import properties. If you really need this functionality, one possibility is to use the ActiveX methods exposed by Excel to populate an Excel workbook.
    Regards,
    Matt P.
    Applications Engineer
    National Instruments

  • Best way for using Property Loader with Excel

    I am trying to architect a test system to run a variety of tests (DIO, AIO, PWM...etc) and I noticed that Property Loader can be quite handy. I am trying to find the best method to utilize NI TestStand Property Loader to load test properties from Excel into some sort of parameter database. The properties shall be loaded only once when the test sequence is opened. The parameters of the excel table will have a format like this:
    TestType TestCondition  ECUPin#   Limits.High    Limits.Low  Units  PWM_Frequency  CAN_TX   CAN_RX
    DI            ON                    1                                                                                      0x0102   0x0304
    AI            OFF                   2                0             0.1                V                                0x1324   0x0405
    The table will look much more complex than this one, but once I know how to do this I should be fine. Does anyone have suggestions for what I am trying to do ?
    Thanks,
    Ayman

    There are a couple methods of thought here:
    Property Loader-  You can use the tool to export and import properties.  The best way to do it is to export the properties that you want in the Excel file using the tool.  Then make copies of the file and change the values in there.  This will ensure that once the values come back into TestStand they will all go to the correct place.
    FileGlobals Method-  You can create a large container which has all the correct variables in it in your file globals or locals.  There is an object in the TS API called a PropertyObjectFile.  This file is a simple text file that contains the properties, sub properties and values of any property object in TS.  You can easily just pass the container into it.  The problem with this is that you then have to create a VI or some tool to edit the values in it.  You can go in there and manually change them but it's not as intuitive.
    Property Loader to FileGlobal Container-  This would basically be a hybrid of the two.  Pretty much what you described in your post.  Where the property loader only has to load the container in your FileGlobals.
    Which method is best? It all depends on your application.  If you ever need to dynamically export the properties then you can't use the Property Loader. 
    One thing to remember is that you should only Import/Export properties that need to be changed in the Excel file.  This will help reduce the number of properties. 
    Hope this helps,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Load "Selected" in a Property Loader test step from file

    Hi,
    The Import/Export tool stores its selected properties in the file �PLPropertyLoader.ini�. Is it possible to use this file to specify which properties a �Property Loader Test Step� should load? How? Then the information about what to export and load dynamically later is stored in the same location and the risk possibilities is reduced to one place.
    Best regards,
    Morten Pedersen
    CIM Industrial Systems A/S
    Denmark

    Morten -
    By default, the Property Loader step type stores its selected property list in the step's property "Step.PropertyList". The Edit Property Loader dialog box has the "Property List Source" expression control that specifies this as its value.
    If you created a Station Globals array property of type "DatabasePropertyMapping", you could specify that the steps use this property. You might have to set to show hidden properties to find the "DatabasePropertyMapping" type in the insert menu. Note that when you do this when you edit the selected list in a step you are editing the selected list stored in the station global array property.
    Scott Richardson (NI)
    Scott Richardson
    National Instruments

Maybe you are looking for

  • Losing carriage returns in textarea / using plpdf to generate report

    Hello, I'm using Apex 3.1.1 and Oracle 10g database. I would appreciate any suggestions on how I can preserve carriage returns in a textarea when sending the text to a package that generates a report. Please see example of current problem (below code

  • Can I sync my IPOD Touch on my PC after my Laptop HDD crashed?

    Laptop hard drive had a physical crash. My Itunes library was on laptop. I have authorized the laptop and the PC but I want to be able to sync the songs I have on my device to ITunes on the PC. This doesn't seem to be possible? Is there any way? I ha

  • Does anyone know how to create algorithmic/fractal art in Motion?

    I reciently found out about the Electric Sheep screensaver (example here: http://www.youtube.com/watch?v=jVD67pMdv9k) and it has inspired me to try to create similar imagry from scratch in Motion. The problem is, I havent used motion in a few years a

  • Camcorder shutdowns at clip length 19:54:06

    Using a Sony MiniDV Camcorder DCR-TRV27. When importing raw footage into iMovie, iMovie imports until the clipsize hits 19:54:06, then the camcorder automatically stops playing. i am restarting the import, but am losing a second or two of footage. i

  • Can't Find Album Art (Music)

    Last month, My Itunes can get album art from the itunes automatically when i click "Get Album art" or something like that. But last week, I change the my music directory on windows(i really dont know if this is the cause of the problem) and now i can