LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Host pc receive and send XML file to Crio

Solved!
Go to solution

HI 

I encounter a problem that is how do i send and receiveXML file.

 

I have LV project at my destop pc and there was a Crio device connect to the network,because my project is not under the Crio,it is under my computer,i  try to read the xml inside the Crio i used  'FTP' but can not access to Crio. Is there other way to read and send xml to Crio without a real FPGA project. 

Download All
0 Kudos
Message 1 of 11
(3,406 Views)

Hi pi number,

 

i  try to read the xml inside the Crio i used  'FTP' but can not access to Crio.

Is FTP enabled/installed on your cRIO?

Which cRIO? Which (LabVIEW) software version?

Is the cRIO accessable using a browser?

 

Is there other way to read and send xml to Crio without a real FPGA project. 

Yes sure, you can program some communication between a PC host and a cRIO target!

Is there a (LabVIEW) software running on your cRIO? Do you have access to the CRIO?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 11
(3,387 Views)

Hi GerdW

 

The Crio is 9074 and labview versin is 2016,i can access from browser

 

Because i am new to labveiw and do not know how to made this communicaiton to cRIO target!,do you have some sample VI?

0 Kudos
Message 3 of 11
(3,382 Views)

Hi pi number,

 

Because i am new to labveiw

Yes, I see from how you write the word LabVIEW… 😄

Did you notice that "Training" section in the header of this LabVIEW board?

 

do not know how to made this communicaiton to cRIO target!,do you have some sample VI?

LabVIEW comes with a huge library of example VIs and projects.

There are also example projects showing how to communicate from PC host to RT target!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 11
(3,379 Views)

Hi GerdW

Ok i will find some sample vi and test it

Thanks

0 Kudos
Message 5 of 11
(3,377 Views)

One other thing,because my project is seperater from the project which is ruuning at cRio target.

 

Is that also possible made the code to access to cRio target?

0 Kudos
Message 6 of 11
(3,376 Views)

Hi pi number,

 

my project is seperater from the project which is ruuning at cRio target.

Is that also possible made the code to access to cRio target?

Having direct communication between PC host and RT target is (IMHO) simpler.

But you can also access the cRIO using FTP (for older cRIO, or after installing the FTP software package) or WebDAV (for recent cRIOs with actual software package)…

When you can access the cRIO using your browser then you can do the same with LabVIEW.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 11
(3,372 Views)

Hi GerdW

Yes can use FTP to access to cRio but in labview it can not work,i used the follow path

 

ftp.JPG

 

0 Kudos
Message 8 of 11
(3,368 Views)

There are specific FTP VIs available under the "Data Communication -> Protocols -> FTP" Palette.

 

 

0 Kudos
Message 9 of 11
(3,362 Views)
Solution
Accepted by topic author 314159ym

Have a snippet. I'm feeling generous.

 

FTP.png

 

This was to FTP a file out of the RIO to local PC, modify some settings and FTP back to the CRIO. Then delete local copy.

Assumes RIO FTP is set up with username = Admin, Password = "" which I think is the default on the VXworks RIOS.

 

0xDEAD

 

0 Kudos
Message 10 of 11
(3,359 Views)