From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
09-18-2007 02:13 PM
09-18-2007 02:51 PM
09-18-2007 03:01 PM
This may be lower level than you were looking for. As already mentioned, the big problem may be having two applications accessing the file simultaneously.
Jim
09-19-2007 11:42 AM
09-19-2007 12:03 PM
02-06-2020 11:26 AM
I have the same problem, has this been solved?
I've tried a combination of Open File, Set File Position and Read from Binary File, but there are permission and other issues.
02-06-2020 11:54 AM - edited 02-06-2020 11:57 AM
You just revived an ancient thread!
What are the permission issues? Is the file already open elsewhere? Can you elaborate on "other issues"?
We need significantly more detail. Show us some code!
02-07-2020 04:01 AM
I've attached a stripped-down program. I managed to fix the file permission, but it still doesn't do what I want it to, which is to show me different frames in a raw video. It's not letting me attach a data file unfortunately, but when I run it I get different values for the two refnums, so I think it's setting the file position in the first frame of the stacked sequence and then opening a new file in the second one in every iteration of the while loop.
02-07-2020 06:59 AM
ayscr,
You're opening the file and setting the position in the first frame, but you're not using that refnum for the read. Get rid of the stacked sequence and use the refnum from the file you just opened to feed to Read from Binary File. Also, use shift registers or a feedback node to hold your refnum until the next iteration instead of using a local variable. Open and close the file outside the loop. I've attached an update of your stripped down program as an example.
02-07-2020 07:32 AM - edited 02-07-2020 07:37 AM
Hi johntrich,
Would you mind posting pictures of your code? I have an older version of Labview (2011) and can't open this.
P.S.: It sounds like your version of Labview allows you to feed a refnum into the Read From Binary File function, which mine doesn't - I think this might be the problem for me, but I can't update it.