LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data Types

Solved!
Go to solution

Hello,

 

I am a complete beginner in LabView so any help would be appreciated. I have constructed a VI to read data from three sources and then contatenate these three data sources into a 3 column array and then save in a file. Ideally I would like the each row of data to be saved with a time stamp. I am currently having trouble with data-types in the VI.

 

Any help would be appreciated.

 

Nevica 

0 Kudos
Message 1 of 5
(3,512 Views)

Your measurements appear to be the "string" data type. To display them the way you intend require a numeric datatype.

 

In the String -> String/number conversion palette you will find some usefull conversion tools. 

 

If you have any exmples of raw data you can get more spesific assistance on how to preform the required conversion.     

0 Kudos
Message 2 of 5
(3,502 Views)
Solution
Accepted by topic author nevica

Nevica,

 

Take a look at the Scan From String.vi.  You can right click this vi and select 'Edit Scan String' to select how you want to convert the string to.  You might use it this way:

 

B3[1]_BD.png

 

 

0 Kudos
Message 3 of 5
(3,495 Views)

Hello Wayne,

 

Thanks for your reply. What is the scan from string.vi you suggested. Where can I find it? Do you mean you have called the graphical routine shown scan from string.vi or is it a subroutine. Where can I find the yellow box with DBL in the bottom right hand corner? What do I do with error out from the I/O? Will that be in string type also? Also, does the I/O help need an error in input? Thanks for your help.

 

Nevica

Message Edited by nevica on 07-31-2009 07:31 AM
Message Edited by nevica on 07-31-2009 07:32 AM
0 Kudos
Message 4 of 5
(3,486 Views)

Hi Nevica,

 

for your several questions:

"What is the scan from string.vi you suggested. Where can I find it?"

- It's a function found in the string palette. See it's context help.

 

"Do you mean you have called the graphical routine shown scan from string.vi or is it a subroutine."

- Wayne talks about this special function. See above...

 

"Where can I find the yellow box with DBL in the bottom right hand corner?"

- It's part of that function. See the context help on how to change that "yellow box"...

 

"What do I do with error out from the I/O?"

- You should check for any errors. That's considered good programming style...

 

"Will that be in string type also?"

- No, that's an error cluster.

 

"Also, does the I/O help need an error in input?"

- Not neccessarily. But to wire the (correct) error cluster will help to prevent running into the same error over and over again...

 

It's seems you're really a beginner in LabView. I would suggest you look at the free online courses found on NI's website!

 

Message Edited by GerdW on 07-31-2009 03:25 PM
Best regards,
GerdW


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