07-31-2009 06:37 AM
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
Solved! Go to Solution.
07-31-2009 07:01 AM
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.
07-31-2009 07:18 AM
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:
07-31-2009 07:30 AM - edited 07-31-2009 07:32 AM
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
07-31-2009 08:23 AM - edited 07-31-2009 08:25 AM
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!