Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

lock interface file

Hello all,

NI-IMAQ uses an interface (iid) for defining an attached interface and it uses an camera file (icd) to describe the attached camera.
When playing (some call it work) with Measurement&Automation, I seem to change interactive the camera that is referred to in the iid-file.

I want to store an iid-file so that its content does not change when somebody is playing with Measurement&Automation.
When I - obviously - make the file Read-Only, Measurement&Automation gives an error that the iid-file could not be found (0xBFF600E0).
How can I store iid-files so that the content is locked (unless saved on purpose) ?

Regards, Jos


0 Kudos
Message 1 of 5
(3,949 Views)

Hello Jos,

I did some searching on this issue but could not come up with something right away. I have to check if this is possible and get back to you if you can lock it and how.

Regards,

RikP - National Instruments Applications Engineering
 

 

Rik Prins, CLA, CLED
Software Development Engineer
0 Kudos
Message 2 of 5
(3,931 Views)

Already thanks !

I will keep waiting (im-) patiently for your next post.

 

Jos

 

 

0 Kudos
Message 3 of 5
(3,928 Views)
Could you possibly make a copy of the iid file with settings you want, then copy it back whenever your program starts up?
 
Bruce
Bruce Ammons
Ammons Engineering
0 Kudos
Message 4 of 5
(3,912 Views)

Hello Bruce,

 

Nice idea. And it will work fine if I take the liberty to overrule all other users.

However I am only preparing the system so that it becomes - more - easy to use for all other legitimate users. And they also are allowed to change the contents of the iid-file if needed. So this particular solution will work if I make a step-by-step procedure for those users with the location of the master file and how to change it. But you probably also know that nobody reads procedures. Worth while to try the idea and it will work, but .... ....

I prefer a solution where people have to save the iid-file knowingly. And with/without a warning popup if they try something irregulars. Or file locking (ReadOnly) and a warning when they try to save the file without unlocking. Or even the possibility to fix (another) iid-file as default in Measurement&Automation so the possibility for change in the non-default iid-files becomes smaller.

Thanks anyway !

 

Regards, Jos

 

 

0 Kudos
Message 5 of 5
(3,904 Views)