02-04-2009 10:19 AM
Hi,
I have written a program in labview which does some particle analysis on an image. I have written a some C and compliled it as a dll to save a 2D array as a text file. (I used this this tutorial: http://decibel.ni.com/content/docs/DOC-1690).
This works fine until I transfer the program to another computer (it seems to want some other dll file associated with visual studio, which this other PC doesn't have).
I there an easier why to do this without using a dll file? I have attached the .vi file and the c code i was using. The .vi uses a black bmp image with white circles on it.
Thanks,
Jack
02-04-2009 10:24 AM
Hi Jack,
Use the LabVIEW File I/O functions to write the data to file. From what I see in your C code you write the data in text format. "Format into File" is very similar to the C fprintf function you're using.
Check the LabVIEW help/examples for more information.
Hope this helps,
Daniel
02-04-2009 10:31 AM
Ok thanks, I'll have a play. One of the reasons I did it in C in the first place was because I couldn't work out how to extract individual elements of the array and print them to the file individually (so I had some control over the formatting).
Cheers,
Jack
02-04-2009 10:38 AM
Well then you should learn some LabVIEW basics first ![]()
Good luck!
Daniel
02-04-2009 01:03 PM - edited 02-04-2009 01:04 PM
bluefocs wrote:... I couldn't work out how to extract individual elements of the array and print them to the file individually
You could use the Index Array function :
02-05-2009 03:09 AM
What are the names of the 2nd and 3rd yollowish blocks? Can't find them at the moment.
02-05-2009 04:32 AM