Source Code Control - Check in problems
Some of my vi's have been marked as "Server copy has changed" and some have even been marked with "both local and server copies have changed". When this is the case I cannot find any way to check in my VI without getting an error. Looking for a work around - help.
kh,
Which version of LabVIEW are you using? Built-in SCC have been rewritten from 6.0 to 6.1 and there are different issues related to each version.
With 6.0 I have encoutered a bug that wrongly checked most of my VIs as "local copy has changed" as soon as they are in memory with panel closed. I worked with NI Support and we found no workaround. Unfortunately, this behavior stayed even when the VIs were upgraded in 6.1 so that my problem was a dead end. I switched with great success to CVS, another source code control software.
I do not use 6.1 but if you do, make a search on NI's site and you'll find hits that address a SCC bug. If I remember correctly, checking out a VI, making a small change and checking it in again often solved the problem.
G
ood luck.
LabVIEW, C'est LabVIEW
Similar Messages
-
How to use Source Code Control for Large Application?
Hi, All!
I would like to collect knowledge about "best practice" examples for using Source Code Control and project organization for relative large application (let's say approx 1000 SubVIs).
Tools used:
LabVIEW 8.0
CVS Server
PushOK CVS Proxy Client
WinCVS
With LabVIEW 8 we can organize large project pretty well. This described in article Managing Large Applications with the LabVIEW Project.
I have read this article too: Using Source Control Software with LabVIEW In this Article Source Safe used, but with PushOK all looks nearby the same and works (some tricks for compare function are required).
Example. Two developers working together on same project. Internally project is modular, so one developer will work with module "Analysis", and another one with "Configuration" without interferences. These modules placed into Subfolders as shown in example above.
Scenario 1:
Developer A started with modification of module "Analysis". Some files checked out. He would like to add some SubVIs here. So, he must also perform check out for the project file (*.lvproj), otherwise he cannot add anything into project structure.
Developer B at the same time would like to add some new functions into module "Configuration". He also needed to check out project file, but this file already checked out by Developer A (and locked). So, he must wait until lvproj file will be checked in. Another way is mark *.lvproj files as text files in PushOK, but then one of developers will get conflict message by checking in and then merging will be necessary. This situation will coming very often, because in most cases *.lvproj file will be checked out all the time.
Question: Which practice is better for such situation? Is Libraries better than folder for large project?
Scenario 2:
Developer C joined to the team. First, he must get complete project code for starting (or may be at least code of one Library, which assigned to him).
Question: How it can be done within LabVIEW IDE? Or WinCVS (or other SCC UI) should be used for initial checkout?
Scenario 3:
Developer D is responcible for Build. Developers A,B,C have added lot of files into modules "Analysis", Configuration" and "FileIO". For building he need to get complete code. If our project splitted into folders, he should get latest *.lvproj first, then newly added SubVIs will appear in Project Explorer, then he should expand tree, select all SubVIs and get latest versions for all. If Project organized in Libraries, he must do the same for each library, isn't?.
Question: Is this "normal way", or WinCVS should be used for this way? In WinCVS its possible with two mouseclicks, but I prefer to get all code from CVS within LabVIEW IDE recursively...
That was a long post... So, if you already working with LabVIEW 8 with SCC used for large project, please post your knowledge here about project structure (Folders or Libraries) and best practices, its may be helpful and useful for all of us. Any examples/use cases/links etc are appreciated.
Thank you,
AndreyRegarding your scenarios:
1. Using your example, let's say both developers checked out version 3
of the project file. Assuming that there are only files under the
directories in the example project, when Developer A checks in his
version of the project, there will be new files in one section of the
project separate from where Developer B is working. Developer B,
notices that there is now a version 4 of the project. He needs to
resolve the changes so will need to merge his changes to the latest
version of project file. Since the project file is a text file, that is
easy to do. Where an issue arrises is that after Developer B checks in
his merged changes, there is a revision 5. When Developer A and B go to
make another change, they get the latest version which will have the
merged changes to the project file but not the referenced files from
both Developer A and B. So when A opens version 5, he sees that he is
missing the files that B checked in and visa versa. Here is where the
developers will needs to manually use the source control client and,
external to LabVIEW, get those new files.
Where libraries help with the above scenario is that the library is a
separate file from the project so changes made to it outside of the
project do not require the project to be modified. So this time, the
developers are using a single project again which time time references
two libraries. The developers check out the libraries, make changes to
the libraries, and then check those changes in. So when each developer
opens the project file, since it references the project file, the
changes to the library will be reflected. There is still the issue of
the new files not automatically coming down when the latest version of
the library is obtained. Again, the developers will needs to manually
use the source control client and, external to LabVIEW, get those new
files. In general, you should take advantage of the the modularity that
libraries provide.
2. As noted in the above scenario, there is no intrinsic mechanism to
get all files referenced by a LabVIEW project. Files that are missing
will be noted. The developer will then have to use the source control
provider's IDE to get the initial contents of the project (or library).
3. See above scenarios.
George M
National Instruments -
Database source code control or version management
Hi all,
I work in a data warehouse development project, where database schema changes form majority of development work. As a development DBA I look after ensuring that all the database schema changes are version controlled properly.
We currently use CVS as a source code control system. We can use CVS well enough where stored procedures, functions and packages are involved. But when it comes to table definitions, we are finding use of CVS bothersome.
Hence I would like to know, which tool are you using for version control of schema changes. Any links to best practices on DB version control would be much appreciated.I think Oracle have introduced something in 11g for version control. Also you can use third party Software like ERWIN. You can also explore Oracle Data Modelling software which is Beta currently.
Regards -
RE: Using a source code control system
Thanks Shane and everybody for the replies.
My *.cex files have the correct "begin CLASS;" entry. Below is my fscript
file
that I'm trying with Forte 2.0.E.2 NT version:
setWorkspace ktCheckBoard
open
findproj sample1
cd c:\forte_cs\install\bin
compile sample1_sysadm.cex
importplan sample1_sysadm.cex (>>> It failed right here)
Khanh
From: Shane Howlett
To: forte-users
Subject: RE: Using a source code control system
Date: Wednesday, November 13, 1996 9:54PM
Hi Khanh,
In regards to your compile error...
We found that an interesting difference between versions 2.0.D.x and 2.0.E.x
was with the first line of an exported .CEX file.
A la ...
2.0.D line 1: begin;
2.0.E line 1: begin CLASS;
It caught me out. Just insert or remove the word CLASS using a text editor
depending on your version of Forte.
As for version control, we have been retaining workspace export files
(wascally WEX files!) as backups and plan to make greater use of Baselining
in
the repository. In terms of securing our environment, this approach
essentially meets our needs.
Shane Howlett
The Hydro.Thanks for your help. That works.
-khanh
At 11:20 AM 11/14/96 -0800, you wrote:
>
Hi Mike,
Thanks for the reply. I think that was what I did.
Below is my fscript input file:
setWorkspace ktCheckBoard
open
findproj sample1
cd c:\forte_cs\install\bin
compile sample1_sysadm.cex
importplan sample1_sysadm.cex (It failed at this step)'importplan' is unnecessary: 'compile' has compiled the .cex file into your
project. importplan is failing beacuse it expects to see an entire plan.
Mike
Mike Schilling ([email protected])
Forte Software, Inc. -
Help needed to use Source code control system
Hi all
I am working on Suse 9.2 and I use JSP and Servlet in my project.I like to use Source Code Control System (SCCS) . But I have no idea about that.I need some help to initiate my project.
Thanks in advance.
-jeganI don't know this "SCCS" but I advice you to use Subversion as it is widely used open source standard.
-
How to setup source code control with StarTeam
Hi,
Could anyone please tell me what should I do to set up the source code control?
My company use StarTeam Borland as a source code control tool. I try to set this as a Source Control for Labview by go to SourceControl category ins the Options setup, but I cannot select anything form the list of provider name. Do I have to do any extra step to make it right?
Best regards,
Thang Nguyen
Message Edited by THANG NGUYEN on 08-12-2009 05:23 PM
Attachments:
SourceCodeControl.JPG 64 KBRead this: Source Code Control Provider Does Not Appear In LabVIEW Options. (A simple search would have yielded this.)
-
Input control -Check Box Problem in webi4 over Bex query
Hi All
i am in webi4 over bex query
my customer requirement is to have the option to select multiple values from object (e.g Document class) with out the need of presenting the field(e.g document class) in the report
when I use the input control check box or list box i have the following problem
if I select from the input control all values I see the report ok
if I select 2 values from the list I receive #UNAVAILABLE , but if i add the field to the report ( the document class) it works fine.
the problem is that if I don't have the field in the report i get the #UNAVAILABLE
any assistance is appreciated
ThanksHi,
this question has been asked many times before on this forum, so do please search first.
Here's some steers : http://forums.sdn.sap.com/thread.jspa?messageID=10852102#10852102
and : http://forums.sdn.sap.com/thread.jspa?messageID=10838993#10838993
Also, do search the knowledge base articles over here in the cross-search: www.service.sap.com/xsearch
you keywords would be "4.0 webi #UNAVAILABLE" (there are 12 sap notes about this)
Finally, make sure you use all the latest Patches (Patch2.11, 2.12 next week) to include corrections.
Regards,
H -
How to access source code for checked in .sca files in the dev environment
Hello,
I am trying to do some CRM E-commerce development. The basis personnel has checked in all the relevant SCA archives listed in the setup documentation. He has since given me the Servername and port for accessing the NWDI that I can set in the Development Environment. I can log on to the system and see the repository browser with all the branches.
For example:
CustomerConfig -> CRMEXT -> sap.com_SAP-CRMWEB -> dev -> active
CustomerConfig -> CRMEXT -> sap.com_SAP-CRMWEB -> dev -> inactive
How ever there is no code there to sync. Is there something missing in our setup for the NWDI so I can sync the CRM E commerce projects to the local system and modify them.
Is there anything we have to do either in NWDI or in the IDE to see the source code to extend it.
Thank You for your help in this matter.
Sumit.Hey Pascal, Thanks for the help. We did a batch check in and the code did not go through. After we tried the check-in in the non-batch mode it worked.
-
Source Code Control for Java development in 6.20
I am new to Java development. How do you control source code (versioning/transport) for Java development with the base R/3 is 6.20. I believe Java Development Infrastructure (JDI) is only available in 6.40. Is this the correct statement? Anyone that has work on 6.40 with Java can explain?
Let say we have this setup:
Applications are in 6.20
Portal will be EP 6.0
Do we need Web AS 6.40 to develop Java for Portal with base R/3 of 6.20. Or we can use Developer Studio to create Java accessing R/3 6.20 and display in Portal 6.0. If this is the case, how do you manage transport is you are not using JDI in 6.40.Hi Nablan,
I believe you are development J2EE applications. JDI only runs with WebAS 6.40 which supports J2EE spec. 1.3. The developed J2EE archive will not be able to deploy to WebAS 6.20 which only supports J2EE 1.2 spec. So if you want to deploy the created software build from JDI and deploy it to WebAS 6.20, then the answer is unfortunately no.
But, if you just want the Portal be able to display your application in an iView inside, then maybe you can just develop and deploy your application to the WebAS 6.40 system. Then create an iView in your EP to point to the app in the 6.40 system. That way your app will not need to deploy to WebAS 6.20.
Regards,
Marc -
Having Problem in access to Source Code Control System (URGENT help needed)
I am using JDeveloper 9i first time. The repository is in Oracle 8i.
I have established a connection from JDeveloper 9i to Oracle 8i repository running on Sun Solaris.
We have created a shared area and my colleague have checked-in some files. I have all access to shared area and I can see the checked-in files, but I am not able to check-out to the local folder.
I need help to resolve this problem urgently. Please consider this as an SOS call. ThanksHi,
The JDeveloper help system strongly recommends that you don't use shared workareas in this way. In fact, it's not possible in the beta release of JDeveloper to work this way at all, because there is no way for you both to get the files on to your file system in a way that JDeveloper will recognize.
The JDeveloper documentation on Repository is a very good source of information on the best way to organize developer workareas (particularly the section on best usage recommendations). The Repository is a very complex product originally intended for much more than just source control and there are many ways of using it. We have necessarily had to focus on a subset of this functionality in JDeveloper, mainly to keep the UI from being excessively complex for new users.
Here's a summary of the way we recommend working:
o Create a workarea in the RON which will be used as the basis of developer workareas (developers will not actually use this workarea directly). Make this workarea shared by granting access rights to the PUBLIC role.
o Each developer uses the Workarea wizard in JDeveloper (Source Control->Configure... in the beta release) to create a developer workarea based on the shared workarea.
Thanks,
Brian
JDeveloper Team
null -
RE: Using a source code control system with...
Hi Khanh,
In regards to your compile error...
We found that an interesting difference between versions 2.0.D.x and 2.0.E.x
was with the first line of an exported .CEX file.
A la ...
2.0.D line 1: begin;
2.0.E line 1: begin CLASS;
It caught me out. Just insert or remove the word CLASS using a text editor
depending on your version of Forte.
As for version control, we have been retaining workspace export files
(wascally WEX files!) as backups and plan to make greater use of Baselining in
the repository. In terms of securing our environment, this approach
essentially meets our needs.
Shane Howlett
The Hydro.Thanks for your help. That works.
-khanh
At 11:20 AM 11/14/96 -0800, you wrote:
>
Hi Mike,
Thanks for the reply. I think that was what I did.
Below is my fscript input file:
setWorkspace ktCheckBoard
open
findproj sample1
cd c:\forte_cs\install\bin
compile sample1_sysadm.cex
importplan sample1_sysadm.cex (It failed at this step)'importplan' is unnecessary: 'compile' has compiled the .cex file into your
project. importplan is failing beacuse it expects to see an entire plan.
Mike
Mike Schilling ([email protected])
Forte Software, Inc. -
Question about the Documentat​ion Tags for Source Code
Hello,
I have a question about CVI's automatic source code documentation. My problem is that is seems like you need to write all documentation for a specific tag on one line. If you don't, a line break will be inserted when the documentation is displayed. Suppose I want to write a large amount of documentation for the function itself, using the HIFN tag. If I don't want linebreaks to be forced in the documentation, I need to write all this documentation on one single line, which kinda messes up my code. If I split the documentation over several HIFN tags, the documentation displayed to the user might look messed up because of all the linebreaks. Is there any escape character I can put at the end of a line, allowing me to split the documentation of several HIFN lines without forcing linebreaks in the documentation?
Thanks!
GEMIDIS - Innovating Display Technology
HQ Ghent, BelgiumThis information is certainly useful. Note, however, that it can also be found in the documentation
Tag
Description
/// HIFN help text
Specifies the help text for the function. Use multiple /// HIFN tags to display help text for the function on separate lines. To separate help text with an empty line, use /// HIFN on a line by itself. You also can use HTML tags, but you must enclose the tags in <HTML><BODY></BODY></HTML> tags.
Example
/// HIFN SampleFunction returns the value of a control.
int SampleFunction (int controlID, ctrlType controlType, char label[], double *value)
SomeAction; -
How can i avoid to see the source code when any user open block diagram third time without password
i have a probelem regarding source code control. my problem is that when user open block diagram of any sub vi in vi. i would like to make a such a vi which source code can not open after seeing the block diagram thrice time and i dont want to make password to see the block diagram so what can i do ?
give me the perfect solution for this type of problem.First protect you diagram
create a tap on your FP and create a picture of your diagram and put it on the second tap
DON'T expect answers if you only want perfect one's
Greetings from Germany
Henrik
LV since v3.1
“ground” is a convenient fantasy
'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ' -
Hi all,
I build small java editor and I have big problem.
Do you know how can I read name or type variable from source code and check variable is local or global .
I found package "com.sun.mirror.declaration" but I don't know how to use interface in this package.
How can I do it?Sorry,
I mean range of variable in source code. For example:
int b=2;
public a() {
String b="constructor range";
System.out.print(b); // return "constructor range"
I need tools or class which checks range of variable in source code and may return atribut variable.
This tools I want assign to may application writen in Java.
Pleeeease Help. -
Has anyone seen or heard fo this issue:
I was sent a new xml source code and loaded it into my .rtf file. When I went to preview the file it showed up no problem. All great and dandy!
When I tried to add a field and preview the field would not show up. Yes, there is data in the XML sourse code for the tag.
I decided to run a test and load some of the old XML source code and had no problems. I was able to move fields, add plain text, and delete fields and my changes would display in the preview.
The only thing we can think of that is different is that the previous xml source code was generated from 9. 2. 08 database we recently upgraded to 10g. The new source code is from 10g.
Does this make any sense? Would our upgrade to 10g result in not being able to change the template? Or is it something else?
Thanks,
JessicaTim,
I actually just sent you an e-mail. It contains the rtf and the source codes.
Thanks,
Jessica
Maybe you are looking for
-
Cannot figure out why "ORA-01000 Maximum open cursors" is shown...
Hello there ... I am programming a PL/SQL Code that is throwing 0RA-01000 Maximum Open Cursors Exceeded. Having already read quite a lot about ORA-01000 errors, I know I should be closing cursors, and have already tried setting OPEN_CURSORS parameter
-
hello, I want that a document (selected from a tableSelectOne) to be opened in a popup, so i wrote in my jspx : <af:commandButton text="Ver" binding="#{backing_archivos.verArchivosBtn}" id="verArchivosBtn" useWindow="true" windowHeight="600" windowWi
-
Create PDF with printing restrictions
I am looking for a product that can create PDFs on a server from a VB.NET website application. It must be able to build some logic into the PDF to restrict the printing capabillity to only allow a certain number of copies to be printed. Subsequent co
-
Mini thinks it is connected to an absent miniDVI display
Suddenly, when I boot up my (late 2009) Mini with my DVI monitor connected via miniDVI adapter, I get black screen (not no signal). If I boot up with it connected via the miniDP adapter, it shows the display, but the display preferences reveal that i
-
Dear , How to add New Country & Region which is needed in XK01 second (2nd screen). Thanks in Advance.