LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

save a string to a file ...my file need a particular file name (time, date, etc)

hello to all, 

 

i have to save a file with a string..,with results of a test

 

the file name must include time and date of my test, and has to append 2 underscore if my test failed

 

some idea?

Using LabVIEW 7.1
0 Kudos
Message 1 of 14
(3,289 Views)
Checkout the examples that ship with LV, you will find one that shows how to build a filename. Also consider going through the tutorials that ship with LV.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 14
(3,283 Views)

I have one VI Check it out

0 Kudos
Message 3 of 14
(3,277 Views)

Hi gigi,

 

converting your requirement word-by-word would result this:

check.png

Best regards,
GerdW


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

ManLD i can't open your file....i use LabVIEW 7

 

Gerd, i think it's what i need thanks....just 2 questions...

 

what is time of test icon? and where i can find it?

 

idem for last icon (on the right)...what is?

Using LabVIEW 7.1
0 Kudos
Message 5 of 14
(3,264 Views)

Hi gigi,

 

- last icon on the right = "Save to text file"

- "time of test" icon = timestamp control (to be found on numerics palette or - as usual - by right-clicking the input of the FormatTimestring function and selecting Create->Control...)

- LabVIEW7 doesn't know about (special) timestamp controls (if I remember...) so use a DBL control instead

 

When using such an old LabVIEW version you always should indicate that in your questions! (See my signature for suggestion on that topic...)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 14
(3,261 Views)

it works also without time test icon...

 

but i have a little problem...in this way year is 13,,,and i need 2013 😞

Using LabVIEW 7.1
0 Kudos
Message 7 of 14
(3,253 Views)

done...just putting Y instead of y 😄

 

thanks all

Using LabVIEW 7.1
0 Kudos
Message 8 of 14
(3,250 Views)

ops...another problem 😞

 

for months i need abbreviation of name 😞 JAN, FEB and so on 😞

Using LabVIEW 7.1
0 Kudos
Message 9 of 14
(3,245 Views)

gigi85 wrote:

for months i need abbreviation of name 😞 JAN, FEB and so on 😞


It is all right there in the online help: time format strings.

 

In this case use <%b> and optionally convert it to upper case.

0 Kudos
Message 10 of 14
(3,240 Views)