LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read config file conflict

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

0 Kudos
Message 1 of 3
(2,752 Views)

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...
Message Edited by richjoh on 10-23-2008 10:37 AM

 

You could remove the config file and probe what the error looks like (i.e. file missing...) to be sure the issue is handled

Message Edited by richjoh on 10-23-2008 10:40 AM
0 Kudos
Message 2 of 3
(2,746 Views)

Hi murali,

 

as long as you set file access to "read only" no problems will occure - several programs can read the same file.

Problems will only arise when one program will start using read and write access!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 3
(2,732 Views)