|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#16
|
|||
|
|||
|
Re: How do i find a variable and use it on Labview
Quote:
|
|
#17
|
|||
|
|||
|
Re: How do i find a variable and use it on Labview
You click on the ???s and choose from the list of controls. If you rename a control, the variable also gets renamed.
Greg McKaskle |
|
#18
|
||||
|
||||
|
Re: How do i find a variable and use it on Labview
Quote:
Quote:
See the section Implementing a Global Variable There is also a video of there tutorial here. |
|
#19
|
|||||
|
|||||
|
Re: How do i find a variable and use it on Labview
I'm not really sure why you want to use variables. You might be thinking too much in terms of procedural programming (like C or even BASIC) instead of treating LabVIEW as a dataflow programming method -- which it is.
In LabVIEW programs, wires are essentially the variables. They're what "hold" values as they move from where they're produced to where they're used. |
|
#20
|
|||
|
|||
|
Re: How do i find a variable and use it on Labview
Quote:
|
|
#21
|
|||
|
|||
|
Re: How do i find a variable and use it on Labview
Excellent point, Alan! Maybe Chris was getting too hung up on that concept.
In general, you should be able to do all of your programming without using global or local variables. Wires can go "everywhere" by simply wiring "through" structure boundaries or exploiting shift registers or sequence locals (look 'em up). Variables are only really necessary when A) You want to clean up your block diagram since having wires everywhere can get out of hand. or B) You've got a set of parallel processes that need to share data (although I believe there may be a few other more advanced options that could be used). Processes WILL NOT run in parallel when they are wired together (since a wire cannot be read from until it is written to whereas variables can be read from at any time). Another suggestion - check out Highlight Execution mode. It can be really handy for helping understand program flow and debugging. Russ |
|
#22
|
|||
|
|||
|
Re: How do i find a variable and use it on Labview
I was just trying to make a test vi that doesnt use the Crio but i couldnt make a value that could be used as the motor value that could be changed but still give me a value(i wanted to make it accelerate or decelerate and show the value of the motor) I can get what i want using the Crio stuff but I was just trying to figure out how to test it.
|
|
#23
|
||||
|
||||
|
Re: How do i find a variable and use it on Labview
Simply create a control on the front panel to input your value.....then place an indicator to the output of your coding to show the result. Make sure to create a While loop to let it run.
|
|
#24
|
||||
|
||||
|
Re: How do i find a variable and use it on Labview
Just take the axis from the unbundle by name and hook it to the tank drive/arcade drive.vi input
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Variable rollover with Labview (suggestions?) | kamocat | NI LabVIEW | 7 | 22-08-2008 08:30 |
| NEED GENERAL HELP on how to find programming and animation resources | delphi demon | General Forum | 1 | 02-04-2007 15:58 |
| how do i find the camera with labview? | CompMaster | NI LabVIEW | 0 | 16-02-2006 12:52 |
| How do you find time for sports and robots? | Whalley | General Forum | 50 | 23-03-2005 12:11 |