08-01-2022 02:22 PM
Yes. There is a function to do what you want.
Convert a big picture to array takes time.
08-01-2022 03:41 PM - edited 08-01-2022 03:42 PM
Here's probably all you really need (currently using fixed H position, but that can easily be changed, of course):
08-02-2022 07:52 AM
Thank you. This does all the array conversions for me and is a much simpler implementation.
08-02-2022 08:19 AM
This is so cool! This should be one of the best answers. Come on Jim1234!
08-02-2022 08:20 AM
What are the names of the four blocks you are using there? I want to find them.
08-02-2022 08:46 AM
@GRCK5000 wrote:
What are the names of the four blocks you are using there? I want to find them.
For a picture like this (with dotted line, LabVIEW version#, ...) :
you can simply download the image, and drag & drop on a diagram.
It will be converted to diagram automatically.
The diagram is embedded inside the image.
08-02-2022 09:35 AM
Thanks for sharing this info, George!. I always wonder why people post pictures instead of attaching a block diagram.
08-02-2022 09:59 AM - edited 08-02-2022 10:00 AM
@GRCK5000 wrote:
Thanks for sharing this info, George!. I always wonder why people post pictures instead of attaching a block diagram.
I typically show a picture AND attach a VI (see here). Good enough? 😄
While snippets are OK for very (very!) simple code, they lose a lot of metadata compared to the actual VI (e.g. settings, connector pane assignment, etc.).
Note that George's code still does the expensive dance from picture data to 2D array and immediately back to picture data. Flatten/unflatten an image just to change a few scalar cluster elements is obviously not needed and my code bypasses it completely. Definitely more efficient! Have you tried?
08-02-2022 11:45 AM
Yes. if both images are constant, you can do the convert before enter the loop.
08-02-2022 01:12 PM
My point was that you can operate on the pink cluster to adjust the position. No need to do the detour over the blue 2D array (inside or outside the loop) 😄