DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

String data passed to DDC_SetDataValues

Solved!
Go to solution
Using the DIAdem connectivity library, you can call DDC_SetDataValues to store data in a channel. If the channel contains string data, what is the format for the values parameter? My guess would be a sequence of back-to-back null-terminated strings but the API documentation does not say.
0 Kudos
Message 1 of 4
(4,227 Views)

Hi hrodstein,

 

Are you using NI's software CVI, or are you using a MicroSoft C compiler?

 

Brad Turpin

DIAdem Product Support Engineer
National Instruments

0 Kudos
Message 2 of 4
(4,211 Views)

I'm using MS Visual C++ 2005 with the DIAdem Connectivity Library DLL API.

 

0 Kudos
Message 3 of 4
(4,189 Views)
Solution
Accepted by topic author hrodstein

I figured this out. When storing string data, DDC_SetDataValues takes a pointer to an array of pointers to C strings, like DDC_GetDataValues.

 

This is documented for  DDC_GetDataValues. It should also be documented for DDC_SetDataValues.

0 Kudos
Message 4 of 4
(4,177 Views)