therealkilkenny
2008-08-15 18:40:07 UTC
Hi, I'm working on getting some LabVIEW up and running to control a PCI-e Ultrasonic card. I've got a .NET wrapper dll and i've got it working with most of the basic functions but i've come across something that i don't know how to solve. I am not a very experienced programmer (a complete .NET and OOP newbie). I've already got LabVIEW up and running for a multi channel PCI system and that was relatively straight forward using the dll import wizard with C dll's. This time round i have to create the code from scratch as it's in .NET (by the way, does anyone know of a way of doing this automatically/ programatically?). What i need to do is to read out an array of int's using an invoke node (from a 'method' - not entirely sure what that is). The invoke node requires me to put in an array of ints. However when i do this i only get back out what i put in (i.e. an array of 1's in give an array of 1's out rather than the expected array of random numbers in hardware simulation mode). The problem, so it seems, is that using LabVIEW i am writing the array as pass by value whereas i need to write the array as a pass by reference. However, the input on the invoke node will only take an array of int's, nothing else. Is this a basic problem of using LabVIEW to do this kind of work or is there something that i'm missing (more than i'm already missing by not knowing much about .NET or OOP). Can't post any code as this machine won't let me access the .NET assembly. Thanks, Phil.