LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I use win32 dll function within my cin code

I was using labview to develop a measuring project.I created a standard cin code which was loaded into code node to complete data analyse task.Within cin code,I used several win32 dll functions,the program crashed.I felt confused.
0 Kudos
Message 1 of 3
(2,718 Views)
Sunny,

You need to submit this to NI with details. This is a very complicated task. We have had some experience in this realm, but can only suggest that you talk with NI about this.

The only other thing I can suggest is to use a dll instead of a CIN node. If you do, be sure that all of your code is thread safe (dll's by default use the UI thread, a very bad thing when embedding dlls in dlls.)

Good luck
0 Kudos
Message 2 of 3
(2,718 Views)
> I was using labview to develop a measuring project.I created a
> standard cin code which was loaded into code node to complete data
> analyse task.Within cin code,I used several win32 dll functions,the
> program crashed.I felt confused.
>

You should try to build your CIN with debugging information, and if this
proves difficult, build a DLL instead. Then place a breakpoint inside
your source code and call it from LV. This allows you to track down the
crash. I do not see anything obviously wrong in your code, but I didn't
make a proof that it is correct either. That is what debuggers are for.

Greg McKaskle
0 Kudos
Message 3 of 3
(2,718 Views)