12-11-2007 04:01 AM
12-12-2007 09:09 AM
12-12-2007 09:32 AM
Hello,
I have already tried this way with the two Labview.exe (renaming one of them) but the result I got was that the PXI code didn't seem to run: It seemed that the Ethernet connection with the PXI (for the online debugging) used all the resources for this connection and therefore the PXI code was too slow (this is only my interpretation). Anyway, I couldn't achieve what I needed: to debug both codes at the same time.
Yes, the code I attached is the one running in the PXI.
It works this way:
"A&M_rt_1.1.vi" is the main .vi. The Single Scan is made in this .vi. As you see, the main loop is running in 1 ms steps.
In "Hard setings.vi" the AI Task is configured. I will ask you to check if the setting parameters are right (I want to run a non-buffered acquisition with 1kHz sampling frequence). In the "A&M_rt_1.1.vi", in the "RT Control.vi", the actual value of the analogue input (force) will be compared with the set value and when the force reaches the set value, some digital outputs will be written and the controlled servomotor will be stopped. This is a rough description of the VIs functioning.
Thank you in advance,
Eugenio Acevedo
12-13-2007 07:27 AM
12-18-2007 01:59 AM
Thank you for your answer. I have found the problem.
I have just changed the acquisition mode to "read newest samples" and it works. The PXI controls now the force "on line" and there is no delay.
Thank you anyway,
Eugenio