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.
08-25-2018 12:13 PM
Hi,
What is the C generated code for a LabVIEW VI/block diagram using matrices?
This:
matrixVar[row][column] = value;
Or this?
matrixVar[row*Ncolumns + column] = value;
Thanks,
Ivan
Solved! Go to Solution.
08-25-2018 12:42 PM - last edited on 03-19-2024 10:49 AM by Content Cleaner
LabVIEW (Plain, RT, etc.) does not generate C code. It processes the diagram into machine code (via DFIR and LLVM).
(Details)
(... or are you talking about this rare beast for embedded targets?)
08-25-2018 02:29 PM - last edited on 03-19-2024 10:50 AM by Content Cleaner
Yes, I am referring to that rare beast for embedded targets (why called rare beast?).
https://www.ni.com/en/support/downloads/software-products/download.labview-c-generator-module.html
08-25-2018 03:01 PM - edited 08-25-2018 03:11 PM
@LVCCGUser wrote:
Yes, I am referring to that rare beast for embedded targets (why called rare beast?).
Thanks, I noticed your other thread.
I called it "rare" because I almost never see it mentioned here. Maybe there is a more suitable forum (embedded, etc. ??), hard to tell for me. 😄
08-25-2018 03:12 PM
Hi,
What is the C generated code for a LabVIEW VI/block diagram using matrices?
This:
matrixVar[row][column] = value;
Or this?
matrixVar[row*Ncolumns + column] = value;
Thanks,
Ivan
08-25-2018 03:20 PM
Posted this question on that Labview Embedded threat. Thanks!
08-25-2018 04:31 PM
LabVIEW multidimensional arrays are an array with the multiplication of all dimension sizes elements, not an array of pointers! It is also what most C libraries use because it is more standard and easier to handle.
Matrixes being in principle simply 2-dimensional arrays make no difference!