Components

cancel
Showing results for 
Search instead for 
Did you mean: 

Replication and Deployment Utility (RAD)

Would you mine running IO Trace with logging enabled while you try to create an image and then post the file.

Message 201 of 324
(2,921 Views)

I'm sorry, for some reason I did not get (or I missed) the "thread update" e-mail notification..

Please see attached.

 

QFang
-------------
CLD LabVIEW 7.1 to 2016
0 Kudos
Message 202 of 324
(2,902 Views)

Your trace file doesn't incldue the call to create image.  Please make sure you have logging enabled and have started the capture before you use RAD to reproduce the issue.  Once you hit the error, you should be able to then stop the capture and upload the trace.

 

You can double check it your self by opening the trace file after it is done.

0 Kudos
Message 203 of 324
(2,878 Views)

Not sure how that is possible. I'll redo but I had the trace going, then went through the dialogues in RAD.. 

 

Anyway, trace redux attached.

 

1) start rad

2) select crio in list on left

3) start io trace

4) click retrieve (this is when the io trace error happens. a small progress bar pop up in rad flashes by)

5) (at this point, io-trace is at "Number 4" in the log)  The RAD "Select Image Type" dialogue is up

6) I click "New Application Image"

7) The "Application Image Properties" pop-up is visible. I give it a name of "Test", no other inputs. I click "OK"

😎 "Choose image directory"  opens up. I leave default (valid, writable path) and click "Retrieve image from NI-cRIO9014-01632AF5 (192.168.1.190)"

9) Progress is shown briefly, IO-trace starts up again from and including "Number 5"

10) at "Number 26" I have NI RAD error pop-up (see screen attached). The error is in "nisyscfg.lvlib:Create System Image (Folder).vi

 

This completes the trace as well as my attempt at "retrieving" an image.

While the retrieval seems to be related to the folder/permissions issues talked about by myself and others above (and non-fixable since its in locked NI code?), I'm also curious about the un-reported error that shows in the io-trace on line 3 related to nisysGetSystemProperty??  Might (long shot) be related to how when I tried to use the new system api on our cRIO9014's (vxWorks) a lot of properties and methods are not supported and gives an error?

 

The io trace and image is attached to this post.

 

QFang
-------------
CLD LabVIEW 7.1 to 2016
Download All
0 Kudos
Message 204 of 324
(2,869 Views)

I'm somewhat perplexed as to why your create image call doesn't show up in I/O trace.  I'm wondering if it could be erroring out before it makes it to the actual tracing code.  Looking back through the RAD source code the only other problem I could think of is if LabVIEW is having any problems creating the temporary folder that the image is initially created in before it moves the image to your specified image folder.

 

If you look at the source you will find a call to Generate Tempory File Path.vi.  I noticed this VI didn't have the error cluster, so in theory if LabVIEW failes to create a temp folder you won't see an error popup until create image tries to use that path.  You may want to try and wire the error cluster to this VI and see if it is failing or run Generate Temporty File Path.vi on its own to see it works or not.

 

Screen Shot 2014-02-09 at 9.07.14 PM.png

0 Kudos
Message 205 of 324
(2,822 Views)

See JoshuaP you made the same misstake we/I did too. That VI does not "create" anything, and the way it is constructed it will loop UNTIL you get an error out (which is used to indicate that a new unique path has been generated).  As far as I can tell, every other part of RAD assumes that the path out from this VI is VALID (e.g. folders exist etc.) but they don't because they are never created.

 

Once properly wiring the error terminal in Generate Temporary File Path.vi, it errors out on first call which happens as shown in your screenshot above, in the "Init - Configure Settings" case.

Error 7, init error out.pngwhen trying to create an "appdata\local\temp\ folder.

 

I must admit I am confused as to the purpose of the "Generate Temporary File Path.vi" and the way it is used later in RAD.  The name implies it generates temporary FILE paths, but the way that path is used in RAD is as a FOLDER path, and the users are not taking steps to ensure the folder tree/path actually exists, which it doesn't since the vi is creating a file path.. 

 

A tad better would be if the Generate temporary file path made sure that the path up to the intended file-name existed and maybe a conditional input to make it generate temporary file OR folder path and again making sure the path output is actually "generated" or valid.  I also noticed that instead of using the existing NI Library function to make sure the string is a valid file-name string, they did a limited reg-ex, and they did this on the VI input string inside the whileloop. This expression only needs to run once.. I replaced it with a wrapped version of the  vi.lib\Utility\libraryn.llb\Is Name Multiplatform.vi and I attached the wrapper to this message. Whats REALLY interesting is that this Generate Temproary File Path.vi IS A MEMBER of that SAME library!! I find that sort of ironic.

 

My modified version of the generate temporary file path is attached... Not sure if someone could mark that VI in the libraryn.llb for review to at least move the string check outside the while-loop and maybe even replace the reg-ex with a call to the "is name multiplatform.vi" from same library?

 

 

 

 

QFang
-------------
CLD LabVIEW 7.1 to 2016
0 Kudos
Message 206 of 324
(2,811 Views)

By the way, this still did not solve the error dialog pop-up:

Application Image Retrival Error: nisyscfg.lvlibCreate System Image (Folder).vi:710001 which I cannot understand nor get any closer to due to a locked VI.

 

 

QFang
-------------
CLD LabVIEW 7.1 to 2016
0 Kudos
Message 207 of 324
(2,806 Views)

Note when running this debug session I used an sbRIO-9606 that I had on hand as my usual 9014 was unavailable.

This is the point of error and all pertinent input information:

 

rad_retrieve image wrapper.vi calls "Create System Image.vi" which then throws error -2147467259 but with no error in io-trace.

The temporary folder Temp\lvtemporary_174026.rad exist and also contains the (empty) folder "imageDir" and lvappimage.info (see contents of this file below).

 

The target settings and AppImage Properties are (partially) shown in screen-shot:

rad_retrieve image wrapper front panel.png

 

The IO trace is still not containing the expected command, probably because the locked NI VI is erroring out prior to that point but I attach it still, just in case.

 

[RTAD Info]
RTAD_Version = "5.5.2"

[Application Image]
Name = "test 7"
Version = "1.0.0"
Description = ""
Key = "{2FC5D7BD-5ABD-7BE1-B3CF-1EB5581C8A98}"
Model = "sbRIO-9606"
Chassis = "Not Available"
Time = "02/10/2014 11:57:03 AM"
Retrieve = ""
Deploy = ""
InstalledSoftware = ""
NumBitFiles = 0

 

 

QFang
-------------
CLD LabVIEW 7.1 to 2016
0 Kudos
Message 208 of 324
(2,803 Views)

Hi,

 

One of my customer uses current latest version of RAD (5.5.2) on a Windows 7 machine.

He created successfully the image of the cRIO-9075 (LabVIEW 2013) application.

 

When trying to deploy the image to same cRIO, we always get error -2147220308 (Restart.vi) after minutes.

 

The Windows machine has 2 NICs:

- one is on the company network (and set into DHCP).

- second one is set to Static IP and has a direct cable to cRIO-9075.

 

The workaround is to force the cRIO-9075 to reboot into Safe Mode by pressing Reset button during 5 seconds.

Note that:

- rebooting the cRIO from MAX and ask to reboot it with NO-APP doesn't seem to do the trick.

- rebooting the cRIO from MAX and ask to reboot it into safe-mode doesn't seem to do the trick.

 

Best regards

 

Vincent

0 Kudos
Message 209 of 324
(2,710 Views)

Hello Vincent,

 

What are the differences in the IP settings of the cRIO target when you are retrieving an image versus the IP settings for when you are deploying the image? Are you changing the IP address when you deploy the image to the target?

Ian M.
National Instruments
0 Kudos
Message 210 of 324
(2,687 Views)