07-17-2025 04:01 AM - edited 07-17-2025 04:03 AM
Hi, I am trying to create a data logger using API from a smart device.
However I am facing issue with writing the data to the file. After the 1st loop, the reference value of the file becomes zero, and the data is not getting logged in the file. This is the first step of the project. I then want to load this file on myRIO and able to log data in myRIO
07-17-2025 04:29 AM - edited 07-17-2025 04:36 AM
Hi mars,
@mars23 wrote:
After the 1st loop, the reference value of the file becomes zero, and the data is not getting logged in the file.
This could happen when there is an error occuring inside the loop/case.
Does an error occur?
Did you know you can simplify your VI by using FormatIntoString with all its possibilities?
Like this:
Do you know you can show the "digital display" for your charts? (No need for separate indicators!)
Do you know you can change the formatting of digital/numeric indicators to also show an unit (like "W")? (No need for conversion to string!)
@mars23 wrote:
I then want to load this file on myRIO and able to log data in myRIO
You know the myRIO will handle the file in its internal "hard drive"?
Do you know the myRIO doesn't have an UI and so it cannot use the FileDialog ExpressVI?
07-17-2025 05:03 AM
I did not know the myRIO doesn't have an UI. So, then what should I use instead of the FileDialog ExpressVI ? could you please guide me ?
07-17-2025 05:42 AM - edited 07-17-2025 05:43 AM
Hi mars,
@mars23 wrote:
I did not know the myRIO doesn't have an UI.
Do you see any monitor connector (like DP, HDMI, DVI) on your myRIO?
@mars23 wrote:
So, then what should I use instead of the FileDialog ExpressVI ? could you please guide me ?
You need to define the filename programmatically, without user interaction…
I repeat: you know the myRIO only uses its "internal drive" and has no access to the storage of your host computer? (This is one of the main problems when unexperienced people use NI-RT targets…)
07-17-2025 09:42 AM
Thanks, I simplified the output with your suggettion..
I checked with the Probing tool , There is a error inside the loop.
error code : ERR(-375004). Is the shift register getting reset to zero because of this error ?
07-17-2025 10:54 AM
Hi mars,
@mars23 wrote:
error code : ERR(-375004). Is the shift register getting reset to zero because of this error ?
You can easily test this with some more probes!
Now you should implement some error handling to handle that "too many requests" error! (Or even prevent it by don't requesting data so often!?)
07-18-2025 06:23 AM
Hello,
I am trying to debug the code. However, just wanted to clear one doubt. We are about 25 students working on this same API from college lab. Is it possible that since everyone is trying to access this API, this issue is being created ?
07-18-2025 06:30 AM
Hi mars,
@mars23 wrote:
We are about 25 students working on this same API from college lab.
Is it possible that since everyone is trying to access this API, this issue is being created ?
There are 20+ clients trying to access the same service.
The error message is about "service overload".
This might be pure coincidence - or cause & reaction…