コード例 #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);
 }