01-18-2013 01:27 PM
I have written a big labview program for my application. I have been workig on it for 6 months. I keep adding the peice of code every day and save it with a new name every week.
At one point when I added some code into my program, the block diagram started acting weird and wont let me work on the program easily. For If I add an add function, it would take time and insert this function a couple of inches away where I pionted my cursor. Another issue was that; if I add a while loop or for loop or any other structure it would take time and one added it would add a couple of inches away and expand the main program window (Block Diagram) too.
since then, I started using my company's laptop to develop the code. I have no issues with that lap top till today.
But now when I tranfer this program back to my desk top. It wont open the Block Diagram and wont let me edit it. When I try to open the block diagram. the window appear black out and the LabView stops working.
Is this issure ralted to the graphics of my compute or any thing else? Please help me. Thanks
Mansoor
01-18-2013 01:48 PM
Graphics card could play a part. So can CPU. What version of LabVIEW are you using? How big is this VI? Are you using subVIs? From your description, it sounds like you just have a huge, monolithic VI.
01-18-2013 02:00 PM
There is a maximum size that a VI can be. What that exact size is I don't know. It does sound like you have one HUGE VI. If that is the case you really need to think more about using subVIs. It will make your program much easier to maintain and extend.
Also, rather than renaming it once a week you should consider using source code contol. Even if you are the only developer it is a much better way to manage your code. SVN is free and very easy to set up. If you do use source code control make sure you separate the compiled code from the source code. This is an option in the VI properties.
01-18-2013 04:06 PM
Thank you guys. I am planning to develope more subVIs to tackle this issue. Further I am planning to use the source code control. I hope when I start setting up the source code control, I will need more help from you guys.
01-19-2013 02:12 AM
@MansoorEE wrote:
[...] Further I am planning to use the source code control. I hope when I start setting up the source code control, I will need more help from you guys.
Regarding source code control I really like Matthew Kelton's blog series on that topic. This is useful to get an overview. And the issues that LabVIEW developers usually face (or will face). If your company doesn't use source code control yet, you will have to make a decision which one to use ...