05-10-2006 07:36 AM - edited 05-10-2006 07:36 AM
Message Edited by mdontaraju on 05-10-2006 07:37 AM
Message Edited by mdontaraju on 05-10-2006 07:46 AM
Message Edited by mdontaraju on 05-10-2006 07:46 AM
05-12-2006 09:37 AM
Hello Murali,
Thank you for your question.
It is a little unclear from your description what exactly you are trying
to do. It sounds to me like you have 3
How do you think the threading affects the program? It sounds like you have scheduled the function calls to the FPGA dll in a different thread than the functions calling the other DLLs. I’m not exactly sure why this would affect things except that 100micro sec is a really small time interval. I think it might take more than 100 micros seconds to perform a threadswap, and even then since threading is all timed in software there’s no guarantee that the switch will happen when you want it to. You should also consider upping the thread priority for the FPGA functions. To do this, in CVI use the Schedule Function Advanced and set the priority parameter. This will force the thread scheduler to give priority to the thread you want to run the most.
You should also consider removing the global variables. I’m not exactly sure what you are using the global variable for, but if you are doing multithreaded applications you might consider using a “functional global” variable instead.
Hopefully these suggestions will help, please let me know if you have any other question or if you can further clarify the problem you are encountering.