Jump to content
jcarmody

[CR] CaseSelect

Recommended Posts

I downloaded the VIP, and VIPM tells me it is 8.6 and up...

Is that correct?

EDIT:

I found an 8.2 version, could the CR version be updated?

And while i am at it, some ideas:

Show/hide label (and edit) of the case structure

Auto-hide and show the dialog when the owning VI is not the top-level BD anymore.

Ton

  • Like 1

Share this post


Link to post
Share on other sites

I downloaded the VIP, and VIPM tells me it is 8.6 and up...

Is that correct?

EDIT:

I found an 8.2 version, could the CR version be updated?

I meant to have the VIP in 8.2 but ran into a snag. I need to try repackaging it.

Auto-hide and show the dialog when the owning VI is not the top-level BD anymore.

I tried to implement this idea but couldn't figure out how to do it. Any ideas?

Share this post


Link to post
Share on other sites

I tried to implement this idea but couldn't figure out how to do it. Any ideas?

There is a 'VI Activation' event that you could use, however it has been a while since I used it.

Ton

  • Like 1

Share this post


Link to post
Share on other sites

There is a 'VI Activation' event that you could use, however it has been a while since I used it.

Yes, this is what you need. This is actually what the RCF is using.

PJM

  • Like 1

Share this post


Link to post
Share on other sites

Auto-hide and show the dialog when the owning VI is not the top-level BD anymore.

Here's what I came up with. I'm having trouble making an 8.2 version that works, but I have a long weekend coming up :).

CaseSelect.zip

Share this post


Link to post
Share on other sites

Here's another 8.6 version with a "Rename Case" option.

The .llb is version 8.2. I'd appreciate it if someone could test it and tell me if it works. I'd then be able to make a new VIP and update the main download.

Thanks,

Jim

CaseSelect.zip

_jdc_lib_rcf_caseselect.llb

Share this post


Link to post
Share on other sites

The .llb is version 8.2. I'd appreciate it if someone could test it and tell me if it works.

Nope, you set the reentrant type of the deamon VI, however LabVIEW 8.2 only supports plain reentrancy (reallocate), so you need to remove this property from you 8.2 version (I don't see any real harm done by creating a specific clone per structure, it is in a VI always active, and it will be killed when the VI is closed (I hope).

However I couldn't find the rename option (8.2), how should I do a rename? I was hoping for F2, or a right click option.

Ton

  • Like 1

Share this post


Link to post
Share on other sites

However I couldn't find the rename option (8.2), how should I do a rename? I was hoping for F2, or a right click option.

It's a right-click menu option on mine. What do you see?

post-7534-125301348178_thumb.png

Here's an 8.6 version implementing the F2 to rename.

I used the reentrancy I did because I was having trouble making a VIPM package that would call the vi dynamically. Perhaps I won't be able to do that for 8.2

Thanks for your help.

Jim

_jdc_lib_rcf_caseselect.llb

Share this post


Link to post
Share on other sites

Here's another version (for LV8.6) that sizes the panel to the size of the tree (based on the number of frames in the Case Structure) or the height of the screen, whichever is smaller. I like this so I don't have to resize it once it opens.

_jdc_lib_rcf_caseselect.llb

Share this post


Link to post
Share on other sites

Here's another version (for LV8.6) that sizes the panel to the size of the tree (based on the number of frames in the Case Structure) or the height of the screen, whichever is smaller. I like this so I don't have to resize it once it opens.

Can you update your official downloadto reflect your latest and greatest changes? Or is it not ready for prime time yet?

Share this post


Link to post
Share on other sites

Can you update your official downloadto reflect your latest and greatest changes? Or is it not ready for prime time yet?

I'll do that when I have time to update the description with the new features. What I really want to do is make a VIP but I'm struggling to make it work in LV8.2. I've killed LabVIEW on my home computer so I can't work on it until next week.

The discussion about my troubles is a few posts up. I believe I can make it work in 8.2 but the VIP won't, or, at least that's how I remember the trouble I had making the first package.

Share this post


Link to post
Share on other sites

 

[...] I'm struggling to make it work in LV8.2.

I've tweaked the version for LV 8.2 but am not happy with it; it has fewer functions than the 8.6 version.

  • Drag-and-drop of cases doesn't work.  The image below shows how I rearrange cases; it works in 8.6 but doesn't do anything in 8.2.
  • Insert and rename a case work, but delete doesn't.  Attempting it causes an error.

post-7534-12570317927_thumb.jpg 

I've attached an llb for 8.2.  I think I'm done developing this for 8.2 unless someone can help...  Please?  Thanks.

caseselect.llb

Share this post


Link to post
Share on other sites

It would be nice if we could drag and drop a case name into the VI.

For instance by selecting a case with the 'ctrl' down.

This would not show the case, but allow for a drag and drop of the case name.

If you drop this into a string constant it would contain the name of the case you selected.

Ton

Share this post


Link to post
Share on other sites

It would be nice if we could drag and drop a case name into the VI.

For instance by selecting a case with the 'ctrl' down.

This would not show the case, but allow for a drag and drop of the case name.

If you drop this into a string constant it would contain the name of the case you selected.

Ton

I think I understand.  It's an interesting idea that I'd probably use myself.  It would be neater, perhaps, to drop it as a String constant instead of into one (unless you're building a macro).  I've added it to my list; lemme see what I can do.  

I've never tried to control a drag-drop operation from one VI into another.  Could be fun.  :wacko:

Share this post


Link to post
Share on other sites

Has there been any thought given to supporting the Event Structure, in addition to Case Structures? I'd like to be able to use this tool to display and navigate Event Structures, too -- that would be cool :)

I love this tool!

Share this post


Link to post
Share on other sites

Has there been any thought given to supporting the Event Structure, in addition to Case Structures?

I started with plans to include all multi-frame structures but immediately eliminated support for Stacked Sequences and soon found that an Event Structure's frame names aren't accessible.  I asked a question about this on NI's API community here, and it was added to a list of desired access to properties/methods here.  I thought there was another discussion with more comments, but I haven't been able to find anything.  I don't know if anything new was exposed in LV2009 because I don't have it yet.  It's on my list of features to add.

Share this post


Link to post
Share on other sites

I started with plans to include all multi-frame structures but immediately eliminated support for Stacked Sequences and soon found that an Event Structure's frame names aren't accessible. I asked a question about this on NI's API community here, and it was added to a list of desired access to properties/methods here. I thought there was another discussion with more comments, but I haven't been able to find anything. I don't know if anything new was exposed in LV2009 because I don't have it yet. It's on my list of features to add.

Cool, thanks for the update -- I hope NI does add this to the Scripting APIs.

Also -- just a thought -- It might be worthwhile to include a Roadmap section on the main page for the this tool, so that users (like me) can see what's in the works and any related info about why certain features are not possible due to scripting limitations.

Cheers,

Share this post


Link to post
Share on other sites

It would be nice if we could drag and drop a case name into the VI.

For instance by selecting a case with the 'ctrl' down.

This would not show the case, but allow for a drag and drop of the case name.

If you drop this into a string constant it would contain the name of the case you selected.

Ton

Ton,

I tried this but gave up when it didn't fall into place quickly, but I have uploaded CaseSelect 2.0.0 which contains my interpretation of your suggestion. It works by selecting the String Constant you want to add new cases to, you then double-click cases in CaseSelect to add them to the String Constant. I think it's faster this way than do drag-n-drop; it sure was easier to implement. It does switch cases as you click, but you can use the right-click context menu to highlight the selected String Control when you're done.

I've also added a feature to the renaming function. It finds all instances of the case being renamed and replaces them with the new name.

Jim

Share this post


Link to post
Share on other sites

I've uploaded version 3.0.0.4. I'll make a screen cast at the intersection of free time and a functioning home computer.

Share this post


Link to post
Share on other sites

At long last, I've added the ability to work with Event Structures to my CaseSelect JKI RCF plug-in. I haven't gotten as far as packaging it for 8.2, but I've attached a zip if you have LV2010 and want to try it.

post-7534-0-87711900-1294056398_thumb.jp

CaseSelect.zip

Share this post


Link to post
Share on other sites

At long last, I've added the ability to work with Event Structures to my CaseSelect JKI RCF plug-in. I haven't gotten as far as packaging it for 8.2, but I've attached a zip if you have LV2010 and want to try it.

post-7534-0-87711900-1294056398_thumb.jp

I've tried running your latest version of CaseSelect to work with Event Structures and i cant seem to make it work. Every time I click on an event Structure I get the CaseSelect window with nothing in it and get stuck in an endless loop. I ultimately need to kill the process to exit labview 2010 SP1.

Can you help?.

Share this post


Link to post
Share on other sites

I've tried running your latest version of CaseSelect to work with Event Structures and i cant seem to make it work. Every time I click on an event Structure I get the CaseSelect window with nothing in it and get stuck in an endless loop. I ultimately need to kill the process to exit labview 2010 SP1.

Can you help?.

[edit] Are you running the version from the post above yours, or did you download it from the download page?[/edit]

I can't tell what's happening yet. I thought it might be a required something that I have in my development environment and you don't, but I can't find anything that isn't called from the plugin's directory. Would you try running my Abort.vi when you get stuck in the endless loop and let me know which VIs it says are running? The Abort.vi is often useful to stop this kind of loop without ditching your entire process.

You may be the only one to try the Event Structure feature or you may have a unique situation.

Share this post


Link to post
Share on other sites

First of all I want to say the Case Select tool is awesome!

I hope this is the right place to post about potential bugs. Something, either the Case Select plugin or the RCF is messing with my code. When I activate the tool some of the string constants in my cases get resized to one character. The size to text setting is still checked. This does not always happen but seems to happen when I activate the tool with a "section" separator selected.

I am using LabVIEW 2011, Case Select 3.0.0.4 and RCF 1.0.2.208-1 on Windows 7.

Test Case Select.vi

Share this post


Link to post
Share on other sites

Thank you for the kind word and bug report.

I've noticed the String constant behavior but have blamed it on 2011. I didn't experience before 2011 so it's definitely associated with the new version. CaseSelect examines every String constant when renaming cases; perhaps something is amiss in that operation. I'll have to try working on a VI without using it to see if it's in my plugin.

I can't duplicate this with your attachment. Can you list the steps required to cause this issue?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.