LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

new line on excel not requested

Solved!
Go to solution

Hello,
I record data from a pump controller on Excel, I have a problem there is in my file a line break each time and I do not want it to be displayed
Is there a possibility to avoid this line break and I don't know where it comes from?
I put you a screenshot and my vi

Ayoubas01_0-1649337222470.png

 

Ayoubas01_1-1649337269535.png

 

thank you for all 

 

 

 

 

0 Kudos
Message 1 of 11
(1,991 Views)

Hello, 

 

What does that file look like in a text editor? There may be an extra tab or newline in there causing that. When I am doing this kind of thing I typically use comma separated instead if tab, then you can just name your file <file name>.csv and excel will just open it, you don't have to import it. 

______________________________________________________________
Have a pleasant day and be sure to learn Python for success and prosperity.
0 Kudos
Message 2 of 11
(1,969 Views)
Solution
Accepted by topic author Ayoubas01

Your device is sending the Carriage Return and/or Line Feed, ie an End Of Line.  And then another End Of Line is added by the Write Delimited File (has build into is an Array To Spreadsheet String which appends the EOL).  Just use a Trim Whitespace to remove the EOL after the VISA Read.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 3 of 11
(1,960 Views)

Also, right click a (almost any) wire and select Clean Up Wire.

 

Or select a wire part and move it with mouse or arrows works too.

 

Even the automatic diagram cleanup will probably tidy up your code... 

 

Ayoubas01_1-1649337269535

0 Kudos
Message 4 of 11
(1,948 Views)

While your primary problem seems solved, there are also some glaring curiosities.

 

For example having different stall durations in the same frame seems completely pointless. No matter what, the slower wins. Why not just place a 100ms wait in the frame and just wire across? 😄

 

(Of course we cannot tell what's in the other cases)

 

altenbach_0-1649347676361.png

 

0 Kudos
Message 5 of 11
(1,935 Views)

@altenbach wrote:

(Of course we cannot tell what's in the other cases)


There was a VI attached this time!

0 Kudos
Message 6 of 11
(1,902 Views)

the problem is solved I removed the line break after Read VISA thank you all 

 

 

Ayoubas01_0-1649405448799.png

 

Message 7 of 11
(1,897 Views)

@Ayoubas01 wrote:

the problem is solved I removed the line break after Read VISA thank you all 


My honor to give you your first kudo (for selecting a solution and keeping us informed)!

Message 8 of 11
(1,893 Views)

thanks to you also for the time spent, this little trick saved me

Ayoubas01_0-1649407031657.png

 

0 Kudos
Message 9 of 11
(1,888 Views)

wiebe@CARYA wrote:

@altenbach wrote:

(Of course we cannot tell what's in the other cases)


There was a VI attached this time!


Ah, I did not see the first post, just the image in a later answer. Looking at the code, each case has a longest wait of 100ms and all they do is delay the display of values and (probably more importantly!) the completion of the case structure. All it needs is a single 100ms wait  there. Ugh!

0 Kudos
Message 10 of 11
(1,839 Views)