02-13-2008 02:33 PM
02-13-2008 02:34 PM
02-14-2008 02:59 AM
02-14-2008 09:17 AM
Hi SethRow187,
I agree with Ingo, first go through the ASCII DataPlugin Wizard in DIAdem 10.0 or later to generate a DataPlugin which will automatically load one of your ASCII files. Then I would recommend using a VBScript that either concatenates data already loaded from multiple files into separate Groups in the Data Portal, or using a VBScript that additionally pops up a multi-select file dialog to automate both the selection and concatenation.
Below you will find an example of the latter,
Brad Turpin
DIAdem Product Support Engineer
National Instruments
P.S. You will need to edit lines 17 and 18 in the script "Importing Data From Multiple DataPlugin Files.VBS" and replace the existing file extension and DataPlugin name with ones that fit your data files.
02-14-2008 10:41 AM
Wow, that really cuts down the time it takes to do this...thanks!
One more questions though:
1. I noticed that whenever I run this script, it wipes out all of the data in the portal. Suppose I have a TDM file already started that contains multiple groups corresponding to different test #'s of a particular component. After a few days of testing I want to go back and update the TDM file with the latest data. This would mean I want to bring in several files at once and either append them to a particular group of my choosing, or start a new group (if it is a new test). Is there an easy way to do this?
02-15-2008 09:10 AM
Hi SethRow187,
Well, you can change the script to do anything you want. One way you could use the existing script to accomplish what you suggest is to save the intermediate group of processed or concatenated values to a new temporary file, then load in the additional data from the extra N files and have that data concatenated into one group, then save that group to another temporary file. Then you could run the script a final time to concatenate the results from the two temporary files.
It's your choice whether you want to adapt the script to do these sorts of things for you automatically, or whether you want to live with the clunkiness required to use the script as it is to accomplish your additional use cases. Certainly it is possible to concatenate from selected groups to a specific target group, without having to resort to unnecessary temporary files.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
08-12-2008 04:43 AM
Hello Brad,
I want to creat a report for some measurements that I do with an equipment, and I must use Diadem, and for that I transfer the data( a .csv file) in Diadem and I've use your script "Importing Data from Multiple DataPlugin Files.zip" and that help me, but I want to modify the script, and when I start to run the script and load the .csv file to appear with other field (like in attachment - I insert with <freetext> the fields that I need).
Can you tell me how to modify the script, to start with the Fields that I need (see attachment)?
I'm new in working with Diadem, so I don't have good knowledge about that.
Thank you a lot.
08-12-2008 03:58 PM
Hi Marse,
The example I sent that you are running loads a *.TDV file into the VIEW panel. If I understand you correctly, all you need to do is edit the *.TDV file to be what you want with the desired <freetext> fields in the legend, then save the *.TDV file and overwrite the one I sent you. The next time you run the example it will load the edited *.TDV with the desired <freetext>.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
08-13-2008 06:28 AM
Thank you Brad,
I've found out later and I modify the .TDV file. Now is ok.
I have one more question (I repeat, I'm new in Diadem), there is a way to creat the template in a way that the value for the fields that I creat to be near the field( like I draw in atachment)?
Thank you again
08-13-2008 10:31 AM
Hi Marse,
If I understand your request correctly, you want the property name and the property value to be side by side (the name on the left, the value on the right) in the VIEW legend. This is not possible-- there is no setting in VIEW to repeat the property name for every channel in the legend and display the name and value side by side for each channel.
What you can do with a bit of effort, though, is construct something similar with a few VIEW textbox areas and the corresponding channel and property references in @@ expressions.
Try this example,
Brad Turpin
DIAdem Product Support Engineer
National Instruments