LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

center return slide labview 8

Solved!
Go to solution

i have a slider in a program to control a velleman k8055

the slider controls a dac output 0-5v volts witch then controls a sero through a ne555 timer board.

i need the slider to be able to be controled by keyboard (worked that out) but i also want when im not pressing the button for it to return to centre.

please help... im a novise at labview and mainly only need this one program. i have attached what iv got so far

0 Kudos
Message 1 of 9
(3,331 Views)

Does your version of LabVIEW give you access to the event structure?

 

Your stacked sequence structure is not good for interactive control.  You'll need to change this over to a state machine or simple control loop.

0 Kudos
Message 2 of 9
(3,328 Views)

yes i think i have event structure.

i really need a good example of a state machine to use in this case.

also i have attached dll for k8055 if needed.

0 Kudos
Message 3 of 9
(3,325 Views)

It appears that your code is set up so that you use the Run Continuously button in the toolbar. If this is the case, STOP. That button is intended for debug situations, not for normal operation. If the VI is supposed to run all the time, you need to use a loop in your VI. As noted, a simple event structure can be used in your case. However, I do not understand what you mean by " i also want when im not pressing the button for it to return to centre". What button?

 


please help... im a novise at labview and mainly only need this one program. i have attached what iv got so far

Have you done any of the LabVIEW tutorials? To learn more about LabVIEW it is recommended that you go through the introduction material, tutorial(s), and other material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free.

 


i really need a good example of a state machine to use in this case.

You can read all about state machines here: Application Design Patterns: State Machines . You can create a state machine template from File -> New, and then select VI -> From Template -> Frameworks -> Design Patterns. 

0 Kudos
Message 4 of 9
(3,310 Views)

well i would like to use the arrow keys on the keyboard.

i will have a look at the tutorials thats a good idea.

thanks for your help so far and i will get back to you once i run through the tutorials

0 Kudos
Message 5 of 9
(3,288 Views)

Hi,

 

You may take a look at the attached VI. I have done this using the event structure and the explanations are given on the block diagram. Hope it helps you.


Regards,

Nitzz

(Give kudos to good Answers, Mark it as a Solution if your problem is Solved;)) 

0 Kudos
Message 6 of 9
(3,275 Views)

Can you please save as labview 8.0

0 Kudos
Message 7 of 9
(3,255 Views)
Solution
Accepted by topic author turbojet

Hi turbojet,


This one is in 8.0

 

Regards,

Nitzz

(Give kudos to good Answers, Mark it as a Solution if your problem is Solved:smileywink:)  

0 Kudos
Message 8 of 9
(3,247 Views)

GREAT YOUR THE BEST MATESmiley Happy THANKS HEAPS

0 Kudos
Message 9 of 9
(3,236 Views)