Jump to content

Variant Configuration (Read Key Variant / array of Clusters)


Recommended Posts

Hello forum

I have noticed a special behavior when reading array of clusters. Normally missing entries are filled with the default value or the existing value of the variant. But when reading array of clusters the default (of datatype) value is always used.

I have implemented a customization for myself that does exactly this behavior.

The use case for this behavior is e.g. that you can have the default settings and then overload them with specialized values.

image.png.38c49dbc5fdfb631dee99fac428d7c75.png

expample:


Default.ini
[DAQ 1]
AIChannels.<size(s)> = "2"
AIChannels 0.Name = "Pressure"
AIChannels 0.Channel = "D1_AI_Mod3/ai0"
AIChannels 0.Unit = "hPA"
AIChannels 0.Gain = "2.000000"
AIChannels 0.Offset = "5.000000"
AIChannels 1.Name = "Temp"
AIChannels 1.Channel = "D1_AI_Mod3/ai0"
AIChannels 1.Unit = "°C"
AIChannels 1.Gain = "2.000000"
AIChannels 1.Offset = "7.000000"
 

Special.ini
[DAQ 1]
AIChannels.<size(s)> = "2"
AIChannels 0.Gain = "4.000000"
AIChannels 0.Offset = "7.000000"
AIChannels 1.Gain = "20.000000"
AIChannels 1.Offset = "17.000000"

Can this customization be included in the OpenG Lib?

Greetings
Claude

 

Read Key (Variant)__Zuehlke.vi

Link to comment
  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.