This widget could not be displayed.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using a Property node to ensure i have an admin log in and password.

Solved!
Go to solution

Hi Guys. Im doing a project and seem to be having some issues setting up a username and password using a property node. I have no problem getting a username and password set up to allow access but my project requires me to do it through a property node...... The project reads: 

 

Use a start button to start this program running.

Use a property node to ensure the user is logged in as admin and

Use a password to check if both username and password are entered correctly.

The property node will be used to ensure the Start button is visible – or not.

Create a 2d array of Temperature readings (24/7). Simulating the data for 24 hours and 7 days

Output this to a waveform chart..........

 

As you can see from my VI, I have the start button in place but i am struggling to find any literature or help on using a property node for what im trying to achieve. If anybody could point me in the right direction. I would really apricate it.

0 Kudos
Message 1 of 4
(523 Views)
Solution
Accepted by topic author EDiddle

Kyle97330_0-1712183347087.png

 

 

Probably just get the "User Name" property from an App property node and check to see that it equals "admin"?

0 Kudos
Message 2 of 4
(515 Views)

@EDiddle wrote:

Use a property node to ensure the user is logged in as admin and


I recommend to do a few more basic tutorials before even attempting whatever you are trying to do.

There is a difference if the logged in "OS user" has admin privileges or is named "admin". It is also not clear of you are creating a users system for your app or you are actually talking about the OS user account.

 

Your code shows a complete lack of even beginner skills. This needs to be implemented as a proper state machine.

 

altenbach_0-1712188285450.png

 

 

  • An event structure belongs into a toplevel while loop and you need to be careful about event configurations, for example (by default) your UI would lock up forever if the start button is be pressed a second time later.
  • Autoindexing at a while loop boundary is dangerous, because (1) eventually you'll run out of memory and (2) all data is lost if the VI is aborted.
  • You talk about a 2D array of readings, but there is no 2D array anywhere in sight. Where is the chart you mentioned?
  • Recording temperatures 24/7 probably required saving to disk at regular intervals.
  • You can use a "visible" property node to hide the start button or a "disabled" property to disable and grey it out unless the user is authenticated. Disabling is clearer to the user because he can tell that there actually is a button but it can currently not be operated.
  • I don't understand the use of a property node to authentical a user. A property seems quite useless for that.
  • I think we told you elsewhere how do do a running average correctly. Temperature reading typically don't have a lot of noise, so why do you think you need to average at all? There are other ways to filter.
  • Why is the current reading not part of the average? Are you aware that the first 10 averages are incorrect?
0 Kudos
Message 3 of 4
(475 Views)

Hi Altenbach. Thank you for your reply. Yes you are correct. I am a beginner and really trying to learn. Could you please point me in the right direction of the tutorials you have mentioned as i would like to take your advice before attempting to proceed any further. 

 

Regards, Enda

0 Kudos
Message 4 of 4
(383 Views)