LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to find where is vi "writing" to the file?

basically this vi works fine if the file i'm inputting has "write" access, but the server where it reads from is only limited to "read" access. i have to manually copy the files to my computer then vi works fine. the vi though, from what i am told, never actually "writies" to the file, but it won't work unless it has "write" access. anyone have any suggestions where to start? i would post some code, but it's wayyyy too big/long. if it's really necessary though please tell
0 Kudos
Message 1 of 6
(3,103 Views)
See where the code opens the file and change the mode to readonly. (Maybe you can find it more easily in the VI hierarchy instead of the diagram.)
 
The exact procedure will depend on the file I/O tools used (e.g. low-level vs. high-level functions).
0 Kudos
Message 2 of 6
(3,097 Views)
how do you set the mode as readonly? attached is the hierarchy that eventually leads the circled vi to a readfile vi that is also attached...hope it helps

//EDIT: added an opencreatereplace vi that is also used later in hierarchy. there are also 2 other readfile vi's (one is [SGL] and one is (string)) that is later called. i don't know why there are so many

Message Edited by unknown00 on 06-07-2007 11:36 AM

Message Edited by unknown00 on 06-07-2007 11:37 AM

Download All
0 Kudos
Message 3 of 6
(3,089 Views)

See where it calls "open_create_replace" and right-click on the "function" terminal and right-click...select "create constant". You'll get an enum diagram constant.

Select "Open (read only)". Save the changes. See if this helps. 😉

0 Kudos
Message 4 of 6
(3,079 Views)
wow works great thanks! one last quick question- do you know how to convert a dll library into a exe?
0 Kudos
Message 5 of 6
(3,070 Views)
nvm found out how and built it! just have to do a lot of testing on other computers after lunch .thanks again for your help. let me know if you need anything! lol
0 Kudos
Message 6 of 6
(3,062 Views)