Greetings,
I followed this guide here:
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000oyaHCAQ&l=en-US
And I was attempting to send a few parameters to python from Labview, run a query using pyodbc, and then return the results into an array.
Here is my Labview program:
As the guide shows I created a cluster of my datatytpes and put them into a 1D array.
I tried to remove the strings and just do simple integer returns, but that yields the same error. I'm not sure why Labview seems to be erroring for no reason on this data return. Any advice or critique would be greatly appreciated.
Here is what I am returning from Python, it is a list of tuples similar to the guide above:
[('default', 4128, 'Record Length Ch 1', 128, 'samples', 'RW', 'init', 'Initial entry'), ('default', 4136, 'Input Dynamic Range Ch 1', 0, 'Vpp', 'RW', 'init', 'Initial entry'), ('default', 4384, 'Record Length Ch 2', 128, 'samples', 'RW', 'init', 'Initial entry'), ('default', 4392, 'Input Dynamic Range Ch 2', 0, 'Vpp', 'RW', 'init', 'Initial entry'), ('default', 4640, 'Record Length Ch 3', 128, 'samples', 'RW', 'init', 'Initial entry'), ('default', 4648, 'Input Dynamic Range Ch 3', 0, 'Vpp', 'RW', 'init', 'Initial entry'), ('default', 4896, 'Record Length Ch 4', 128, 'samples', 'RW', 'init', 'Initial entry'), ('default', 4904, 'Input Dynamic Range Ch 4', 0, 'Vpp', 'RW', 'init', 'Initial entry'), ('default', 5152, 'Record Length Ch 5', 128, 'samples', 'RW', 'init', 'Initial entry'), ('default', 5160, 'Input Dynamic Range Ch 5', 0, 'Vpp', 'RW', 'init', 'Initial entry'), ('default', 5408, 'Record Length Ch 6', 128, 'samples', 'RW', 'init', 'Initial entry'), ('default', 5416, 'Input Dynamic Range Ch 6', 0, 'Vpp', 'RW', 'init', 'Initial entry'), ('default', 5664, 'Record Length Ch 7', 128, 'samples', 'RW', 'init', 'Initial entry'), ('default', 5672, 'Input Dynamic Range Ch 7', 0, 'Vpp', 'RW', 'init', 'Initial entry'), ('default', 5920, 'Record Length Ch 8', 128, 'samples', 'RW', 'init', 'Initial entry'), ('default', 5928, 'Input Dynamic Range Ch 8', 0, 'Vpp', 'RW', 'init', 'Initial entry')]
Here is a snippet of my Python: