05-24-2012 08:06 AM
The snippet squishes everything together
05-24-2012 08:24 AM
@Szklanam wrote:
The snippet squishes everything together
what?
05-24-2012 08:26 AM
Whenever I try and select the snippet of code, it adds a wire that goes up higher on my VI and pushes everything down to show both the wire and the blocks. Maybe it won't be squished when I send it. I guess we'll find out.
05-24-2012 09:33 AM
There was a chunk of code that our equipment manufacturer had provided and the error was in one of the constants. Changed from a 5 to a 4 and the comma was causing the problem is no longer there, making everything else work fine.
05-24-2012 10:20 AM
@Szklanam wrote:
Whenever I try and select the snippet of code, it adds a wire that goes up higher on my VI and pushes everything down to show both the wire and the blocks. Maybe it won't be squished when I send it. I guess we'll find out.
I've never seen that happen before.
But I also use the Code Capture Tool (CCT) which I find is much better than the Snippet option build into LabVIEW.
05-30-2013 10:35 AM
Hi !!
I want to read the attached text file with the vi attached ...
But all the values after decimal poin are discarded.
I could do this in another computer but not in the computer in my lab ....I tried with the same file and vi in both computers.
Would anyone knows what to do??
is it a computer setting problem or some thing to do with labview?
Hasan
05-30-2013 11:10 AM - edited 05-30-2013 11:12 AM
It works fine for me.
(By the way, get rid of the While Loop) There is no need to read the same file over and over as fast as the CPU will allow.)
I am going to take a guess at your problem. Are you using a PC that uses a decimal "comma" rather than a decimal point? The file uses a decimal point. If your PC is set to use a comma for decimals, it is probably truncated at the decimal point because it doesn't understand what to do with it.
Look at the format settings in LabVIEW help. To force a decimal point, you may need to add %.; to the beginning of your format string. Otherwise, fix your windows regional settings to use a decimal point instead of a comma within control panel.