DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

CHNPROPCREATE doesn't work

Hello,

 

I want to ad some additionoal properties to my waveform channels.  This shouldn't be a problem, but it doesn't work.

 

Well, I recorded the script when I added an additional property to my channel in the data portal.

 

Call CHNPROPCREATE("[1]/X","Zusatzeigenschaft",DataTypeInt16) '... TARGETCHN,PROPNAME,DATATYPE 

 

But when I tried to repeat the procedur with the script and another PROPNAME, it did not work. Why? It's just an simple command!

 

Thanks

Gabriel

0 Kudos
Message 1 of 7
(4,435 Views)

Hi Fischerg

I think the property was created but you can not see it in the tree view, but at the very bottom of the  "property window". If the name of the property hat illegal characters and does not fit to the naming convention, DIAdem renames it. See the online help for more details.

 

To see the property in the tree view as well, right click the channel in the data portal and select "Select Properties..." (German: Eigenschaftenauswahl). In the dialog box click the button "Display custom properties" (Zusatzeigenschaften anzeigen). Then click the ">" button to move it from left to right.

 

Winfried

0 Kudos
Message 2 of 7
(4,433 Views)

Hi winner,

 

thank for your advice, I found the added properties in the "property window". Are the any comands I can use to see them in the  tree view as well.

 

Gabriel

0 Kudos
Message 3 of 7
(4,428 Views)

Hi Gabriel

 

I am sorry but there is no command to display the property in the tree view.

 

Winfried

0 Kudos
Message 4 of 7
(4,424 Views)

Hi Gabriel,

 

You can interactively add your new custom property to the "Properties" node in the Structure tab of the Data Portal, by simply right-clicking on the "Properties" node and selecting the "Select Properties..." menu.  Then in the resulting dialog select your new custom property (push it to the right side of the dialog) and click "OK".  You will probably need to also click on the "Display Custom Properties" button at the bottom right of that dialog in order to get your new custom property to show up.

 

Brad Turpin
DIAdem Product Support Engineer
National Instruments

0 Kudos
Message 5 of 7
(4,414 Views)

Hello Brad,

 

I wrote a script wich calculates some charakteristic values for each channel. So I want that them to be displayed automatically after running the script. Actual I create an new channel an write the values there, but I guess this isn't a goog solution.

 

Gabriel

0 Kudos
Message 6 of 7
(4,412 Views)

Hi Gabriel,

 

Actually, I don't know anyone who uses the "Properties" node in the Data Portal structure tab.  All properties are always automatically visible in the property table at the bottom of the Data Portal, including custom properties you add programmatically.  The problem with the "Properties" node is that it makes poor use of space in the Data Portal.  It can be nice if you want to highlight 2 or 4 or 7 properties, but more than that and it is more hassle than it's worth.

 

What do you want to have happen with your custom properties after you create them?  In DIAdem 11 you can programmatically select a particular group or channel in the Data Portal so that it's properties become visible in the property table.  Wouldn't that be sufficient if you just want your customer to see the characteristic properties?  Will you be displaying those characteristic properties on a REPORT layout?

 

Brad Turpin
DIAdem Product Support Engineer
National Instruments

0 Kudos
Message 7 of 7
(4,386 Views)