01-23-2019 02:08 AM
I have this function in dll:
DLL_EXPORT unsigned GetResultSample_Image(void * pHandle, unsigned long zero_based_index_of_result_sample, TestResult_Image * pTestStatus);
The parameter TestResult_Image is defined in .h like this:
struct TestResult_Image {
uint32_t position; uint8_t arrayFixedSize[64]; };
I don't know how can I configure call library function node for struct TestResult_MISImage.
Element arrayFixedSize is an array with 64 bytes.
Before calling function GetResultSample_Image I have to call function StartTest_Image, that is defined like this:
DLL_EXPORT unsigned long StartTest_Image(void * pHandle, TestParameters_Image * pTestParameters);
Where TestParameters_Image is defined like this:
truct TestParameters_Image { uint32_t voltage; uint32_t resolution1; uint32_t resolution2; uint32_t number_of_image_samples; };
In this function I define how many images I want from GetResultSample_Image function.
So If I type "number_of_image_samples=5", then the function GetResultSample_image will return 5 elements: TestResult_Image with 5 different elements "arrayFixedSized[64]"
I tried to configure function like this:
But it does not work and the LV crashes every time function is called.
02-04-2019 04:15 AM
Hi,
can you upload your code? It's hard to say anything if we don't see what's happening.
With which error LabVIEW ends?
Have you checked these links?