LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Deleting files on LabVIEW RT 2009 via LabWindows/CVI RT / linker error "Undefined symbol '_GetFirstFile@32'"

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

0 Kudos
Message 1 of 4
(3,626 Views)

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

 

 

 

0 Kudos
Message 2 of 4
(3,591 Views)

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

 

 

0 Kudos
Message 3 of 4
(3,581 Views)

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

0 Kudos
Message 4 of 4
(3,544 Views)