What is the best way to understand a complex lab VI VI?
My goal is to control one from the motor
The wiring diagram shown below allows the LabWeO user to control the motor with LabViv GUI: take a slider up and down Go either to increase the desired speed or to change the value of the slider, it is fed into a group of mathematics controls and eventually the command for the motor is converted into a string. This command string, if I understand correctly, is a bunch of bytes that are written on the serial port.
Instead of using the LabView GUI to control the motor, I would like to use the joystick
What is the best way to reach it?
The joystick has pitch, o, roll, and throttle. Which of the best is the velocity of the motor?
< Div class = "post-text" itemprop = "text">
Respond to your headline "What is the most effective way to understand how complicated Labvi VI VI works?" Perhaps some combination of the following is to:
- To look at the input and output of the pseudo and understand what they are, the label and captions of the control and indicator can be useful, details and tips Right-click to check
- Along with the controls and indicators, check other I / O: queue, indicator, global variable, reading / writing files, communication to write, and any data storage which is an irregular rain Continuation between calls like register.
- Look at the overall structure of VI how it executes, e.g. Is it a closed operation, does it execute different cases based on some input, does it loop until it is a fixed position, whether it uses a state machine structure, etc.
- Breaking the sixth structure into pieces, which you can understand, you can print the diagram and make a comment by hand or add frame decoration and text comment in the diagram so that you get the result Are spun. If the picture is wasted or poorly excluded, then adjust it again as you go along (Ctrl-click and drag on the dialog background, to add the blank space where you need it).
- Check Set On Key Wires Set And Hide To see what happens
- If possible, set the control of the end to the values of values And run to see what happens (this can not work if VI depends on other parts of the program at the same time)
- Write a test wrapper VI, which calls the complex end Does it and see what happens Provides wiping data or inputs. / Li>
To solve your specific question about the 6th diagram you posted, I look at various controls for velocity, position, dimension, max A (dimension?), Frequency etc. I can. . You need to decide which of these dosages should be controlled which should be the axis or output of your joystick. Then you need to add code that reads those values from your joystick, and modify the existing code so that the parameter you want to control is provided by joystick values instead of front panel controls. You could possibly just put the joystick reading code inside the existing loop, to replace the joystick output with the wires, with the front panel controls you want to change, and then the right-click for the indicator from the right-click menu Can change panel control So that they will show the values you get from the joystick.
No comments:
Post a Comment