Asked — Edited
Resolved Resolved by thetechguru!

What Is Difference Between Nud&Amp; Trackpad

I am making a c# program of my Revolution Six. After seeing this line from another projectasa reference(I know it is something to do with the digital ports on the EZBv4), private void Form1_Load(object sender, EventArgs e) {

  ezB_Connect1.Port = "127.0.0.1:6666";
    
  nud_D0.Value = EZ_B.Servo.SERVO_MIN;
  nud_D0.Minimum = 0;
  nud_D0.Maximum = EZ_B.Servo.SERVO_MAX;

  nud_D1.Value = EZ_B.Servo.SERVO_MIN;
  nud_D1.Minimum = 0;
  nud_D1.Maximum = EZ_B.Servo.SERVO_MAX;

  //trackBar_D2.Value = EZ_B.Servo.SERVO_MIN;
  //trackBar_D2.Minimum = 0;
  //trackBar_D2.Maximum = EZ_B.Servo.SERVO_MAX;

  trackBar_D3.Value = EZ_B.Servo.SERVO_MIN;
  trackBar_D3.Minimum = 0;
  trackBar_D3.Maximum = EZ_B.Servo.SERVO_MAX;

  nud_D4.Value = EZ_B.Servo.SERVO_MIN;
  nud_D4.Minimum = 0;
  nud_D4.Maximum = EZ_B.Servo.SERVO_MAX;

  //nud_D5.Value = EZ_B.Servo.SERVO_MIN;
  //nud_D5.Minimum = 0;
  //nud_D5.Maximum = EZ_B.Servo.SERVO_MAX;

  nud_D6.Value = EZ_B.Servo.SERVO_MIN;
  nud_D6.Minimum = 0;
  nud_D6.Maximum = EZ_B.Servo.SERVO_MAX;

  nud_D7.Value = EZ_B.Servo.SERVO_MIN;
  nud_D7.Minimum = 0;
  nud_D7.Maximum = EZ_B.Servo.SERVO_MAX;

  //nud_D8.Value = EZ_B.Servo.SERVO_MIN;
  //nud_D8.Minimum = 0;
  //nud_D8.Maximum = EZ_B.Servo.SERVO_MAX;

  nud_D9.Value = EZ_B.Servo.SERVO_MIN;
  nud_D9.Minimum = 0;
  nud_D9.Maximum = EZ_B.Servo.SERVO_MAX;

  trackBar_D12.Value = EZ_B.Servo.SERVO_MIN;
  trackBar_D12.Minimum = 0;
  trackBar_D12.Maximum = EZ_B.Servo.SERVO_MAX;

  trackBar_D13.Value = EZ_B.Servo.SERVO_MIN;
  trackBar_D13.Minimum = 0;
  trackBar_D13.Maximum = EZ_B.Servo.SERVO_MAX;

  nud_D14.Value = EZ_B.Servo.SERVO_MIN;
  nud_D14.Minimum = 0;
  nud_D14.Maximum = EZ_B.Servo.SERVO_MAX;

  trackBar_D16.Value = EZ_B.Servo.SERVO_MIN;
  trackBar_D16.Minimum = 0;
  trackBar_D16.Maximum = EZ_B.Servo.SERVO_MAX;

  trackBar_D17.Value = EZ_B.Servo.SERVO_MIN;
  trackBar_D17.Minimum = 0;
  trackBar_D17.Maximum = EZ_B.Servo.SERVO_MAX;

  nud_D18.Value = EZ_B.Servo.SERVO_MIN;
  nud_D18.Minimum = 0;
  nud_D18.Maximum = EZ_B.Servo.SERVO_MAX;

What does it mean and what is the difference between nud & trackbar?


ARC Pro

Upgrade to ARC Pro

Stay at the forefront of robot programming innovation with ARC Pro, ensuring your robot is always equipped with the latest advancements.

#9  

Alan, in fact I did the c# program a month ago before I thanked u.

PRO
Synthiam
#10  

When programming, there is something called "variables". A variable is a placeholder for an object of information. In this case, the question is what is a NUD? Well, the answer is a NUD is a variable name. For example, it could have also been named APPLE or BANANA.

To understand what object type the variable NUD is, you would need to look at it's declaration. I would recommend seeking an online C# programming course or checking with your local community college for beginner classes with programming.

Ideally, online courses are your best choice because you can learn at your convenience.

It is way too much to type to teach you how to program in a message - so courses are your best bet. Now, for those variable types, they are visual objects. This means you will find those objects on the FORM. A form is a graphical view of the controls for the user.

You can always learn more about Visual Studio as well - for example, when you have highlighted a variable, pressing F12 will bring you to the declaration.