ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview.exe File could not be opened.

Hello, I am trying to open a .csv file in a dll where I linked to my LabVIEW VI. However, no matter what I try I always end up with this error:

berkay123_1-1620830730774.png

I can easily run my code in labwindows with an executable. Any help is appreciated. I am attaching my VI and dll source codes.

 

(I could not load the .h file so I am writing here)

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
int ReadF(char* ColorMap);
struct Color_decider {
char Color_maps[10];
int C[256][3];
};
char *strdup(char *org)
{
int org_size;
static char *dup;
char *dup_offset;
/* Allocate memory for duplicate */
org_size = strlen(org);
dup = (char *)malloc(sizeof(char)*org_size+1);
if( dup == NULL)
return( (char *)NULL);

/* Copy string */
dup_offset = dup;
while(*org)
{
*dup_offset = *org;
dup_offset++;
org++;
}
*dup_offset = '\0';

return(dup);
}

Download All
0 Kudos
Message 1 of 1
(1,150 Views)