LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.net example LabVIEW code from Sample C code

hi there,

 

I have some MS Vicual C code that uses .Net that I wish to translate into LabVIEW code.

 

I have had some success in finding the various .Net objects but I have no sense in programming flow.

 

I guess this si because I am not so familiar with .Net progamming that I do not know when to us what LabVIEW method or contructor 

to create objects etc.

 

I managed to work my way through ActiveX COM translation to LabVIEW a whiel back so I thought I could learn on the fly with .NEt

but I seem alittle lost.

 

IS there a good tutorial that as  .Net  example code in C syntax and then the exact code in LabVIEW syntax.

 

Or if it is not too much work, I can supply a snippet of the example code I have that i wish to convert and have someone here show me the labVIEW equivalent.

 

many thanks

michael

0 Kudos
Message 1 of 4
(2,652 Views)

There is no tutorial for that as far as I know. Usually, though it's not that hard to do, since .NET code (and any text-based language code for that matter) is quite linear. In fact, if you've done translation of code that uses ActiveX, converting .NET is not really that much different. There have been examples posted in this forum of .NET code and their LabVIEW equivalent. DId you search?

 

You mentioned you have MS VIsual C code. That's not necessarily .NET code. Are you sure it's .NET code? A Visual C program is not, by default, .NET. You can provide a snippet of the code. At the very least someone can tell you if it's actually .NET.

 

0 Kudos
Message 2 of 4
(2,642 Views)
Many thanks for your reply. I did search. I guess I need to search more.

The code is definitly .net.
Is the startung point always a constructor or is it ref number control or constant linked to the drsired lubrary as in ActiveX.
0 Kudos
Message 3 of 4
(2,639 Views)

The starting point is a constructor unless you are dealing with a static method or property. Static methods and properties are tied to the class, not the specific instance of the class (i.e., the created object).

0 Kudos
Message 4 of 4
(2,634 Views)