01-05-2006 10:56 AM
01-06-2006 05:32 AM
Hey Emmanuel
Could you post your code? It's generally easier to see what you are describing with the actual VI, also I can then run or edit it as needed.
What hardware are you using in this setup?
If you post the code, I'll have a look at this for you.
Regards
Hannah
NIUK & Ireland
01-06-2006 07:33 AM
01-06-2006 07:59 AM
Even though these updates are in the same sequence frame this does not mean they are updated exactly at the same time. But this is a small problem in comparison to the reading of the values in the RT system. These values are read over some sort of serial line interface so they will always be read in sequence. The only way to ensure that you will read both related values would be to combine the two values into a cluster. LabVIEW will generate protection around the write and read access to this control so that it can guarantee that you will never read a value at the moment the control is updated.
@Emmanuel Doit wrote:Hello Hannah,Here is my FPGA and my RT code. These are simplified versions of my full program, but show the problem.The most relevant bit is the first while loop in the FPGA, with the two indicators, tooth count and tooth period.The hardware used is a NI PXI-1042 chassis, with NI PXI-8186 for the RT, and NI PXI-7833R FPGA card.I should also explain that the square wave received is a crank signal from an engine.Thanks a lot for any help you can give,Emmanuel
01-06-2006 09:55 AM
Thank you Rolf,
Using the Cluster function in this way has solved the problem!
Best Regards,
Emmanuel