From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

DIAdem Scripts Naming Conventions

Is there any recommended naming convention for scripts? I am mainly asking about variable names eg. should I include type prefix?

Michał Bieńkowski
CLA, CTA

Someone devote his time to help solve your problem? Appreciate it and give kudos. Problem solved? Accept as a solution so that others can find it faster in the future.
Make a contribution to the development of TestStand - vote on TestStand Idea Exchange.
0 Kudos
Message 1 of 2
(2,296 Views)

The only things I can recall and that I would apply :

  1. function names in DIAdem tend to be something like ObjectAction(parameters). E.g ChnSmooth() which smoothes (action) a channel (object).
  2. the "o" at the beginning of objects. E.g "oMyGroup".

You can look at the examples which give a great overview of how you should write your scripts 🙂

 

Other than that you can still follow those interesting ones : http://www.csidata.com/custserv/onlinehelp/vbsdocs/vbs3.htm. But nothing is mandatory.

 

CLAMaxime -- Kudos are a great way to say thank you
Message 2 of 2
(2,281 Views)