Stop While loop

This is a discussion on Stop While loop within the labview forums in Programming Languages category; This is my codeMessage Edited by enzo78 on 07-09-2008 08:20 AMMessage Edited by enzo78 on 07-09-2008 08:22 AMMessage Edited by enzo78 on 07-09-2008 08:25 AM Save 1.2.13.vi: http://forums.ni.com/attachments/ni/170/339068/4/Save 1.2.13.vi...

Go Back   Application Development Forum > Programming Languages > labview

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #11  
Old 07-09-2008, 09:40 AM
enzo78
Guest
 
Default Re: Stop While loop

This is my codeMessage Edited by enzo78 on 07-09-2008 08:20 AMMessage Edited by enzo78 on 07-09-2008 08:22 AMMessage Edited by enzo78 on 07-09-2008 08:25 AM


Save 1.2.13.vi:
http://forums.ni.com/attachments/ni/170/339068/4/Save 1.2.13.vi
Reply With Quote
  #12  
Old 07-09-2008, 10:40 AM
Andrey Dmitriev
Guest
 
Default Re: Stop While loop

Hi, enzo,
You have demonstrated "copy-paste" programming style above, and its not very good. You have five times almost the same cycle, and now you need to make five times the same changes. At least you can do it much better with SubVIs, or you can join your five cycles into single with cases as shown in attachment.
Andrey.
PS. Disclaimer: in attachment included basic idea only, not "ready for use" solution!
 


Save 1.2.13[1].vi:
http://forums.ni.com/attachments/ni/170/339107/1/Save 1.2.13[1].vi
Reply With Quote
  #13  
Old 07-09-2008, 10:40 AM
enzo78
Guest
 
Default Re: Stop While loop

I realize the copy and paste of the block, because I need to execute them at the same time...
I explain better:
First I choose wich variable I want to save (for example Input state and Output state)
Than I push SAVE
The program must read the variable of Input State and the variable Output state at the same time
The program must save this data at the same time in different export file.
 
What you have realized allows me to read and save each data not at the same time
 
Thanks
 Message Edited by enzo78 on 07-09-2008 09:36 AM
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 10:27 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.