LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Only one Vi Debugging with LVOOP


@paul_cardinale wrote:


When I try to do that in my pop-up menu code, I always get Error 91 out of "Variant to Array".

oc.png

Probing the "Value" variant, it looks good:

'TestFrame Light Settings.lvclass': TestFrame Light Settings.lvclass [LabVIEW Class]

TestFrame Light Settings.lvclass


I was able to work around that.  But now this piece of test code throws error 1106,  Why?

1106.png

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 11 of 29
(506 Views)

@paul_cardinale wrote:

@paul_cardinale wrote:


When I try to do that in my pop-up menu code, I always get Error 91 out of "Variant to Array".

oc.png

Probing the "Value" variant, it looks good:

'TestFrame Light Settings.lvclass': TestFrame Light Settings.lvclass [LabVIEW Class]

TestFrame Light Settings.lvclass


I was able to work around that.  But now this piece of test code throws error 1106,  Why?

1106.png


Not sure, that seems to be no problem in a VI that's in the normal context..

0 Kudos
Message 12 of 29
(502 Views)

Here's my attempt.  It doesn't work, and I can't figure out how to fix it.

To try it:

  1. Figure out where LabVIEW's default data directory is
  2. Put the attached .llb in “<default data directory> \PopupMenus\edit time panel and diagram\
  3. Start (or close and restart) LabVIEW
  4. Open a VI with an LVClass object on the front panel
  5. Right-click on the object
  6. Select "Edit Object Data..."
  7. When the dialog box opens, click on "Apply Changes"

The code will pause at a breakpoint in "Execute Edit Object Data,vi".  The error occurs after that (1106 or 1527).  Notice that the code tries every possible context; they all fail.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 13 of 29
(482 Views)

There's a missing VI (Edit Object Data Presenter.vi, or something like that)...

0 Kudos
Message 14 of 29
(472 Views)

wiebe@CARYA wrote:

There's a missing VI (Edit Object Data Presenter.vi, or something like that)...


When I open it, nothing is missing.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 15 of 29
(455 Views)

@paul_cardinale wrote:

wiebe@CARYA wrote:

There's a missing VI (Edit Object Data Presenter.vi, or something like that)...


When I open it, nothing is missing.


When I open it, Edit Object Data Presenter.vi is missing...

0 Kudos
Message 16 of 29
(443 Views)

wiebe@CARYA wrote:

@paul_cardinale wrote:

wiebe@CARYA wrote:

There's a missing VI (Edit Object Data Presenter.vi, or something like that)...


When I open it, nothing is missing.


When I open it, Edit Object Data Presenter.vi is missing...


OK.  Fixed that.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 17 of 29
(433 Views)

I can't get it working either. At least not with XML.

 

I'm pretty sure it's something in LabVIEW preventing this.

 

Flattened data seems to work. I have only tried this with copy-paring data, so not with automated string manipulation. However, copy-paste flattened data works, while copy-pasting XML doesn't.

0 Kudos
Message 18 of 29
(413 Views)

wiebe@CARYA wrote:

I can't get it working either. At least not with XML.

 

I'm pretty sure it's something in LabVIEW preventing this.

 

Flattened data seems to work. I have only tried this with copy-paring data, so not with automated string manipulation. However, copy-paste flattened data works, while copy-pasting XML doesn't.


OK.  Do you have anything in your bag of tricks to convert flattened data between cluster and class?

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 19 of 29
(400 Views)

@paul_cardinale wrote:

wiebe@CARYA wrote:

I can't get it working either. At least not with XML.

 

I'm pretty sure it's something in LabVIEW preventing this.

 

Flattened data seems to work. I have only tried this with copy-paring data, so not with automated string manipulation. However, copy-paste flattened data works, while copy-pasting XML doesn't.


OK.  Do you have anything in your bag of tricks to convert flattened data between cluster and class?


I'll have to dig. Deep.

 

I'm sure OpenG has tools for that (never used them though).


IIRC, from an cluster to an array  of variants to flattened data back to the cluster isn't that hard.

 

I can't remember I ever had to decorate a cluster back to a class, back to a variant (if that's needed).

0 Kudos
Message 20 of 29
(394 Views)