LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read write problem

I may have posted similar issue before. Nevertheless, here it is again.
 
I made an exe using 8.2.1 and ran it for some time. Then I reverted back to the original exe (backup exe) that was in 7.1. Now the original exe in 7.1 does not read/write properly. Also there seems to be a problem populating the variables (the system reads the variables from text files on the network).
 
Please help!
 
BK
0 Kudos
Message 1 of 6
(3,396 Views)
Hi Kenjale,

any more informations?
Did you change the program (or change the file format)? What do you mean by "there seems to be a problem populating the variables"?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(3,370 Views)
Can you be more specific when you say that the executable in 7.1 doess not read/write properly?  What is it doing differently?  Also, could you elaborate on the behavoir of your variables?  Thanks!
0 Kudos
Message 3 of 6
(3,336 Views)

ok, this is the background. I had an exe made in 7.1 sometime in feb 07. I made another exe using the same source files (with my new modifications). The new exe did not give desired results. So, I reverted back to the old feb 07 exe. When I launched it, certain part of the code is not working (especially the read/write part).

The top-level VI in the exe is designed to read data from text files (stored in the network drive) and then initialize the variables accordingly with that data. I dont think that is happening and hence some calculations in the VI are yielding no result. I dont understand why reverting back to the old exe should not solve the problem.

0 Kudos
Message 4 of 6
(3,328 Views)
Hi Kenjale,

from your description we still can only guess what happened...

My assumption: your modified exe has changed the text files in a way the older exe can't understand - that's why it seems to have problems with reading the file.
Or did the path to the file change?

Possible solution:
Get back the sources of your Feb07-exe. Wire in some error checking!!! Bring up message boxes when an error occurs!!! It's no good programming when an exe doesn't find files (or can't read them) and don't claim about this fact to the user...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 6
(3,308 Views)
Are you remembering that LabVIEW finds files differently if the program is an executable?  The attached VI might help.
0 Kudos
Message 6 of 6
(3,263 Views)