LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

format specifiers for "format into file" function used same specifiers in a loop but receive error when used out of a loop

I'm have trouble finding the correct format specifiers to use with the floating point and decimal numbers using the "format into file" function. I was able to use format specifers correctly with the same function in loops but for some reason (maybe indexing) the same specifiers will not work outside of a loop. I have read the charts for the format specifiers and cannot see where it is incorrect. The error message says that I'm trying to connect two different types of connections yet calls the source and sink as the same type. Please advise.

Thank you!

0 Kudos
Message 1 of 5
(3,091 Views)

It is not the same type.  The source is an array of doubles.  The sink is a double.   (A scale, not an array).   Likewise for the blue integer wire.

0 Kudos
Message 2 of 5
(3,081 Views)

Thanks Ravens Fan,

 

So will this function work outside of a loop and can you tell me what the correct format specifier should be please?

 

Thanks!

0 Kudos
Message 3 of 5
(3,036 Views)

A format into file or format into string cannot take an array function.  You need to use Index Array to get a particular value out of the array, or put the function into a loop and turn on auto-indexing.

0 Kudos
Message 4 of 5
(3,014 Views)

Ok,  Thanks for your help, I appreciate it.

0 Kudos
Message 5 of 5
(3,002 Views)