From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Format into string problem

Sorry for asking a similar question I asked before, but I really have a problem with a string format. Even though I have already taken a look at the string format table, I still don't really understand.

 

In my attachment, I want my header to be in the format like this

 

Date/time              Flow unit             Pressure unit
23.3.2012/23:19     [flow unit]            [pressure unit]

 

time  flow1  flow2  flow3  pressure1  pressure2  pressure3

                                 :

                                 :

 

It said there are too few format and contained unwired or bad terminal

 

Which symbol should I put in this case to make my header look like what I want?

 

Thanks

 

0 Kudos
Message 1 of 6
(2,961 Views)

So instead of continue in the tread you already have, you made a new one. Not the best to do. 

 

But I'll try to give you a hint:

Format into string problem.png

 

So you are trying to insert 4 values, but you only specify 2 places to insert values ( the two %s ).

Where should LabVIEW insert the last two values ?
And do you want the enum numbers or the strings ?

You need to tell LabVIEW what it has to do with ALL the values.

 

Next your broken wire:

Format into string problem (brokenwire).png

What do you what to use for selecting a case ?

0 Kudos
Message 2 of 6
(2,952 Views)
The broken wire is for plotting. I haven't finished that part yet. So should i put 4 %s to make it work?
0 Kudos
Message 3 of 6
(2,948 Views)
I want enumerator because i want to limit the user to have the units i only provided
0 Kudos
Message 4 of 6
(2,945 Views)

You still didn't answer the question.
Do you what the value (number ) or the string (text) of the enum ?

As what you have wired now, you can the text with a %s or the number with a %d.

Try it out.

0 Kudos
Message 5 of 6
(2,942 Views)
Oh sorry i want the string of the enum. Ok i'll try. Thanks
0 Kudos
Message 6 of 6
(2,938 Views)