Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Manipulating Arrays for Galvo Control in B-Scan

Hello everyone,
I’m working on a project that involves controlling galvo mirrors for horizontal and vertical scanning, similar to a B-scan. I need assistance with manipulating arrays for this purpose. Specifically, I am looking to achieve the following:
  1. Ascending and descending order of array values.
  2. Interchanging the X and Y values for horizontal and vertical scanning.
Could anyone provide guidance or examples on how to implement these manipulations? Any help would be greatly appreciated!
Thank you!
Download All
0 Kudos
Message 1 of 4
(123 Views)

I recommend to do a "save fore previous" ((e.g. 2019) and attach again so more can see your program. Many don't have LabVIEW 2024.

0 Kudos
Message 2 of 4
(99 Views)

OK, I had a chance for a quick look.

 

  • Please clan up your file names. Don't attach a VI named "wavePosSub (1).vi" it the caller wants "wavePosSub.vi"
  • Please don't maximize the front panel and diagram to the screen.
  • If you attach a fine ending in "working", can we assume that the result is correct and you are just asking to simplify the code?
  • There are more efficient way to tell if a number is even or odd.
  • I doubt there is any need for temporary 3D arrays.

 

We don't have your hardware, so please reduce the code to the array generation so we can run it.

0 Kudos
Message 3 of 4
(78 Views)

Things get significantly easier if you would clean up and simplify your code. You don't evenneed any subVIs.

 

Here's a literal translation of your code. Use it as a start to implement your new requirements.

 

altenbach_0-1757181853390.png

 

0 Kudos
Message 4 of 4
(68 Views)