LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI Running problem

Hi I am trying to run this project, on the start the FPGA project and a default no FPGA project were created separately them I wanted to add them together in a single project, the one with the name gyroscope, servo2 VIs and the libraries where from a default myrio project after that I add them to the FPGA project, the problem we have now is that we cant run them at the same time, just can run the FPGA vi or the others Vis, if I try to run them at the same time one will stop working either the FPGA Vi or the non FPGA Vis . why is that ? how can I solve it ?

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

You forgot to attach the most important file in this LabVIEW Real-Time Project -- the "project" file, the one with the extension ".lvproj".

 

Have you learned about the difference between the "normal" LabVIEW environment, where all the code runs on a (typically single) PC, and the LabVIEW Real-Time environment (which includes the "LabVIEW for myRIO" environment)?  The normal LabVIEW environment uses Windows to manage the Front panel's "Controls" and "Indicators", letting you push buttons, slide sliders, enter characters in strings, create (and view) plots, etc. at the "cost" of running "as fast as Windows allows".  The LabVIEW Real-Time environment does away with "Controls" and "Indicators" (that is, with the "human interface") and substitutes "Inputs" and "Outputs" (data flows in and out of VIs, but you "can't see it when it is running").  Many Real-Time environments (including the myRIO) have a third environment, the FPGA, which permits true parallel execution at very high rates.

 

I'm hoping you have a folder that contains the VIs you included, as well as the missing Project file.  Please also put any/all Type Definitions and supporting files into this folder.  Once all of the LabVIEW "pieces" that make up the Project are in the same folder, right-click the folder, choose "Send To", then "Compressed (zipped) folder", and then attach the single .zip file.  This will let us open the Project, after which we can suggest how to "Have your Data Acquisition" (the RT Target and FPGA part) and "View and Analyze it, Too" (the Host, or PC, part that controls, manipulates (FFT), and plots the results).  You largely have the "pieces", they are just in the "wrong place".

 

Bob Schor

0 Kudos
Message 2 of 11
(1,339 Views)

Hi I am trying to run this project, on the start the FPGA project and a default no FPGA project were created separately them I wanted to add them together in a single project, the one with the name gyroscope, servo2 (yellow highlighted) VIs and the libraries where from a default myrio project, after that I add them to the FPGA project(pink highlighted), the problem we have now is that we can't run them at the same time, just can run the FPGA vi or the others Vis, if I try to run the yellow ones them the pink one , the pink one will not run and the same thing will happen if i run first pink them yellow ones will not run ,one will stop working either the FPGA Vi or the non FPGA Vis . why is that ? how can I solve it ?

problem.png

0 Kudos
Message 3 of 11
(1,343 Views)

Hello, @Wottrich.  Please do not start a new Post for the same topic -- it makes more work for the rest of us who are trying to help you.

 

Did you actually build a Folder for your Project?  Did you look at the contents of the "Compressed (zipped) Folder"?  Did you notice the Project, when opened, shows an "Untitled 3.vi" listed with a Warning: has been deleted, renamed, or moved on disk?  [I'm assuming this is the missing "Host" code, as it appears in the "My Computer" section of the Project].  In addition, "avoidObstPID.vi" also shows a Warning: has been deleted, renamed, or moved on disk.

 

Please try again, on your PC, to make a Folder containing all of the VIs in your Project, along with the "Project specification" (the file "Untitled Project 4.lvproj").  I also strongly recommend giving meaningful names to all LabVIEW-created files (nothing should be named "Untitled").

 

Just to be clear -- do you actually have the missing "Untitled 3.vi" somewhere?  This would be the code that you would run from your Host PC that could enter into a dialog with the user, asking for file names, with Front Panel Controls to start and stop the program, set parameters, etc. and with Front Panel Indicators to show values and progress, possibly including charts.

 

Look forward to receiving a "repaired" attachment "with all the relevant pieces".

 

Bob Schor

0 Kudos
Message 4 of 11
(1,287 Views)

hi, the do you actually have the missing "Untitled 3.vi" somewhere? 

that file does not exist in my computer or is not important for the project, same for the avoidObstPID.vi , those are not important in the project if I can run the others VI's is okay ,the may problem is I cant run the RT main.vi and the others VI at the same time, I mean I can run it at the same time but does not work or not data flow flow when  try to run RT main.vi first and them  the others vi

0 Kudos
Message 5 of 11
(1,225 Views)

hi, the do you actually have the missing "Untitled 3.vi" somewhere? 

that file does not exist in my computer or is not important for the project, same for the avoidObstPID.vi , those are not important in the project if I can run the others VI's is okay ,the may problem is I cant run the RT main.vi and the others VI at the same time, I mean I can run it at the same time but does not work or not data flow flow when  try to run RT main.vi first and them  the others vi

0 Kudos
Message 6 of 11
(1,151 Views)

Hi I am trying to run this project, on the start the FPGA project and a default no FPGA project were created separately them I wanted to add them together in a single project, the one with the name gyroscope, servo2 (yellow highlighted) VIs and the libraries where from a default myrio project, after that I add them to the FPGA project(pink highlighted).

The problem we have now is that we can't run them at the same time, just can run the FPGA vi or the others Vis, if I try to run the yellow ones them the pink one , the pink one will not run and the same thing will happen if I run first pink them yellow ones will not run ,one will stop working either the FPGA Vi or the non FPGA Vis . why is that ? how can I solve it ?

OBS: Is any file said that does not exist just delete it or is just not important

 problem.png

 

0 Kudos
Message 7 of 11
(1,171 Views)

Just repeating your previous post to bump the post isn't going to help you get a solution quicker. 

What will help you get a solution quicker is zipping your project and including all the relevant files so that people can actually fault find. 

0 Kudos
Message 8 of 11
(1,139 Views)

yes it's true , I now zipped correctly without missing files, but I still don't know how to edit my  previous post 😢  

0 Kudos
Message 9 of 11
(1,121 Views)

Hi Wottrich,

 


@Wottrich wrote:

The problem we have now is that we can't run them at the same time, just can run the FPGA vi or the others Vis, if I try to run the yellow ones them the pink one , the pink one will not run and the same thing will happen if I run first pink them yellow ones will not run ,one will stop working either the FPGA Vi or the non FPGA Vis . why is that ? how can I solve it ?


You need to change them so they all use the same FPGA VI - that's how it would work on "standard" cRIOs.

You are able to create FPGA VIs with all the needed functionalities?

 

The myRIO comes with some default FPGA "personalities", but that's all Iknow about them. I guess there is documentation on how to combine those "personalities" with your "user defined FPGA" functions…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 11
(1,106 Views)