07-02-2012 09:39 AM
Hello every one
I am developing a labview application using USB cDAQ 9174 and I would like to block the access to my hardware, so the only way to use the hardware is thru my labview application. Is there any tool or way to protect the hardware?
Solved! Go to Solution.
07-02-2012 12:59 PM
What exactly are you trying to accomplish?
To the DAQmx driver, your LabVIEW application is no more special than any other usermode application (such as MAX, or a DAQ application written in ANSI C).
There's no way to restrict usage of the device to only your application. The driver will restrict access to resources so that multiple applications cannot use them simultaneously-- for example, if you have one application with a DAQmx task that is using a particular channel, no other application can create a task that uses that same channel while the first is running. There is, however, no way to prevent an application from performing a DAQmx Reset Device call... but then again we can't prevent an 'unauthorized' user from unplugging the cable or removing modules from your USB cDAQ either.
07-03-2012 01:40 PM
Thank you for your response.
What I am trying to do is restrict the use of my hardware, I want the user to HAVE TO use my application in order for the hardware to work. I want the hardware to be "locked" or "protected".
I understand that can not be accomplished directly, but perhaps an alternative way to do it exist?
07-03-2012 02:26 PM
What are you trying to prevent?
Are you concerned about someone using a different cDAQ-9174 than the one you expected? You *can* actually do something about that; your application can check the 9174's serial number and make sure it's on a whitelist.
Are you concerned about someone removing the cDAQ-9174 from your system and using it with some other application? If that's a possibility, you should be more concerned about the physical security of the system in general-- perhaps you need to do things like physically coupling the 9174 to your computer via screws, epoxy, or similar. (Don't forget you'll need to do so with the USB cable too.)
A user of your system installing some other application that could also be used to access devices in the cDAQ-9174? You should be more concerned about things like user permissions in Windows (and should consider setting up things like Software Restriction Policies), denying access to mass storage devices and network connections, etc.
07-05-2012 08:58 AM
I am concerned about someone installing a new application in my system and then could use my DAQ for new installed application.
I think that can be prevented setting the permissions in windows.