NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Requierements Gateway Excel

Solved!
Go to solution

Hello,

 

I am fighting against some regular expressions! in a dark environment. Because the excel file is

generated in an intermidiate textfile. 

Is there a way to turn on the light?

Is this file somewhere on the file drive?

 

Regards

Juergen

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 1 of 3
(3,696 Views)
Solution
Accepted by topic author j_dodek

Hi j_dedek,

 

If you would like to retain the intermediate file, enable the Intermediate file option for your document. This will place the intermediate file in a folder called intermediate, which will be in the current project directory.

 

intermediate file.PNG

 

You can test expressions using the Regular expression tester. Directions on how to do that are below:

  1. While in the Configuration window, click on the Expressions button on the left to get to the Expressions Pane.
  2. Click on File » Import File or Import Directory, or Import Intermediate file, depending on what you are trying to test. At this point, you should see the text from the document in the Text analysis zone.
  3. Enter a regular expression in the Regular expression control.
  4. Click the Test button. If there are matches to the expression, the results will be displayed; otherwise it will say Text doesn't contain any correspondence with the regular expression

 

Test regular expression.PNG

 

You can also use the regular expression tester to show all the groups (which are what are in the parentheses in the regular expression). You will notice in the screenshot below, there is a Text field that shows the entire line the match was found in.

 

groups.PNG 

 

Hope this helps!

Rohama K.
Message 2 of 3
(3,670 Views)

Hi,

 

You turned on the light!

Excatly what i am looking for.

 

Thanks

 

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 3 of 3
(3,667 Views)