I need to save the sensor values in a file, in this case it would be a txt file, I followed an example to save the values but when I run vi and then I stop to see if the file has the saved values it has nothing saved where I will be to miss?
Here are some suggestions to help you debug your own code:
I did what I suggested and even the block of Write.vi gives the value obtained in the string, put the Probe in the string of string to Write.vi as the figure. but i'm going to the file and not show the values.
I am noticing some cRIO nodes in there. What target is this VI running on? If running on the cRIO, then you cannot write directly to your PC. You would need to stream the data to your PC to save the file.
So you have some characters in the string going to the Text Write. That's good.
But when you open the file, nothing is in it.
Have you put a probe or indicator on the error wire after the Write to Text File?
but i'm going to the file and not show the values.
Yes. So? This is called debugging. Putting some things on screen so you can see if the code is behaving the way you want. When it is working properly, then you can take those things back out!
My files atualization, i'm follow this example
but not working