Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69024

How to use LStrHandleArray in CVI

$
0
0

Hello,

 

I have compiled LabVIEW drivers as a dll and am calling them from LabWindows CVI. One of my drivers has an arrray of strings. Each element will contain a 16 bit Hex number (0 - FF). I need to know how to define the LStrHandleArray in CVI, and also how to set it equal to a defualt value which will be passed to the LabVIEW driver. I also have another driver that is returning an array of the same format. Please keep in mind my C experience is minimal.

 

This code will build:

 

LStrHandleArray  TXBuffer[10] = {0,0,0,0,0,0,0,0,0,0};

 

This code will not build:

 

LStrHandleArray  TXBuffer[10] = {CA,0,0,0,0,0,0,0,0,0};

 

I get a build error: " 28, 34   Undeclared identifier 'CA'."


Viewing all articles
Browse latest Browse all 69024

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>