10-29-2015 01:08 PM
i want to run the program inside a loop for one time and end the loop even i stil pressing the condition button or enable button and redo the program in loop when i release the button and press it again ?
any help
10-29-2015 01:11 PM
I read that four times and have no idea what you are asking. Perhaps post some code with a description of how you expect it to work?
10-29-2015 01:19 PM
@AlyMagdy wrote:
i want to run the program inside a loop for one time and end the loop even i stil pressing the condition
button or enable button and redo the program in loop when i release the button and press it again ?
Make the "condition button" latch when released and it will only be true until the value is read once by the code, then revert to false automatically.
More complicated scenarios might require a shift register that maintains state.
Please show us a simplified version your VI, tell us how you use it, what happens, and what you expect to happen instead.
10-29-2015 01:30 PM
i'm trying to send data sequently , the problem is when press send the data sends and repeating the sneding data until i release the send button.
i want to send the data if i presse send for one time even i still pressing send and send it again if release the send button and press it again
10-29-2015 01:33 PM
10-29-2015 02:55 PM
I agree with everything Gerd said.
I recommend to start with some basic LabVIEW tutorials.
10-29-2015 03:04 PM
"Give me six hours to chop down a tree and I will spend the first four sharpening the axe." - Abraham Lincoln
Here are some free training tools primarily focused on LabVIEW and NI hardware to help get started.
-MyRIO Project Essentials Guide (lots of good simple circuits with links to youtube demonstrations)
Learn NI Training Resource Videos
6 Hour LabVIEW Introduction
Self Paced training for students
Self Paced training beginner to advanced, SSP Required
LabVIEW Wiki on Training
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'