05-13-2009 03:54 PM
Could you look at the attached file I added shift registers as you recommened but I still have an error.
05-13-2009 03:56 PM
05-13-2009 05:32 PM
05-13-2009 05:38 PM
I attached here the error message
05-14-2009 06:59 PM
Hello Eng. Ahmad,
I would recommend posting a summary of what you are trying to do and also indicate where the error is occuring. This would make it much easier to troubleshoot. Thank you,
05-16-2009 05:45 PM
Dear Eng. Vivek.
Finally I debugged the code, It is working well now I made the following:
I removed the feedback wires from inside for-loop to outside.
I replaced the feedback wires with a value property node for each variable then I found that the vi worked well.
I don't know why the feedback wires outside the for-loop made this error? is it right?
Could you please send me your email Eng. Vivek on my email ahmad_t_azar@yahoo.com if it is possible to ask you about any problems ?
Thanks for all NI groups for quickly replying and helping me.
I'm very proud that I'm a member in this Ni discussion forum and every day I learn new somthing in labview
05-18-2009 08:37 PM
Hello Eng. Ahmad,
I am not too sure what you meant by the feedback wires and variables. I am glad you have got this working. I would recommend signing up for the SSP if you would like to get e-mail and phone support from Application Engineers at NI. Also, I would suggest taking a look at the LabVIEW courses we offer as they will definitely help you get up to speed much more easily.
Hope this helps!
05-23-2009 06:30 PM
Dear ALL
if you look at the attached example, I want to the stop button to stop the execution of both while loop and for loop at the same time. Then I want to add another button to exit labview. I tried to use flat sequence structure but it doesn't work properly. Could you modify the attached example to guide me. Because I'm trying now to convert the vi to exe and so that I need to add the exit button to terminate the program.
Thanks and I'm waiting
Ahmad
05-23-2009 07:13 PM - edited 05-23-2009 07:13 PM
Eng.Ahmad wrote:Because I'm trying now to convert the vi to exe and so that I need to add the exit button to terminate the program.
The exe sould always run, so you could just kill it with the[X] button in the upper right corner and eliminate the stop button entirely.
If you want to stop both with the stop button, you need to place it inside the FOR loop, show the conditional terminal of the FOR loop, and wire the button to it and to the termination condition of the while loop.
You still have way too much code as mentioned before. Why make a cluster, convert to an array, and then take the subset of the entire array, for example. Just use "built array" in one step.
Here's a quick example:
05-24-2009 05:46 AM
Thanks very very much for quickly replying and helping me.