Example #1
0
 public void SetString(agn934xniProperties propertyId, string val)
 {
     this.SetString(propertyId, "", val);
 }
Example #2
0
 public void SetInt32(agn934xniProperties propertyId, int val)
 {
     this.SetInt32(propertyId, "", val);
 }
Example #3
0
 public void SetString(agn934xniProperties propertyId, string repeatedCapabilityOrChannel, string val)
 {
     PInvoke.TestForError(this._handle, PInvoke.SetAttributeViString(this._handle, repeatedCapabilityOrChannel, ((int)(propertyId)), val));
 }
Example #4
0
 public void SetBoolean(agn934xniProperties propertyId, bool val)
 {
     this.SetBoolean(propertyId, "", val);
 }
Example #5
0
 public void SetDouble(agn934xniProperties propertyId, double val)
 {
     this.SetDouble(propertyId, "", val);
 }
Example #6
0
 public string GetString(agn934xniProperties propertyId)
 {
     return this.GetString(propertyId, "");
 }
Example #7
0
 public void SetBoolean(agn934xniProperties propertyId, string repeatedCapabilityOrChannel, bool val)
 {
     PInvoke.TestForError(this._handle, PInvoke.SetAttributeViBoolean(this._handle, repeatedCapabilityOrChannel, ((int)(propertyId)), System.Convert.ToUInt16(val)));
 }
Example #8
0
 public int GetInt32(agn934xniProperties propertyId)
 {
     return this.GetInt32(propertyId, "");
 }
Example #9
0
 public string GetString(agn934xniProperties propertyId, string repeatedCapabilityOrChannel)
 {
     System.Text.StringBuilder newVal = new System.Text.StringBuilder(512);
     int size = PInvoke.GetAttributeViString(this._handle, repeatedCapabilityOrChannel, ((int)(propertyId)), 512, newVal);
     if ((size < 0))
     {
         PInvoke.ThrowError(this._handle, size);
     }
     else
     {
         if ((size > 0))
         {
             newVal.Capacity = size;
             PInvoke.TestForError(this._handle, PInvoke.GetAttributeViString(this._handle, repeatedCapabilityOrChannel, ((int)(propertyId)), size, newVal));
         }
     }
     return newVal.ToString();
 }
Example #10
0
 public int GetInt32(agn934xniProperties propertyId, string repeatedCapabilityOrChannel)
 {
     int val;
     PInvoke.TestForError(this._handle, PInvoke.GetAttributeViInt32(this._handle, repeatedCapabilityOrChannel, ((int)(propertyId)), out val));
     return val;
 }
Example #11
0
 public double GetDouble(agn934xniProperties propertyId)
 {
     return this.GetDouble(propertyId, "");
 }
Example #12
0
 public double GetDouble(agn934xniProperties propertyId, string repeatedCapabilityOrChannel)
 {
     double val;
     PInvoke.TestForError(this._handle, PInvoke.GetAttributeViReal64(this._handle, repeatedCapabilityOrChannel, ((int)(propertyId)), out val));
     return val;
 }
Example #13
0
 public bool GetBoolean(agn934xniProperties propertyId)
 {
     return this.GetBoolean(propertyId, "");
 }
Example #14
0
 public bool GetBoolean(agn934xniProperties propertyId, string repeatedCapabilityOrChannel)
 {
     ushort val;
     PInvoke.TestForError(this._handle, PInvoke.GetAttributeViBoolean(this._handle, repeatedCapabilityOrChannel, ((int)(propertyId)), out val));
     return System.Convert.ToBoolean(val);
 }