DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

how to change text-values using VBscript

Solved!
Go to solution

I have a template which contains 6 Text-value part and a table. I figured out how to import string array to the table but I couldnt find how to change my text-values.Under it you see my text values array.

 

text-value.jpg

 

I'm sending this array to the diadem report function. Could you please help me how to change my text values in TDR by using VBscript.

DiademReport.jpg


Yasemin Barutçu
Electrical And Electronics Engineer
0 Kudos
Message 1 of 12
(6,524 Views)

Hi No_RegreTs,

 

Would you mind explaining a little more clearly what you are trying to do in DIAdem with these text values?  Are you trying to change them within DIAdem, programatically, after you have imported them?

 

 

Regards,


Stephanie R.

National Instrments

Stephanie R.
National Instruments
0 Kudos
Message 2 of 12
(6,497 Views)

Yes, I want the change text values in TDR file programatically after import the text values from the diadem report function input I send.

 

I send text values in labview like the first picture and I want to take these text values and want to change text8,text9 etc part which I send from labview with VBscript code in Diadem.


Yasemin Barutçu
Electrical And Electronics Engineer
0 Kudos
Message 3 of 12
(6,490 Views)

Hi NoRegreTs,

 

How do you want to change the string values once they land in DIAdem?  It seems to me if you want to change the values, you'd do that first in LabVIEW before you sent them.  Do you mean that you want to rearrange the display of these individual string properties on the REPORT layout?  Do you mean that you watn to turn the string properties into values in one or more new string channels in the Data Portal.

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 4 of 12
(6,483 Views)

no no not tochangethe properties just the  rearrange the display of the individual strings,

For example if its name text8 and value is `My name is Yasemin` I want to change what I send from labview.

For my example you see before I sent here the first pic in my first message, Text8 is `Toplam Yol(5)` Im sending this from labview. But in TDR Text8 string its value is `Toplam Yol`.

I want to change this value `Toplam Yol` to `Toplam yol(5)`.


Yasemin Barutçu
Electrical And Electronics Engineer
0 Kudos
Message 5 of 12
(6,480 Views)

Hi No_RegreTs,

 

Just to clarify, you say that you are sending the string 'Toplam Yol(5)' from LabVIEW, but for some reason it is showing up as just 'Toplam Yol'?

 

I tried this out on my end and it does send the entire string value to the report.  Based on your screen shot, it looks like you only have 'Toplam Yol' in the LabVIEW text box.  Have you double checked to make sure that you are sending in the desired values?

 

 

Regards,

 

Stephanie R.

National Instruments

Stephanie R.
National Instruments
0 Kudos
Message 6 of 12
(6,458 Views)

I have to write something in my diadem.vbs file to import these text values. Do you know what is it?


Yasemin Barutçu
Electrical And Electronics Engineer
0 Kudos
Message 7 of 12
(6,454 Views)

I have to write something in my diadem.vbs file to import these text values. Do you know what is it?


Yasemin Barutçu
Electrical And Electronics Engineer
0 Kudos
Message 8 of 12
(6,453 Views)

Hi No_RegreTs,

 

One thing to keep in mind when you write these string values to text boxes in DIAdem is that the text values in the first column must exactly match the name of the text box in the DIAdem report layout.  The first column is the associated text box name, and the second column contains its value.  To check and/or change the name of a text box in a DIAdem Report, right-click on it and select "Rename".  This will bring up a dialog box like the one below.

 

Rename.PNG

 

Input the new name of the text box next to "New Name:" and click OK, and then save the TDR file.  Again, make sure that this new name exactly matches the associated Text Value in your LabVIEW array.  Now, the string value that you want in that box will be passed to it.

 

Hope this helps!

 

 

Regards,

 

Stephanie R.

National Instruments

Stephanie R.
National Instruments
0 Kudos
Message 9 of 12
(6,442 Views)

I know, they are match 😞 

still having this problem..


Yasemin Barutçu
Electrical And Electronics Engineer
0 Kudos
Message 10 of 12
(6,440 Views)