LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DataSocket and Password

Hi,

 

I am using DataSocket (dstp protocol) to connect two VIs remotely and send/receive data. Now I need to incorportate username/password to the project. The user should enter the correct username and password to be able to send data using DataSocket.

Does DataSocket inherently support this? if not, what do you suggest ?

 

Thanks! 

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

I don't believe datasocket would have any password protection built into it.

 

What you should do is put the password protection into your VI.  Have your VI ask the user for a password.  If it is valid, then your VI will allow data to be sent to the datasocket.  If it is invalid, then your VI will not send data because you would have placed the datasocket calls into the True case of case structures.

0 Kudos
Message 2 of 3
(2,295 Views)
The only other alternative is to drop the datasockets and implement you own protocol using the tcp/ip interface VIs. This would be a more complex solution, but in the long run it might be more satisfying, and far more flexible.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 3
(2,288 Views)