예제 #1
0
 public void SetString(niRFSGProperties propertyId, string repeatedCapabilityOrChannel, string val)
 {
     PInvoke.TestForError(this._handle, PInvoke.SetAttributeViString(this._handle, repeatedCapabilityOrChannel, ((int)(propertyId)), val));
 }
예제 #2
0
 public void SetString(niRFSGProperties propertyId, string val)
 {
     this.SetString(propertyId, "", val);
 }
예제 #3
0
 public void SetDouble(niRFSGProperties propertyId, System.Double val)
 {
     this.SetDouble(propertyId, "", val);
 }
예제 #4
0
 public void SetInt32(niRFSGProperties propertyId, int val)
 {
     this.SetInt32(propertyId, "", val);
 }
예제 #5
0
 public void SetBoolean(niRFSGProperties propertyId, bool val)
 {
     this.SetBoolean(propertyId, "", val);
 }
예제 #6
0
 public void SetDouble(niRFSGProperties propertyId, string repeatedCapabilityOrChannel, System.Double val)
 {
     PInvoke.TestForError(this._handle, PInvoke.SetAttributeViReal64(this._handle, repeatedCapabilityOrChannel, ((int)(propertyId)), val));
 }
예제 #7
0
 public string GetString(niRFSGProperties propertyId)
 {
     return this.GetString(propertyId, "");
 }
예제 #8
0
 public void SetBoolean(niRFSGProperties propertyId, string repeatedCapabilityOrChannel, bool val)
 {
     PInvoke.TestForError(this._handle, PInvoke.SetAttributeViBoolean(this._handle, repeatedCapabilityOrChannel, ((int)(propertyId)), System.Convert.ToUInt16(val)));
 }
예제 #9
0
 public int GetInt32(niRFSGProperties propertyId)
 {
     return this.GetInt32(propertyId, "");
 }
예제 #10
0
 public string GetString(niRFSGProperties 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();
 }
예제 #11
0
 public int GetInt32(niRFSGProperties propertyId, string repeatedCapabilityOrChannel)
 {
     int val;
     PInvoke.TestForError(this._handle, PInvoke.GetAttributeViInt32(this._handle, repeatedCapabilityOrChannel, ((int)(propertyId)), out val));
     return val;
 }
예제 #12
0
 public System.Double GetDouble(niRFSGProperties propertyId)
 {
     return this.GetDouble(propertyId, "");
 }
예제 #13
0
 public System.Double GetDouble(niRFSGProperties propertyId, string repeatedCapabilityOrChannel)
 {
     System.Double val;
     PInvoke.TestForError(this._handle, PInvoke.GetAttributeViReal64(this._handle, repeatedCapabilityOrChannel, ((int)(propertyId)), out val));
     return val;
 }
예제 #14
0
 public bool GetBoolean(niRFSGProperties propertyId)
 {
     return this.GetBoolean(propertyId, "");
 }
예제 #15
0
 public bool GetBoolean(niRFSGProperties propertyId, string repeatedCapabilityOrChannel)
 {
     System.UInt16 val;
     PInvoke.TestForError(this._handle, PInvoke.GetAttributeViBoolean(this._handle, repeatedCapabilityOrChannel, ((int)(propertyId)), out val));
     return System.Convert.ToBoolean(val);
 }