DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

I need a stp file converted to a dataplugin

Solved!
Go to solution

Hello,

 

With the new version of Diadem. I am tring to import a text file and assign a registerval1 variable to a value.

Previously it appears to be using a STP file.

 

The txt file looks like this:

 

Firing Pressure
17/08/2015 16:18:47
122.223


Final Reservoir Pressure
17/08/2015 16:18:50
92.014


Sled Velocity
17/08/2015 16:18:47
14.945


0.000
  Kg

 

And would like to read the file into Diadem, then record the Sled Velocity value as a variable.. 14.945

I would also like to record the date and time as a variable.

 

Thanks

 

Stagsden

0 Kudos
Message 1 of 5
(5,033 Views)

Hi Stagsden,

 

There's no way to directly convert an STP file to a DataPlugin with modern versions of DIAdem.  That might actually work with DIAdem 10.0 if you launch the ASCII Import Wizard.  Still, the goal appears to create a new DataPlugin, and what you've submitted so far would be easy for me to create from scratch.  Could you send over a complete file?  The invisible endline characters need to match exactly, which I can't get from the text snippet you posted.

 

Also, nowadays we don't use the registerval1 type variables any more, because you can create your own custom variables with descriptive names, such as

 

Firing_Pressure

Firing_Pressure_Time
Final_Reservoir_Pressure

Final_Reservoir_Pressure_Time

Sled_Velocity

Sled_Velocity_Time

 

Do you have other code that absolutely must read those old variables, or could we switch over to nice descriptive names for those properties?

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 2 of 5
(4,998 Views)

Hello Brad,

 

I have no problems with using the descriptive names for the variables. That makes life a lot easier.

I have attached the file and previous STP file if that helps.

 

Regards

 

Jim

0 Kudos
Message 3 of 5
(4,990 Views)

Hi StagsDen,

 

Here's a DataPlugin that parses those regular strings into custom properties attached to both the File and Group levels.

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 4 of 5
(4,955 Views)
Solution
Accepted by Stagsden

Thanks Brad,

works fine

0 Kudos
Message 5 of 5
(4,929 Views)