LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

strings with more than 128 characters

I use LabVIEW to communicate with MS SQL Server 7 with SQL Toolkit. All is
correct exept when I send a string that contains more than 128 characters
that is containing a [']. When my string is less than 128 characters, I
use
["] to be able to send strings containing ['] and it works fine.

Details:
< 128 characters, no ['] : works fine, string surrounded by ['] (by default)
> 128 characters, no ['] : works fine, string surrounded by ['] (by default)
< 128 characters, with ['] : works fine when string surrounded by ["]
> 128 characters, with ['] : doesn't works, also when surrounded by ["]
> 128 characters, no ['] : doesn't works, also when surrounded by ["]

The problem come from VI _SQLCIN and the error code is 673
492112. Labview
says that my string is too long.

My problem is how can I send strings of more than 128 characters containing
[']?
0 Kudos
Message 1 of 3
(3,001 Views)

I see no answer to this ancient question, but I am also having this problem (Labview 8.0).  Is there a solution?  I get the string from a VISA read and converty it to a byte array immediately anyways, so if there is a way to get the visa read to output a byte array, that would work for me as well.

 

xxxxxxxxxx

 

My bad, strings are not limited to 128 bytes, the problem was elsewhere....

0 Kudos
Message 2 of 3
(2,696 Views)

Hi Steve,

 

how is your VISA question related to the original (and yes, ancient) question?

VISA only does output strings, so you have to convert to whatever you need...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 3
(2,681 Views)