11-10-2008 06:25 PM
Hello,
I'm writing embedded programs for the Luminary evaluation board. As most of you know, the debug mode allows you to read and write value via controls to the embedded target.
What I would like to do, is use this extracted values and do some advanced operations and presentation with VIs. These VIs are just for a debug use, and I don't want to download them on the target, as their features are not supported by C code generation.
I would like to know if any of you have already solved this proble, which possibilities do I have to run some of the VIs on the computer and the others on the target.
I saw that in the project windows, you can add Vis on the computer and on the target, but then how to have them starting running together, and how do I pass arguments between them?
Hoping you have an answer, Best regards
Solved! Go to Solution.
11-12-2008 04:52 PM
Hello,
You have a few options with regards to passing arguments between VIs running on your host and Luminary Micro board. You would be able to use serial communication or ethernet to transfer data between your board and your PC. You could alternatively use digital pins themselves, but this is more intensive as a custom protocol would have to be written.
As for getting the VIs to start at the same time, here are some options that you can look at ( you are not limited to these):
- get your ARM target to wait for a tcp packet from the host machine before it starts executing its main code. That way manually starting your host VI will activate the ARM code
- Try using VI Server functions on the ARM target while you are developing your code, perhaps it will send the necessary commands to the host PC to open a particular VI (it doesn't stop you from placing this function to your target)
Let us know if this helps!
11-12-2008 05:17 PM
Actually, I was more thinking of a way to "intercept" the debug values send to the computer via the JTAG interface. As they are used in the projects front pannels, it would have been a nice solution.
But as it seems impossible, I'll have to try using ethernet communication.
Thanks for your answer