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: 

shared variable cluster containing 'path' variable produces syntax error

I have come across a strange error while passing a custom typedef via shared variables in LV8.2. 

It seems that if the custom control contains a 'path' variable within a cluster (and the path is NOT THE ONLY variable), writing to the shared variable produces a runtime "syntax error" that cannot be handled.

I have included a simple project that demonstrates this.  There are two custom controls.  Both are clusters containing a path.  One has ONLY a path, the other has a path and a numeric.  The control w/ ONLY a path seems to work fine went passed via shared variables.  The control w/ path AND numeric produces syntax error. 

It seems that paths are not really supported with shared variables, which is not too big of a deal considering strings work just fine.  But, it is strange that a path in a cluster by itself works fine.  Add something else to the cluster and you have problems. 

Could someone at NI verify this and submit a bug report?

Thanks..   Off to fill my code with path->string conversions    ...doh!   😉  
0 Kudos
Message 1 of 2
(2,726 Views)
Hi WHAVEman,

This was reported to R&D (46AE2NX6) for further investigation.  It seems that you have a suitable workaround (using string controls instead of file paths).  Thanks for the feedback!!
Regards,
Ching P.
DAQ and Academic Hardware R&D
National Instruments
0 Kudos
Message 2 of 2
(2,702 Views)