473,385 Members | 1,396 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Reading a log from sensor

Hello forum,
I am working with a watchport Proximity sensor.
This sensor will logs an event, like ON or OFF into a text file which is on my application directory.
When it is ON i have to do something and OFF some otherthing.
While I am reading from that text file, I am getting an exception stating that
"The file cannnot be accessed since it is using by some other process."
Can any body help to solve this,
And also do any body worked on Sensors, please let me know as the requirement is urgent. please..
Sep 17 '07 #1
2 835
TRScheel
638 Expert 512MB
A read request should go through just fine even if another process is writing to it, perhaps you are requesting write permission?

Also, try copying the file, then reading the copy.
Sep 17 '07 #2
Plater
7,872 Expert 4TB
A read request should go through just fine even if another process is writing to it, perhaps you are requesting write permission?

Also, try copying the file, then reading the copy.
You can open files with read-locks as well, not sure how well its implemented as I've never had a use for it, but it's possible the file gets fully locked while another program has it open?
Sep 18 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

29
by: VooDoo | last post by:
Hi, I have a Temperature sensor with internal web server that provide the data in a text format. When quering the ip(ttp://192.168.10.220/temp) of the sensor i get that kind of reply: Probe...
5
by: Richard Follet | last post by:
Hi, I must read an HTML-free web page. The only documentation I have is this : : temp: This request will return an HTML-free web page, consisting of a simple ASCII string of pipe-delimited...
2
by: Laban | last post by:
Does anyone know how I can fetch a trigger/break signal via the serial-port? I have a circuit that connects two pins on the serial-port when the sensor is activated (when a person stands infront...
20
by: Levi Campbell | last post by:
Hi, I'm working on a random number generator using the internet as a way to gather entropy, I have two questions. 1. is there a way to capture the internet stream? 2. how would I skip every 2nd,...
6
by: Martin Adhie | last post by:
Hi Guys, I start to learn C++, because I got win API which interating with Fingerprint reader from Authentec, it comes with SDK and program samples. I just want to create application where by...
1
by: Shakira | last post by:
Hey... I am getting readings sent from a temperature sensor every second and want to know how to create a small database that continuosly updates the values and stores all the readings for future...
0
reddyprasanth
by: reddyprasanth | last post by:
Hi All, I am Doing a project to design an Electronic Voting System. All The Modules are finished and its working fine. Now i want to implement Finger print Sensor For the voting system.I am...
1
by: chmdamodar | last post by:
Hi, Do anybody have the "digi watchport/P sensor" API, if so, please let me know, as I am struggling for the last week and still contiuniung..
1
by: stoui | last post by:
Hi i`m new to the forum and i need some help regarding a project. I have some wireless motion sensors with usb receiver. I want to design a Visual Basic program (just a room) that when a sensor...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.