title: How can I get return values from C# .DLLs in LabVIEW 2012?
body: <p>I'm currently working on exporting a .DLL library file in C# in Visual Studio 2010 to LabVIEW 2012. The class does a color transform from RGB to HSL values, and I've been successful in implementing Constructor and Invoke nodes in the LabVIEW project to call the .DLL file.</p>
  
  <p>So far I can input numbers for the RGB values into the Invoke node, but I'm having trouble getting HSL output values; the option doesn't appear in the drop-down box for the node.</p>
  
  <p>I'm relatively fresh to C# (and programming in general) and I think I've spotted where the input function is in the .DLL, but as for the output function I've no clue how to generate it, much less in such a way that LabVIEW can export it cleanly. I figure if I can input values, I should be able to get those HSL outputs as well.</p>
  
  <p>Below is the C# code snippet in question. The rest of the class is the formula for the transform itself, so I don't think it's too relevant.</p>
  
  <pre><code>public class QuickColorTransform
  {
      byte _R;
      byte _G;
      byte _B;
  
      byte _H;
  
      public byte H
      {
          get { return _H; }
          set { _H = value; }
      }
      byte _S;
  
      public byte S
      {
          get { return _S; }
          set { _S = value; }
      }
      byte _L;
  
      public byte L
      {
          get { return _L; }
          set { _L = value; }
      }
  
      public QuickColorTransform()
      {
          SetupLookups();
      }
  
      public void SetColor(byte Red, byte Green, byte Blue)
      {
          _R = Red;
          _G = Green;
          _B = Blue;
          Transform();
      }
  
      public void SetColor(Color ColorIn)
      {
          _R = ColorIn.R;
          _G = ColorIn.G;
          _B = ColorIn.B;
          Transform();
      }
  }
  </code></pre>
  
  <p>Thanks in advance!</p>