Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to output data to a file in SCC-SG04?

I am using SCC-2345 with SCC-SG04 connected to NI-6221 in Windows 2000 in VC6.
How to output data to a file like data1.dat in VC6 or in Labwindows/CVI?
0 Kudos
Message 1 of 2
(2,475 Views)
Hello mwibm,

If you just want to do file input/output in LabWindows/CVI, I would take a look at the Formatting and I/O CVI library or the ANSI File I/O functions. For example, if you just want to write an array of data to a file, I would look at the ArrayToFile function or the fwrite/fputs/fprintf ANSI C functions included in stdio.h. The ANSI C functions will also work in Visual Studio. More information on the LabWindows/CVI File I/O functions can be found in CVI help, and more information on ANSI C functions can be found in CVI Help and online at various websites.

Maybe you could further clarify what problems you are having and what kind of data you want to write to a file.

Thanks.
0 Kudos
Message 2 of 2
(2,465 Views)