Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

"The type 'LVBaseRefnum' is defined in assembly that is not referenced" error

Hi. I am trying to run a LabView VI from C# form application. I followed some steps from a blog to do it but I am getting the error called "The type 'LVBaseRefnum' is defined in assembly that is not referenced". Only difference between my app and the blog is I need to get string value from user. I believe that the error is caused because of the this. I only added "using InteropAssembly" to References section. Screenshot of prototype of source files has been attached and my c# code is follow:

 

private void button1_Click(object sender, EventArgs e)
{
this.pictureBox1 = null;
this.pictureBox2 = null;
string text = this.textBox1.ToString();

LabVIEWExports.main(text, out Image img1, out Image img2);

this.pictureBox1.Image = img1;
this.pictureBox2.Image = img2;

}

 

 

 

0 Kudos
Message 1 of 1
(246 Views)