08-05-2015 10:31 AM
Hi all,
I am developing a script to place a Boolean array to Number node and change its
output configuration. I am able to create the node. But I am stuck on how to
set the output configuration using script property nodes. Please help!!
Thanks in advance.
08-05-2015 10:49 AM - edited 08-05-2015 10:53 AM
In order to access those configuration properties, you would need the Object Class to be linked to the actual Boolean Array to Number class.... but I can't find that class anywhere in there.
If you run the Nodes[] output through a For loop and read the ClassName property, you end up with "Function" each time, so it looks like you may be out of luck.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
08-05-2015 10:55 AM
Yeah I did notice that. but no other go. I definitely have to do it using scipting
08-05-2015 11:08 AM - edited 08-05-2015 11:19 AM
You can go to View > Class Browser to search for a class that might have these properties (like the whole Conversion palette), but I can't find anything.
Default is Adapt to Source... could this work without changing the property?
A workaround could be to create the FXP converter you want elsewhere in a template and copy it in to your target VI instead of creating a new node.
This could help you there. (Select, Copy, Paste invoke nodes)
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
08-06-2015 12:56 AM
I seem to remember that the output configuration is not exposed in the scripting API for any function. As James suggests, there's a general trick you can use for missing parts of the API, which is to create the relevant code manually and then copy it over.