LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Scripting "Retain All Errors"

Is there a way to script this?

paul_cardinale_0-1668190137607.png

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 1 of 7
(1,673 Views)

I also couldn't find a equivalent option through scripting, let's see if someone else can find the right node.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 7
(1,659 Views)

When there's no official scripting property/method, I always try playing with the BasicObjectFlags:

 

Script Retain All Errors.png

Message 3 of 7
(1,606 Views)

@raphschru wrote:

When there's no official scripting property/method, I always try playing with the BasicObjectFlags:

 

Script Retain All Errors.png


I had already discovered that bit 17 of the BOF corresponds to “retain all errors”, but BOFs scare me.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 4 of 7
(1,579 Views)

@paul_cardinale wrote:

@raphschru wrote:

When there's no official scripting property/method, I always try playing with the BasicObjectFlags:

 

Script Retain All Errors.png


I had already discovered that bit 17 of the BOF corresponds to “retain all errors”, but BOFs scare me.


If ever NI developers choose to change the bit field mapping across versions, it may result in Chaos, but this does looks promising when validated for each version.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 5 of 7
(1,561 Views)

@raphschru wrote:

When there's no official scripting property/method, I always try playing with the BasicObjectFlags:


Another option, which is probably safer, is to manually create and save a VI with an object which has the relevant properties, and then copy the object from that VI programmatically.


___________________
Try to take over the world!
0 Kudos
Message 6 of 7
(1,548 Views)

@tst wrote:

@raphschru wrote:

When there's no official scripting property/method, I always try playing with the BasicObjectFlags:


Another option, which is probably safer, is to manually create and save a VI with an object which has the relevant properties, and then copy the object from that VI programmatically.


Though a workaround with additional steps in the scripting, this sounds more robust.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 7 of 7
(1,492 Views)