LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW and C#

Hi, I'm experiencing problems transferring strings between LabVIEW and
Microsoft Visual C#. I have a LabVIEW dll file which contains a method
returning a string. I use this method in C# (using the [DllImport] command),
but it doesn't seem to work. When I change the method to return an integer
instead, it works fine. So I'm really looking for a casting function or
something, to use LabVIEW strings in C#.

Anyone?

Cheers,
Aasmund
0 Kudos
Message 1 of 2
(2,499 Views)
Hi Aasmund,

you can take a look at this example:
http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B123AE0CB9B3111EE034080020E74861&p_node=DZ52048&p_submitted=N&p_rank=&p_answer=&p_source=External
That shows how to pass strings between LV DLL and Visual C++.
It might help.

Good luck,

Alberto
0 Kudos
Message 2 of 2
(2,499 Views)