BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Code Capture Tool

I see more and more people asking about how to paste parts of LV code in forums.
I'm thinking about repacking the Code Capture Tool as an .OGP file and a auto-installing VI.
Together with this I want to write some documentation about it.
Now my Q is does anybody resemble this?
Esp. tst, Chilly Charly, Altenbach, Jean-Pierre and RolfK!

One bug-fix to make is the shooting of paned front panels.

My current version is 8.2 but I think the version on the net is 7.1 right?
Does anyone have an older version?

TOn
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 1 of 18
(11,897 Views)

I doubt people will have any objection and I think it's a great idea. While the tool was originally posted to the Starware thread, the point is not to have it only in places where the writers can get stars, but to get as many people to use it as possible. I would also suggest alternative means of distribution like the LAVAcr and OpenG itself (with the BSD license?).

As for technical issues, the current version is 7.0. I think it should stay that way, if only because it's the version I use Smiley Wink . I can help with compiling that. All the 8.x stuff is called dynamically and so adding the code to handle panes (as well as the library names) should be done dynamically as well. We should have a tree VIs which will hold all the dynamically called VIs so that it can be compiled easily on newer versions.

Also, I think that it should have some changes made to it.
Personally, I think some of the additions are not needed and just complicate the program (like using the number buttons to cycle the lists or having the timeout) and unless anyone has objections I suggest that we remove them.
Also, the code which does the actual cropping was never cleaned up and this could be a good chance to do that.
One important addition is the ability to select the position of the FP and BD relative to each other. Maybe from a picture ring?

BTW, what is your suggestion for working with panes?
Can you select objects across multiple panes?


___________________
Try to take over the world!
Message 2 of 18
(11,885 Views)


LAVAcr and OpenG itself (with the BSD license?).

I like that, since we have control over the documentation!

One important addition is the ability to select the position of the FP and BD relative to each other. Maybe from a picture ring?

Sounds good!

BTW, what is your suggestion for working with panes?
Can you select objects across multiple panes?

I think you can select, the problem is that currently you get an error if you want to use the whole panel (mult. panes)

One addition I want is the 'escape' key, that is quite intuitive to cancel a dialog

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 3 of 18
(11,882 Views)

TonP wrote:

I think you can select, the problem is that currently you get an error if you want to use the whole panel (mult. panes)

Well, it's important to know whether you can select across multiple panes or not, because that would significantly affect the behavior of the tool.
In any case, I don't use 8, but I would expect that this should be a fairly simple fix and that if there is no selection the tool should capture the visible part of each pane and combine them into a single image.


One addition I want is the 'escape' key, that is quite intuitive to cancel a dialog

Sounds good. I just never had to cancel that dialog much, so I didn't think about it.
 
Attached is a picture ring prototype.

___________________
Try to take over the world!
0 Kudos
Message 4 of 18
(11,875 Views)

@tst wrote:

While the tool was originally posted to the Starware thread, the point is not to have it only in places where the writers can get stars, but to get as many people to use it as possible. I would also suggest alternative means of distribution like the LAVAcr and OpenG itself (with the BSD license?).


I would suggest posting the utility to the NI Community website.

-D

0 Kudos
Message 5 of 18
(11,865 Views)

What actually is the problem with panes?
I ran the FP.Get Image Scaled method and it returns an image of all the panes.

If the problem is that you don't see parts of the pane which are not currently visible, I'm not sure what can be done about that. There doesn't seem to be an exposed way of getting the full image of a pane and I don't know how to play with scripting in 8.x.


___________________
Try to take over the world!
0 Kudos
Message 6 of 18
(11,847 Views)
Tst,

I don't have time right now but debugged it a little, the panel.top property fails in a multi-pane panel.
Rearrenging the order of elements in the property can bypass this. After that only a selection in the second (or more) pane will cause a wrong image.
You are right that you can't select elements accross panes.
I like your ring!

Darren,

how much control do we have on the NI site?

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 7 of 18
(11,827 Views)


@TonP wrote:

how much control do we have on the NI site?


To my knowledge, you can freely edit anything you post to the NI Community site.  I think that's the whole point of it, to encourage code sharing.  You can check out the History Probes utility I posted to see an example of what (I hope) a typical post on there would look like.

-D

0 Kudos
Message 8 of 18
(11,814 Views)
Were you able to make any progress?

___________________
Try to take over the world!
0 Kudos
Message 9 of 18
(11,706 Views)
Sorry tst,

not yet, some things roll just the other way.

But I was thinking to abuse the OGP power to include several versions of the same VI for several LV releases (pre 8.x don't need panes, 8.x can natively export strings etc)

I think I'll set a deadline in the first week of august (do I hear NI week?).
My (most likely) release version will be 7.1 or 6.1 if someone can back save to 6.1 (tst?)

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 10 of 18
(11,694 Views)