LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plotting XY graph with two values and time

Yeah I just realized, thanks anyway.

0 Kudos
Message 41 of 55
(784 Views)

After entering the string format specifiers, the scan from string keeps skipping one of the values (There are 30 values and the 3rd has dissappered). The error message says I have one too many specifiers but thats not true. I have 30 specifiers and 30 default values. For the 3rd where it shoud say DBL, it is blank. What is the way around this issue?

0 Kudos
Message 42 of 55
(770 Views)

Again, we cannot troubleshoot a VI from a verbal description. Attach the newest code and we have a look.

0 Kudos
Message 43 of 55
(757 Views)

I sorted that problem, I made an error with one of the specifiers.

 

I have another question though.

In the radio file if some fields contain '_ or -' along with integers, would it change the specifier from %d to something else?

0 Kudos
Message 44 of 55
(750 Views)

Patel33 wrote:

In the radio file if some fields contain '_ or -' along with integers, would it change the specifier from %d to something else?


All these cryptic questions.... You need to be significantly more specific.

0 Kudos
Message 45 of 55
(746 Views)

One column has data like this 'Link1_B' and the other like this '37856-34974'.

So for example I specify '37856-34974' as %d, or would it be different because of the '-', or does it not matter?

0 Kudos
Message 46 of 55
(739 Views)

Of course it can't be %d because %d looks for a decimal integer.  '37856-34974' is not a valid integer because you can't have a negative sign in the middle of a number.

 

As Altenbach said, you need to post your VI.  You also need to post examples of the strings you are trying to decode.

0 Kudos
Message 47 of 55
(734 Views)

Here are the examples of the strings I'm unsure about.

 

84079168-251202190, F-Block, 1.08.0009, Link1_B, 0 / 574512549072, 98:35:71:00:01:88, 150 days  6:49

0 Kudos
Message 48 of 55
(732 Views)

You should be using a comma has your string delimiter.  Then you will have a 2-D array where the rows represent each line, and the columns represent each item within that line.  When you iterated on that array, you'll be working on each row.  Then use Index Array, to break apart each item within that row and convert each item as needed to the appropriate datatype.

 

There is probably a way you can do it with match regular expression.  But working with that function is much more advanced and only a few people seem to understand the arcane syntax of a regular expression.  Since you don't seem to really have your string format well defined, it would be impossible for anyone to help you figure out exactly what your regex expression should be.

0 Kudos
Message 49 of 55
(694 Views)

I am using a scan from string function which does not have a delimitter node

0 Kudos
Message 50 of 55
(689 Views)