LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I'm using Labview 2019 myRIO and I'm trying to create a txt file

The program works on Labview however as soon as I connect the MyRIO it stops creating the file. I think it has something to do with the file paths. Anyone knows how to fix this problem?

0 Kudos
Message 1 of 6
(214 Views)

Hi Alex,

 


@alex27v wrote:

The program works on Labview however as soon as I connect the MyRIO it stops creating the file.

I think it has something to do with the file paths. Anyone knows how to fix this problem?


Which problem do you have?

 

  • When the VI/exe runs on your host computer then the file is created on that computer.
  • When the same VI runs on your myRIO then the file is created on the myRIO internal harddrive (as long as the path is still valid).

 

Recommendation:

When you want to transfer data from myRIO to your host computer then you should study the example VIs/projects coming with the RealTime module. They explain all that stuff!

Best regards,
GerdW


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

Thanks for your response. Its my first time using my RIO so I don't know how to access the internal memory or what path files to use to correctly store data in the myRIO could you help me out?

0 Kudos
Message 3 of 6
(152 Views)

alex27v_0-1739550925114.png

This is my Labview program and I get an error when running that says Deployment Completed with Errors.

 

0 Kudos
Message 4 of 6
(143 Views)

Hi Alex,

 


@alex27v wrote:

This is my Labview program and I get an error when running that says Deployment Completed with Errors.


Which part is "deployed with errors"?

 

On your image:

  • Why do you need 3 local variables of "Path"? Use wires instead!!!
  • Why do you need to open the same file twice? You should open/close the file before and after the case structures…
  • Why don't you cleanup your block diagram?
  • Why don't you implement basic error handling using error wires?
  • Why do you need a sequence structure? When you would use error wires you could simply enforce execution order by "THINK DATAFLOW!"…
  • Do you really want to log the output of the Wait(UntilNextMultiple) function?
  • Why don't you use FormatIntoString to handle all those string formatting and concatenation stuff?
  • What's the point in having some loops iterate only once and other to iterate forever?

Please do some beginner tutorials as offered at the top of the LabVIEW board. They will help you to get into LabVIEW - and you should do them before you start to tackle the myRIO!

 

This myRIO is a computer on its own and you need to understand all the implications coming from this fact…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 6
(125 Views)

Please attach the LabVIEW Project (meaning the LabVIEW Real-Time Project folder including the LabVIEW Real-Time ".lvproj" file and all of the VIs, TypeDefs, etc. that are components of this Project).  To prepare your attachment, please right-click the Project folder, choose "Send to", "Compressed (zipped) folder", and attach the resulting .zip file.  I assume you have the LabVIEW myRIO Software Toolkit 2019 attached, and that you are running LabVIEW 2019 (possibly SP1), 32-bits -- is that correct?

 

Bob Schor

0 Kudos
Message 6 of 6
(82 Views)