02-06-2008 06:14 PM
02-07-2008 06:00 PM
Hi asddf,
Are you receiving a specific error associated with the function when you try to call it? Call you successfully call the dll for all other functions?
You may want to consider contacting the manufacturer since it sounds specific to the dll, and they should have more information about the functionality.
Regards,
Lauren
02-07-2008 07:06 PM
03-25-2008 09:56 AM
03-26-2008 11:07 AM
Hi,
If the function you wish to call contains complex data types, you need to manually use a Call Library Function Node function in LabVIEW to directly call the DLL, providing the prototype within the configuration dialog. If your complex data type is a struct with more than primitive data types (int, double, char), it is easiest to create a wrapper DLL from a C-based language. For more information on this, take a look at the following articles:
Call a Dynamic Link Library from LabVIEW
Regards,
Lauren
05-15-2008 01:03 AM
05-15-2008 01:05 AM
05-18-2008 09:17 AM
07-02-2008 11:37 AM
Finally, asddf or goblinsqueen, can I contact you directly, in order to show my routines (I'm newbbie in the Labview world, so I wish to know if all is ok...)... my skpye account is "teclis77"
@asddf wrote:
Thank you very much for your reply. I have solved the problem after posting this message. I initialized an array with a size of dwordcount and passed it as the first parameter to "long PmcaGetData(unsigned long *buffer, long channel, long dwordCount)", and it worked.
07-03-2008 01:03 AM
Hi Dariush,
Please use the attached vi to get data from the MCA.
You might not be able to pass SetTime (the output is a string) to StartAcquisition (the input is an integer). You just set the time use SetTime, and pass a non-zero integer to the StartAcquisition to get the time, if no SetTime is used, it uses the current time of the computer as the start time.
Cheers.