LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

LStrHandleArray Documentation

#include <stdio.h>
#include <string.h>
#include "API.h"
#include "extcode.h"
#pragma pack(1)

void main()

{

LStrHandleArray Mono_name = NULL;
LStrHandleArray Mono_ID = NULL;

 

GetAllComponentsFromConfigBrowser(&Mono_name,&Mono_ID);

 

printf("Mono_name.dimsize = %d\n", (*Mono_name)->dimSize);
printf("Mono_name.String = %d\n", (*Mono_name)->String);
printf("Mono_name.String[0] = %d\n", (*Mono_name)->String[0]);

 

return;
}

 

 

It triggers the following error when I call the function and doesn't get to the prints. So there's no point in writing any other code after calling the function right now.

 

> ntdll.dll!_RtlReportCriticalFailure@120() 
ntdll.dll!_RtlpReportHeapFailure@40() 
ntdll.dll!_RtlpHpHeapHandleError@120() 
ntdll.dll!_RtlpLogHeapFailure@240() 
ntdll.dll!RtlSizeHeap() 
combase.dll!7622e2cb() 
combase.dll![Frames below may be incorrect and/or missing, no symbols loaded for combase.dll] 
[External Code]

 

0 Kudos
Message 11 of 14
(452 Views)

I meant the LabVIEW project and VIs to create that DLL!

 

It's still not much more than showing the instruction manual for your car. The car is still somewhere totally different!

Rolf Kalbermatter
My Blog
0 Kudos
Message 12 of 14
(446 Views)

I can't share the LV VI as it is for Horiba company and they sell it to the customers. This VI specifically is supposed to get names and IDs of all the spectrometers that are connected to the PC. I have to reach out to them probably for further troubleshooting.

0 Kudos
Message 13 of 14
(442 Views)

Then make a dummy VI instead that has the same connector pane and returns some static string arrays! And upload that with the according project!

Rolf Kalbermatter
My Blog
0 Kudos
Message 14 of 14
(435 Views)