06-02-2008 12:05 PM
06-02-2008 12:50 PM
06-02-2008 01:44 PM
I'm new to dll work; how did you determine the return type? I did a trial and error to get something that worked. I didn't see anything in the prototype that said what the return should be. That function description cited it as a 1 byte Part Number but 1 byte wasn't an option in the config settings.
The vi is actually a test bed, not real code. I'm using that architecture to learn how to talk to dlls. Opening and closing it seemed the right thing to do, based on my limited work thus far with VISA and the one dll Labview example I found from Silicon Labs.
Tay
06-02-2008 02:23 PM
// Type definitionsThus, the return value is an integer (I32 in LabVIEW).
typedef int CP210x_STATUS;
06-02-2008 02:38 PM
Ah, ye olde light dawns!
I see. I wasn't understanding the documentation fully.
Excellent help!
Tay