LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"set rights" serial port windows

It probably depends what you mean by configuring serial ports. If it is about reassigining COM names, disabling ports and reenumerating  the ports in the Find New Hardware Wizard or similar operation, I'm pretty sure you can't change much to not require (local) Administrator rights for this. It is after all a hardware resource of the computer and any IT guy would scream out loud if his "not to be trusted" computer users could install and reconfigure their computer at will.

If it is about things like baudrate and such you can actually better do this from inside your application though VISA. The settings in the OS configuration are only default settings with which the port is openend. VISA has another set of default settings which it will apply automatically whenever it opens a port and your application can overwrite the current settings by using VISA property nodes. This makes sure the user can configure the serial port where they actually know they are using it and not in some unrelated other place in the system.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 11 of 14
(979 Views)
Hi Rolf,

I do not want to do anything with MAX. I just want
to change e.g. bit rate via VISA property nodes.
And I'm quite sure you can set the rights, e.g.
with a cryptic registry entry or something else.

Regards, Stefan
0 Kudos
Message 12 of 14
(973 Views)
Then I'm not sure what the problem might be. The majority of my programs use VISA to set the serial port properties and all of them work with just user privileges.
0 Kudos
Message 13 of 14
(969 Views)

Hi Dennis,

sorry I don't know what it was. In the beginning, after installation of LV 6.0.2 I had
a lot of problems to work as normal user on my XP-machine and to select a visa
resource or to configure it, with the compiled application and also with the VI.

This morning I wanted to make some screen shots of the error-messages, but failed. 🙂

Perhaps it is important not only to have the rights to change files in the NI-directories,
but to have the full privileges on the directories.

For now: Sorry, that I can not reproduce the error messages.

But one little thing remains that is confusing, when I connect a VISA control with the
sub VI, there is an error and when I use the context menu "create control" on the
same port of the sub VI everything is fine. I can not see the difference in the controls,
both are VISA-controls.

Regards, Stefan

0 Kudos
Message 14 of 14
(952 Views)