ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I adapt the following structure using Call Library function node?

I am using Call Library function and Adapt to type with LV8.2. How would the cluster items be assigned for the follwoing structure?

typedef struct job {
    char name[AT_BUFFER];    // name of attribute
    union {
        char *value;    // if num_value = 1, attribute value held here
        char **values;    // if num_values > 1, attribute values held here
    } val;
    unsigned int num_values;    // the number of values pointed to by attr_value
    struct job *next;    // next attribute in list
} job_t;

where value for AT_BUFFER is defines as
# define AT_BUFFER    1024

Thanks,
Rachana
0 Kudos
Message 1 of 2
(2,664 Views)
Please read the linked KnowledgeBase article on using Adapt to Type for the Call Library Function Node.  Thanks!
 
0 Kudos
Message 2 of 2
(2,629 Views)