05-05-2011 02:58 AM
this is the picture of the end of first iteration
05-05-2011 03:33 PM
Hi Temin,
It sounds like maybe you are confused about a startup executable. A startup exe will always run after you reboot your compactRIO. It does not have a front panel so there is no way to tell if controls/indicators are updating without a host (or remote front panels). To view data on the host, you can use shared variables, network streams, or tcp to transfer data from the real-time to the host PC. Is this what you are doing? If not, how can you tell what is running and what isn't?
In the small snippet that you posted, I noticed that the "Wait Until Done" input of the "Run" method is set to true. Is this what you want? Since most FPGA VIs do not stop, this would essentially hang your program.
Thanks,
05-05-2011 11:54 PM
hi thanks PaulRB for your reply,
yeah i got your point, i haven't created host vi yet i will try to create it next.
but what about this communication error problem without startup executable..
If i run the real-time VI in highlight execution mode, the loop runs for 1 iteration then returns a error dialog box "communication error occurered" ,if i press ok then another dialog box appears "warning:connection to the real time target has been lost" if i press ok, then the real time vi stops running, but the output of the first iteration is still there ie., in my case according to the logic of block diagram DIO 0 is high. even after real time vi stops running DIO 0 is still high.
05-09-2011 01:38 PM
Hi Temin,
From your screenshot it looks like you are using LabVIEW 2009. In that case, this KB might apply. Let me know if that helps.
05-11-2011 12:21 AM
hi PaulRB,
I solved the communication error problem,that link helped. but still i am confused, i upgraded labview,realtime module,fpga module to sp1 then the problem solved. previously i was having all the above things in just 2009 version,i didn't have a single module upgraded to sp1 and leaving the others as it is.
By the way how can i develop a pwm signal at digital output. I am using NI 9004 Crio controller. I dont have a analog output module.Iam having NI 9401 digital module. the digital output should be connected to a relay,which in turn will turn ON/OFF a heating element. I want to know how to develop a perfect pwm application, so that by varying the duty cycle i can maintain the temperature constant.can you tell me what and all functions can be used in crio for this purpose
Regards
Temin
05-12-2011 05:59 PM
Hi Termin,
Here is an example of how to do PWM on an R-Series card. You should use these examples as a starting point to generating a PWM signal on your RIO.