Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
1 ratings:
 4 out of 5     Rate this Document

Implicit channels in DIAdem 9.1

Primary Software: DIAdem
Primary Software Version: 9.1
Primary Software Fixed Version: 9.1
Secondary Software: N/A

Problem: My script, in which implicit channels are loaded and changed, does not work in DIAdem 9.1.

Solution: In earlier DIAdem versions, generation specifications determined that implicit channels were saved in a way that saved memory space. For efficient use of the main storage of the computer, the main storage also manages implicit channels with generation specifications in DIAdem version 9.1 and later versions (start value, step width, and number of values). This means that only three values are used when implicit channels are loaded, no matter how long the channel is.

To change the contents of implicit channels, the channels first must be expanded. To make the changes you can use the channel shortcut menu in the Data Portal or a script.
In a script the command "CHNVALEXPAND" is used. Example:

MyChnNoStr = Str(CNo("GroupName/MyChannelName"))
call CHNVALEXPAND(MyChnNoStr)

The command CHNVALEXPAND does not generate an error message if an explicit channel is used as the parameter instead of an implicit channel. This means you can expand a complete channel group even if the group contains explicit channels. Example:

MyGroupIndex = GroupIndexGet("GroupName")
for iLoop = 1 to GroupChnCount(MyGroupIndex)
MyChnNoStr = Str(CNoXGet(MyGroupIndex, iLoop))
call CHNVALEXPAND(MyChnNoStr)
next

Refer to the DIAdem help for further information on the commands.

Related Links:

Attachments:





Report Date: 11/24/2004
Last Updated: 11/24/2004
Document ID: 3FM1FQI1

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit