09-01-2014 01:19 AM
Dear great master
I haved been consfused by a problem deeply.
Why a csv file if already open can be detected by mannually. can't be detected by program automatically.
I verify this phenomenon by below procedure:
First:
Execute <simple_ErrCode_modify_by_NI2.vi> at both computer respectively.then open csv file mannually,thus two programs both can detect the csv file already
open. also can enter case5 and wait case5's loop.
Second:
Compare with First produre.firstly,execute <simple_ErrCode_modify_open_csv_atloop1.vi> in one computer , Adding while loop after open/creat/replace file ,thus
can maintain csv file open all the time.
secondly,execute <simple_ErrCode_modify_by_NI2.vi> in the other computer.I find that <simple_ErrCode_modify_by_NI2.vi> cann't enter case5.
Through above,
I confused that why program can detect csv file already open by mannually.
cann't detect csv file already open by the other pragram open.
Why have thus two kinds of mechanism in labview .
Can who great master help me and answer me .
mentioned program attached.
Thanks earnestly.
09-01-2014 09:42 PM
09-01-2014 10:06 PM - edited 09-01-2014 10:17 PM
Why are you re-posting this question?
09-02-2014 03:10 AM
Dear mikeporter
thanks for you help kindly.
Just as you said ,
When a program requests and get exclusive access to a file, no other process can open it for any reason.
According to your mention.
I have realize the function .
Thanks