01-30-2014 07:15 PM
Hello,
I am using the command ChnLinGenImp in a channel creation such as below.
--> Call ChnLinGenImp(SpecChannelName,length,SpecNumber*1,0,Unit)
The issue that I am running into is, I run a convert unit's script that converts the units if they are incorrect. However the convert portion does not convert the IMP channel becuase it is an IMP channel. Is there anyway around that besides going to ChnLinGen command?
Solved! Go to Solution.
01-31-2014 12:44 PM
Hi J,
The only two options I'm aware of in DIAdem 2012 are:
1) Give in and make an explicit channel instead of an implicit channel and let DIAdem's unit conversions handle everything
2) Manage your implicit channels separately and re-create them each time there is a unit change-- but you have to manage the offset and factor conversions yourself
For linear unit conversions such as degC to degF, I could imagine DIAdem automatically operating on the offset and factor values of the implicit channel, BUT not all unit conversions are linear, and there you need to be able to operate on the channel values-- you can't apply a non-linear conversion to a y = mx + b equation and get another y = m'x + b' equation.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
01-31-2014 12:46 PM
Thanks!