Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I Modify an ICD file to send user specified Float values?

I'm trying to modify an ICD file so that it sends a float string to the camera based on input from the user.  I've shown the portion of the ICD file I'd like to modify (ICD file also attached) but I don't know how to change the outputted value from an Integer to a Float (using Float gave me an error).  Any ideas?

 

Thanks,

Bruce

 

   Attribute (Power) {
      Value (Integer) {
         Min (0)
         Max (10)
         Increment (0.1)
         Display {
            Multiplier (1.000000)
            Offset (0.000000)
            Precision (3)
            Units (X)
         }
         Default (1)
         Current (1)
         Action (Serial) {
            Command (ENH:POWER %d\r)
            Response ()
         }
      }
   }

0 Kudos
Message 1 of 3
(3,296 Views)

Unfortunately fractional values are not supported in the camera file. The displayed value can be fractional, but the internal value used for serial commands or pulse generation must be an integer. Instead of trying to accomplish this in your camera file, you could also use the low level IMAQ Serial Write function to send the serial command programmatically.

 

Hope this helps,

Brad

0 Kudos
Message 2 of 3
(3,280 Views)

Thanks, I was hoping for a super-secret parameter that may enable this feature but I guess not.

 

Maybe IMAQ 4.4 will have this feature.  Smiley Wink

 

Bruce

Message Edited by bmoyer on 08-21-2009 02:44 PM
0 Kudos
Message 3 of 3
(3,274 Views)