05-14-2014 08:28 AM
I am trying to define a new scale for multiple channels in max. Currently I have 8 channels in max and that could increase to 32. I need a way to define the scales for these with my program I am using both cDaq and pci-50xe aquisitions for now everything is analog inputs. Basically I am trying to write a program to make the scales for each channel, it should be pretty simple. I cant create all scales necessary before running because there are too many different sensors. I would like to do it this way rather than creating a custom scale so that I can have multiple channels in the same task that all have different scales.
Solved! Go to Solution.
05-14-2014 08:37 AM
You are probably going about this just a bit backward. Certainly you can programatically create and save a scale to MAX. This is fairly straight forward. The simpler method would be to define a scale for each type of sensor and apply the sensor generic scale to all channels that have that type of sensor connected. One scale per channel is completly unneecessary.
05-14-2014 08:42 AM
Thanks, the only issue with that is the inacuracy between two load cells for example the scaling could be enough off that it would cause issues for my application. So for this create and save scale method would I need to say each one has this specific scale and then edit it in the progam so that it saves to max and is used when the channel is called?
05-14-2014 09:21 AM
Ah. you are really talking about applying "Calibration factors" to your specific sensors. (sort of a poor man's TEDS) right?
in this case I use a "Master" scale "MyLoadCell" that sets the units and provides a "Nominal" scale and apply the specific gain and offset to each sensor through a scale property node. You have a few ways to store that information in your system. Named MAX Scales may work well in your case and the DAQmx>> Advanced>> Scale setup pallet offers two options to get those scale properties applied.
05-14-2014 10:26 AM
Exactly I was able to get it to work thanks for the help.