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

U16 U32 output and input from dll using call library node function

$
0
0

I have the problem that i need to send data and get data from and to  functions in a dll. However i having problems with getting the data, not sure if is arrays or not, from the manual the two are descrided as below.

 

--------------------------------------------------------------------------------------------------------

short CVICDECL MSA_read_data(short mod_no, unsigned long from,
unsigned long to, unsigned long * buf, short add);

--------------------------------------------------------------------------------------------------------

Input parameters:

     mod_no                     module number (0 - 3)

     from                          1st address to read (0 – POINTS_NO - 1)

     to                               last address to read (from – POINTS_NO - 1)

     *buf                          pointer to data buffer to be filled

     add                            1 – add read values to the buffer, 0 – rewrite buffer contents

Return value:                 0  no errors, <0   error code (see msa_def.h)

 

 

And.

 

--------------------------------------------------------------------------------------------------------

short CVICDECL MSA_fill_memory(short mod_no, unsigned long from, unsigned long to, unsigned short fill_value);

--------------------------------------------------------------------------------------------------------

Input parameters:

     mod_no                     module number (0 - 3)

     from                          1st address to fill (0 – POINTS_NO - 1)

     to                               last address to fill ( from  – POINTS_NO - 1)

     fill value                    value written to the MSA memory

Return value:                 0  no errors, <0 error code (see msa_def.h)

The procedure is used to fill a specified part of the memory of the MSA module ‘mod_no’ with the value ‘fill_value’.

 

 

However i´m not sure if the *buf should be a U32 pointer to an array or if the U16 fill value should be an array or a just a number?

 

my dll sofare is attached. 

 

 


Viewing all articles
Browse latest Browse all 66700

Trending Articles



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