10-15-2010 02:41 AM
LabWindows/CVI supports the file utility library functions GetFirstFile, GetNextFile, DeleteFile which I want do use to delete multiple files in a directory on a PC running LabVIEW Real-Time 9.0. However when I compile my files for realtime I get linker errors like "Undefined symbol '_GetFirstFile@32'". It seems the functions are not in the realtime lib file. How can I solve this? Are there other functions I can use to delete the files.
Thx in advance for your help,
Fabian
10-19-2010 07:40 AM
Hello Neutronensturm,
the "GetFirstFile"-Function is not included in the Realtime Utility Library, thus I think it can´t be used on a RT-Target.
I will double check with our R&D and tell you the result.
regards
Marco Brauner NIG
10-19-2010 10:42 AM
Hello Fabian,
Although there are quite a few Utility Library functions that you can use in real-time applications, GetFirstFile is not one of them. You should take a look at the following online help topics to see which functions you can use in real-time targets:
LabWindows/CVI Real-Time Module Help>>Creating Real-Time Applcations>>Configuring an RT Application>>Using LabWindows/CVI Libraries in RT Applications
LabWindows/CVI Real-Time Module Help>>Creating Real-Time Applcations>>Configuring an RT Application>>LabWindows/CVI Functions Supported in RT Applications
As a workaround, you can use the FindFirstFile and FindNextFile Win32 functions, which perform a similar function.
Luis
10-22-2010 07:05 AM
Hello Fabian,
as a conclusion, I can tell you that the GetFirstFile- and GetNextFile-functions are not part of the RT-library.
I also read that you can link in windows.h with the FindFirstFile and FindNextFile Win32 functions on an ETS-Target (Which your RT-PC is),
but I have not tested it.
Marco Brauner NIG