LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SIT - Problem using string controls

Hi,
 
I'm using a string control (a numerical value) to control a constant in Matlab with the SIT.
But when the SIT start, it initialize the control with the value of the Matlab constant, but it also receive a dummy character.
 
So, I want to know how to do this without having the dummy character.
 
Chris
0 Kudos
Message 1 of 4
(2,870 Views)

Greetings!

  Thanks for the message. Could you please let us know -

1) If you are using some sort of switch case or if statement in LabVIEW and modifying the control which then updates the constant.
2) Is there a specific reason you are using a string control and not a numeric control to control the constant in Matlab. You have to make sure the display is correct. Right click on the control and select the correct display.
3) What kind of dummy character you are getting, is it like \n or \r

Thanks and hope this helps
Good Luck
Best regards
Avi Harjani

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

Hi,

To answer your questions, I use string controls because data come from a table. So, I put these data in a string controls cluster that is mapped with the Matlab model. When I do chages in my table, no problem. The constant in Matlab get the new value. But at the initialisation, when labview's controls are initialize with the Matlab values, I get the value with dummy characters \r\n

For your first question, can you tell me more on what you exactly want to know.

Thanks for your help

Chris

0 Kudos
Message 3 of 4
(2,826 Views)


Greetings!
  Please right click on the string control and select normal display. It seems you have \codes display selected. Please refer to the attached snapshot. If this does not help you can programmatically remove the character. 
Thanks and Good Luck
Avi Harjani




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