LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to write fille inside Dll

I created one Vi which will write into the data log file. I built the exe for the same vi. now i am calling created dll to another vi. that mean, 

i am trying to write data log file inside the dll. i have given constant path "i.e  C:\xxx" and tried to write the data the file but dll is giving me error as below

 

" Error 1097 occurred at Call Library Function Node in Untitled 1

Possible reason(s):

LabVIEW:  An exception occurred within the external code called by a Call Library Function Node. The exception may have corrupted LabVIEW's memory. Save any work to a new location and restart LabVIEW.

 

so is it possible to write the file inside the dll?.

 

 

0 Kudos
Message 1 of 4
(2,894 Views)

Hi Rajesh

 

Yes, It is possible to write file inside the dll

I am able to write file inside a DLL. It isnt giving me any error. I have tried this out with a text file and a datalog file. I have created a simple file, with the path as an input parameter, and the text as another input parameter.

I'm calling this in another LabVIEW VI. This creates the file with the expected data in it.

 

Vishal

Applications Engineer

National Instruments

0 Kudos
Message 2 of 4
(2,864 Views)

Here i am giving constant file path inside the dll. still it is giving me error. could you please send me any code example vi.

0 Kudos
Message 3 of 4
(2,860 Views)
The error you are getting is often caused by not using the correct datatypes in the parameters you are passing. Why don't you post your code. Include the calling VI, the subVI, the dll, and the .h file.
0 Kudos
Message 4 of 4
(2,851 Views)