From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-17-2017 03:24 PM
I was working on a VI to support some legacy C code... I attempted to change a single numeric constant into an array and it failed. LabVIEW will flash an array icon for a few ms and then it will instantly go back to a single constant.
Steps to replicate:
Tested:
LabVIEW 2016 v16.0f2 (32 bit) on Windows 10 64bit,
LabVIEW 2017 v17.0 (32 bit) on Windows 10 64 bit
LabVIEW 2016 v16.0f2 (32 bit) on Windows 7 64 bit
07-17-2017 03:51 PM
@BowenM wrote:
I was working on a VI to support some legacy C code... I attempted to change a single numeric constant into an array and it failed. LabVIEW will flash an array icon for a few ms and then it will instantly go back to a single constant.
Steps to replicate:
- Create a new VI
- Open block diagram
- Place a new numeric constant (dbl) on diagram
- Right click -> representation -> single (sgl)
- Right click -> change to array
Tested:
LabVIEW 2016 v16.0f2 (32 bit) on Windows 10 64bit,
LabVIEW 2017 v17.0 (32 bit) on Windows 10 64 bit
LabVIEW 2016 v16.0f2 (32 bit) on Windows 7 64 bit
Same problem on my machine
LabVIEW 2017 v17.0 (32 bit) on Windows 7 64 bit
The reverse is also a bug. If you have a SGL array constant, you can't "Change to Element"
07-17-2017 04:03 PM - edited 07-17-2017 04:08 PM
@BowenM wrote:
- Create a new VI
- Open block diagram
- Place a new numeric constant (dbl) on diagram
- Right click -> representation -> single (sgl)
- Right click -> change to array
Comments:
Tested in LabVIEW 2016, 32-bit. I'm not sure why Dbl works immediately and Sgl requires extra steps. I tested several, but not all, Integer representations, and they worked. Extended does not work. Clusters seems to work (the Error Constant was my test example).
Bob Schor
07-17-2017 04:38 PM
@Bob_Schor wrote:
@BowenM wrote:
- Create a new VI
- Open block diagram
- Place a new numeric constant (dbl) on diagram
- Right click -> representation -> single (sgl)
- Right click -> change to array
Comments:
- If you leave it as a Dbl, it works.
- If you change it to a Sgl, then "Change to Indicator" or "Change to Control", then "Change to Array", it works.
- If you really want an Array of Constants, you just need to do one more "Change to Constant".
Tested in LabVIEW 2016, 32-bit. I'm not sure why Dbl works immediately and Sgl requires extra steps. I tested several, but not all, Integer representations, and they worked. Extended does not work. Clusters seems to work (the Error Constant was my test example).
Bob Schor
Those are my observations as well.
07-17-2017 10:38 PM
This right click menu item is actually a plugin so you can see where the error is coming from in Change Constant To Array Or Element.llb\Execute Change Constant To Array Or Element.Load Dig Num Config.vi. The VI is upset with the Display Format being entered in this specific cast [9 13] although I can't recreate the same problem by just feeding those inputs manually to the same BD items. The error produced by that property node causes the transaction to fail but this error happens after the array-scalar swap which is why you see the blinking behavior.