11-08-2019 07:11 AM
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?
11-08-2019 07:39 AM
Here are some suggestions to help you debug your own code:
Bob Schor
11-08-2019 07:57 AM - edited 11-08-2019 08:00 AM
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.
11-08-2019 07:57 AM
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.
11-08-2019 08:01 AM
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?
@smalhao wrote:
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!
11-08-2019 08:04 AM - edited 11-08-2019 08:09 AM
The VI running in scan mode on the server is attached, and Probe wire following Write.vi gives no error status
11-08-2019 08:28 AM
How i export the data of cRIO to PC?
11-08-2019 10:15 AM - edited 11-08-2019 10:16 AM
I tried to export cRIO 9040 analog port values to PC via lossless communication with network streams, sticking the probe in write file the values are there but i'm not receive them in the file of reader.
11-08-2019 11:28 AM
My files atualization, i'm follow this example
https://zone.ni.com/reference/en-XX/help/371361R-01/lvconcepts/ns_streaming_data/
but not working