10-23-2008 10:15 AM
I have a config file which is put on a network drive.I have 2 test systems running parallely.(both uses same vi's)
The program uses a Read from binary file to read the test setup.
Since these are 2 individual test systems,it may happen at some instant of time,read from binary may happen simultaneously.
if this scenario happens,will it throw any error?
one thing im sure about is,definetly there will be no write happening when file is in use.im only concerned abt read operation.
If labview handles automatically,then it's fine.otherwise can i know the error code which it will provide for simultanoeus file read.
so that in case if this read conflict happens,i can check the error code and make it read again.
Thanks
Murali
10-23-2008 10:30 AM - edited 10-23-2008 10:40 AM
the vi (say readmydata.vi) that does the read file can only run one instant (only exception is if its a reantrant vi). Mulitple loops on your block diagram should have no issues since the vi runs one instance at a time.
If your not using a subVI (to read the file) and have 2 copies of the tools pallette read function on your block diagram well that could be a problem...
I guess the 2 test systems are 2 different PC so I think this is not an issue, since the server (where the config file is) will serve both PC...
You could remove the config file and probe what the error looks like (i.e. file missing...) to be sure the issue is handled
10-23-2008 11:08 AM