LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

missing some letters in string

Well guys, I have one VI that I write some text at a string and I can read it from another VI.

Always works nice for me, but since some days ago... I start to have some problems

 

When I wrote a text like: "Hey, my name is Eduardo"

 

when I tryed to read in the other VI, it's missing some letters at the beggining

it's appearing like: "ame is Eduardo" 

 

 

Some one know what is happening? Because I already tryed change the strings, replace for a new one.. but still the same!

 

Thanks

0 Kudos
Message 1 of 7
(3,488 Views)

How are you reading the string from the other VI? Global Variables, Shared Variables? What happens when you create a new set of VIs and replicate the code; do you see the same behavior?

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 2 of 7
(3,480 Views)

This can't be answered without seeing the code. Offset wired? Are you sending the whole string at one time or individual characters? With a Queue? Notifier? AE? By wire? etc etc

Richard






0 Kudos
Message 3 of 7
(3,471 Views)

Well, This VI is in LV 7.1

I use create a binary header to nominate the file...

 

It always work good, but since some days ago start to give me problems with the string that show the name of the file.

 

Yes, I tryed to duplicate the code, but I receive the same error, I'm starting to think about reinstall LV 7.1

maybe something happened I don't know... but if it always work and now start to have problems and I didn't change anything.

 

Well I'm uploading the images from write and read, and bouth Sub-vi's that make this ID:

 

grava.JPG

 

mostra.JPG

 

The problem is happen where I make a red circle.

Message Edited by EduU on 12-21-2009 07:40 AM
Download All
0 Kudos
Message 4 of 7
(3,470 Views)

Hi EduU,

 

are the two block diagrams in any relation to each other (apart from accessing a file)?

 

Your VIs have always been horrible to read, these ones too. Right-to-left wiring, no straight wires...

What is happening in the subVIs? One is taking that string as input, the other has this string as output. The magic is hidden in the (not-shown) subVIs...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 5 of 7
(3,444 Views)

Hi EduU,

 

in CreateHeader you concat several strings to build a file header, in StripHeader you try to decrypt that header.

 

Are you sure you read the same header? Have you checked the other results of StripHeader (using highlighted execution and probes)? If all other header info is correct, then the last string function with offset 10 is maybe the problem. Do some debugging using the mentioned techniques and tell us the results...

Best regards,
GerdW


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

This is not something we can debug by looking at the picture of a string control terminal.

 

Please attach the actual code and maybe some data too.

 

Could it be you just need to make your controls or indicators a little wider so all the containing text shows?

0 Kudos
Message 7 of 7
(3,417 Views)