NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

batch convert INI to xml

Hi,

Is there a way to batch convert a bunch of sequences from INI to XML format?  I see there is a sequence update utility, but it doesn't appear to have this option.  It just will update any type definitions and such.

 

Thanks

David J.

0 Kudos
Message 1 of 8
(5,413 Views)

Here is how to do one.

 

Open the Sequence file in the seqeditor

Set SequenceFile Properties, File Format to XML, close the dialog

Save sequence file.

 

Now all you need to do is automate that.

 

 

Regards
Ray Farmer
0 Kudos
Message 2 of 8
(5,405 Views)

Yes, the "Update Sequence Files..." tool in the tools menu can do this.

 

In that tool:

1) First select the subdirectory that contains all of the sequence files you want to change

2) Right-click and from the context menu choose "Select all sequence files"

3) Then right-click on one of the sequence files and from the context menu select "Change Format->Xml"

4) Click the "Apply Changes" (green checkmark) button in the upper-right corner.

 

Hope this helps,

-Doug

0 Kudos
Message 3 of 8
(5,395 Views)

Hi,

I'm in the update sequence files tool, I've selected the directory.  But I am not seeing any context menu on right-click within that tool.  Perhaps this is a version issue, I'm using TS 2010 version 4.5.0.310.  In what portion of the update sequences file tool do you see the right-click context menu?

 

Thanks

David J.

0 Kudos
Message 4 of 8
(5,380 Views)

This tool has existed since TestStand 4.0 and hasn't changed much. It's working for me. I'm not sure what the difference is on your machine. I've attached some screen shots of what it should look like when you do what I'm saying. Can you bring up right-click context menus successfully in other applications? If not, perhaps something is wrong with your mouse. You might try using the context menu keyboard key if you have one (most Windows computers have one with a picture of a context menu on it).

 

Hope this helps,

-Doug

0 Kudos
Message 5 of 8
(5,367 Views)

Wow, that looks completely different than what I see.  In my Tools menu, I see the "update sequence files", but I see no "sequence file converter" tool like yours.  I do see a "convert CVI test executive sequence" and "convert Labview Test Executivem sequence", but no teststand one.  Perhaps it is something I omitted on install. What menu did you choose the tool from?

 

I attached what my update sequence files tool looks like.  Clicking the browse for folder button brings up the standard windows file dialog, but my right-click context menus don't contain anything like what you see, just standard windows items. 

0 Kudos
Message 6 of 8
(5,356 Views)
That looks like the old updater from before teststand 4.0. You probably copied over a toolsmenu.ini file from an earlier version of teststand. You can run the new sequence file converter directly from the teststand bin directory anyway though if you'd like. I think it's called sequencefileconverter.exe. To fix up your toolsmenu.ini file the easiest thing to do is copy one over from a clean install on a clean machine. The file is located in the teststand cfg directory.

Hope this helps,
-Doug
0 Kudos
Message 7 of 8
(5,346 Views)

I see.  I think I may know what happened.  We source control everything so we have duplicate config on our machines, including the config directory.  That is probably where the old one came from.  Thanks for the information.

 

In the meantime I actaully took a couple hours and coded one, I had all the pieces from various other sequence automation I already had written, just had to find the method to set the sequence type and put together a sequence.  Just in case it is useful to hack up for any other reason I have attached.

 

Thanks,

David J.

Download All
0 Kudos
Message 8 of 8
(5,324 Views)