08-20-2016 03:20 AM
Hi,
In my project where i control a motor via LV,i can see the FPGA.Vi is controlling the motor when i run it directly without the host.vi,the problem occurs only when i run the Host.VI directly that i do not see it having any control on the motor.
Pls help me where i am going wrong
Solved! Go to Solution.
08-20-2016 06:05 AM
Can you show your code?
Maybe you should use Open FPGA VI Reference Function
08-20-2016 06:17 AM
Thanks for the response.
I did follow the 3steps mentioned below,
The code is too big,i do not think i can upload here
08-20-2016 06:21 AM
So, You decide your problem?
08-20-2016 06:24 AM
I am working on my project,you think i cannot even know what the prob is??
08-20-2016 07:33 AM
Hi Krupa, Artem.SPb told that if you post your code it would be easy to debug and help you.
-If your code is too big, you can zip entire project and post.
08-20-2016 11:59 AM
I get it,thanks.
That's a university project,not sure if i can share the code here.
I have followed all the 3steps that i posted above.Pls with this info,could you help me.
08-20-2016 12:24 PM
Can you make simple code (2-3 function on FPGA) and test it with simple HOST.vi?
If it doesn't work, post code here.
Now your question like "I press power button on my PC, but it doesn't start. Why?"
08-20-2016 12:25 PM
Tell me if the following is correct:
I've not done a lot (and none, recently) with FPGA, but have done a fair amount with LabVIEW RT and communication with different targets. I may mess up some of the details for your particular Target, but the general principles should still apply --
It sounds to me like most of what I described you are doing. The only thing that I'm uncertain about is whether the Target is running its code already when you try to control it from the Host.
I can appreciate you reluctance to share valuable Intellectual Property here. However, you could copy your entire Project to something called "Forum Project", go to the FPGA code and strip out everything except some very simple function, go to the Host code and strip out everything except connecting with the FPGA and doing very simple communication, and saving this (very-much-smaller and largely "anonymous") Project. Compress the folder containing the Project and all of its VIs, and attach the ZIP file. This way, we "see the code" but you "protect the IP".
Bob Schor
08-20-2016 02:10 PM
Thanks Bob,Atrem.
Bob,
As you rightly said,i did cover alll the points that you mentioned.
//The only thing that I'm uncertain about is whether the Target is running its code already when you try to control it from the Host.// COuld you pls let me know how can i check this?When i run the Host,i do not see the FPGA.vi running in the PC.
Also i would do the checks that Artem mentioned and also i will share the SW as mentioned by you soon.