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 CIN

Hello

 

i am trying to read a labview string in c string format. i am using CIN in my code. but when i run the code it Hangs the VI .

attchment include My C program which is runing fine as long as C is conserned.my labview code and CINB.lsb file. if someone can suggest where i am wrong....

 

Regards

0 Kudos
Message 1 of 3
(3,018 Views)
I do have one question: Why are you using a CIN? CINs are obsolete technology and should only be used if you have old code that still needs to be supported. For new code you should be using shared libraries.
0 Kudos
Message 2 of 3
(2,993 Views)

CINs do not allow to configure the parameter types but always work with LabVIEW native data. A C string is NOT a LabVIEW native datatype so you cannot do what you want to do in a CIN.

 

There is no problem to do this in a shared library since the Call Library node allows you to configure each individual parameter to pass LabVIEW data either natively or in converted C datatypes.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 3 of 3
(2,975 Views)