06-07-2022 04:15 PM
Hello,
I've had no luck setting the time on an sbRIO using the method shown in Knowledge Article found here: Set RT System Time to Windows PC Time Down to Milliseconds
I'm getting error -2147220616: The System Configuration API is not installed on the specified target.
However, here's NI-MAX's list of what's on the target:
In other words, I have LabVIEW 2019 32-bit and have v. 19.5 of NI System Configuration API. I was concerned that "API" wasn't in the name, but in the Software Wizard, the Description for this add-on refers to it as the "API":
So... any ideas? Could it be a firewall issue? Our IT department has recently started locking down our network to a greater degree. I can't even reach our SNTP servers from the sbRIO, so wouldn't be surprised that this too turns out to be firewall related. What port is this needing? Is it TCP port 3580 (web monitoring and configuration server port) as found this support article: Configuring Software and Hardware Firewalls to Support NI Products?
Also, in the first referenced support article, there's a bug both in an illustration and in the downloadable VI. The String Format that's used with the Format into String should be "%d:%d:%d.%03d %d/%d/%d". I also wonder if it'd be easier to just use the built-in "Get Date/Time in Seconds" vs. the system call, then convert THAT to a string in UTC format using the Format Date/Time string VI, then revert that back to the Date Time Stamp used to set the Clock on the RT Target:
Note in this case the "03" was not needed (though a "3" is if we want it to milliseconds) as Format Date/Time to String VI adds any needed zeros.
Thanks,
Erik