Checking for an invalid parameter
- mbowdich
- Posts: 209
- Joined: Tue Oct 05, 2010 10:54 am
Checking for an invalid parameter
When using smRead(), and invalid parameter is being read as a 0. Is there a way to determine in a script if a parameter is invalid? Unfortunately, I cannot use 0 as the indicator, because 0 could also be valid data.
- Jstoner
- Posts: 8
- Joined: Tue Jan 25, 2011 12:46 pm
Re: Checking for an invalid parameter
I actually just ran into this same situation, except I also want to SET parameters as invalid. This stems from a desire to use the invalid state as a way to control which gauges are seen on the screen.
- jdgallaher
- Enovation Controls Development
- Posts: 9
- Joined: Tue Sep 14, 2010 11:30 am
Re: Checking for an invalid parameter
smRead() returns the validity of the parameter.
i.e.
dataValid = smRead(dataHandle, dataVariable);
i.e.
dataValid = smRead(dataHandle, dataVariable);
- mbowdich
- Posts: 209
- Joined: Tue Oct 05, 2010 10:54 am
Re: Checking for an invalid parameter
Thanks. I missed that first line in the scripting guide that explained it.