02-21-2022 03:36 PM
Hello all,
I am having an issue using the Sort 1D Array.vim which allows you to pass in a custom "less-than" function to sort things.
In my case particularly, I am sorting DAQmx physical channels by order of PXI#, Slot#, and then ai#.
I have coded the less-than function this way:
When I attempt to connect this to "Sort 1D Array.vim", I get this:
I seemingly have done this correctly, however, it doesn't work...
I would greatly appreciate some help.
Solved! Go to Solution.
02-21-2022 03:46 PM - edited 02-21-2022 03:48 PM
If you look at the shipping example (lesson 2a), the connector pane is actually different for the VI refnum scenario. Maybe change to that and see what happens....
02-21-2022 03:50 PM
I switched the tunnel pattern to match that example but I still get broken wires when attempting to wire it into Sort 1D Array.vim...
02-21-2022 03:52 PM
It would help if you could attach the VI.
02-21-2022 03:58 PM
Attached is the "less-than" VI for DAQmx physical channels.
I also attach a vi demonstrating the various ways i've attempted to connect this to 1D sort.
(I'm using LV2021)
02-21-2022 04:15 PM
Sorry, I only have LabVIEW 2020 here...
02-21-2022 04:20 PM
Attached LV2020 version
Thanks for trying to help!
02-21-2022 04:51 PM
removing the two extra terminals again, it is unbroken here using the strictly typed static reference.
02-21-2022 06:35 PM
altenbach,
Thanks for your help. I made a stupid mistake and didn't wire up the array of DAQmx physical channels to the array input before connecting the VI ref. Works fine now.