06-24-2022 12:58 PM
Hi all!
I made a program that when a DAQ recieved a signal the Date and number are saved in a Spreadsheet
This just should save the values in true, but when I see the file, it have rows in blank
I would like save the records without rows in blank.
Can you help me?
I attached the code and the file
06-24-2022 02:34 PM
06-24-2022 02:38 PM
I attached the version 19, or what version do you need?
06-24-2022 02:48 PM
You asked (and I answered, I thought) an earlier Post regarding writing Delimited Spreadsheets. Did you try the Example program I showed you? If so, you would have seen a .CSV file with no blank spaces.
Did you use a Text Editor (not Excel) to open the CSV file you attached? Did you see what was in the "blank lines"?
Your LabVIEW program is doing exactly what you told it to do. You are putting an extra <CR><LF> in every input, and LabVIEW is writing both the line with three Entries and the line with 0 entries, which shows up as a Blank Line.
Try the following -- replace the Control "Number" with a String Constant, make it "Test" (it's a String, after all, it doesn't need to be a number). Examine the resulting CSV file. Now think about it, see if you can figure it out.
Incidentally, if you need more help on this problem, don't start another Message, but simply Reply to this one.
Bob Schor
06-24-2022 03:11 PM - edited 06-24-2022 03:20 PM
Works fine here...
Some comments:
06-24-2022 03:27 PM - edited 06-24-2022 03:29 PM
I'll take in count your comments
I starting to learn the enviroment on Labview, thats why maybe my code can looks "seems fragile and convoluted"
Honestly I don't know why the size of he front panel is to big, for some reason turns in that size
And the comment 4 was the solution, I'll try to improve the code
Thanks!
06-24-2022 04:20 PM
@jesusglzFELE wrote:
Honestly I don't know why the size of he front panel is to big, for some reason turns in that size
Thanks!
I was about to say "Go to File, VI Properties, then Window Size and change it there" but then I looked and it's already set to a 0,0 minimum panel size. I dug in and found a new setting I didn't know was there- right click on one of the scrollbars, then click "Properties". You've somehow set the minimum pane size to 2539 x 950. Change that to 1x1 and you can now shrink the size of that pane.
(I've never needed a specific pane limited in size, only a panel- TIL you can control both. Neat :))
06-25-2022 01:32 AM
Yes, Setting the minimum pane size for a single pane front panel window boggles the mind. I guess you found that somewhat hidden option when selecting the glaring background image tiles. You should only worry about cosmetics after the code is fully debugged and is near completion.. 😄
06-27-2022 07:51 AM
I'll keep that in mind, thanks for the advice