11-21-2009 01:10 PM
11-22-2009 04:45 AM
Hi Scott,
Welcome to the community! I hope you enjoy your time with CVI.
As for your question, I won't be able to post you a working code right now, since I do not have CVI on this computer.
I'm sure you will get a full solution soon.
There are many sample projects in CVI installation. They are grouped according to application.
I'm sure you will find one matching your needs.
They are also a good way to get acquinted with the environment and the libraries.
11-22-2009 05:10 AM
Welcome from me too, Scott!
CVI is a powerful instrument for you to develop high quality applications.
Being in the same situation as ebalci, I cannot give you a complete solution, anyway I would approach your problem this way:
Starting from this conceptual framework you can study the documentation regarding the commands I have pointed you to and develop your application. Feel free to post some more questions if you have any doubt on this and other items.
Also, you should treasure ebalci suggestion: CVI comes with a lot of good examples and a powerful searching function with which you can locate the most appropriate code that can address your doubts; simply use Find examples... function in Help menu.
11-23-2009 08:04 AM - edited 11-23-2009 08:07 AM
Hi Scott
Put something together for you (see attached) using some old code I had lying around. You'll need to add error checking and handling but its pretty close otherwise. As the guys in the earlier post suggested you should really go for dynamically allocated storage for your arrays. I have avoided this to keep things simple, but once you've got the file reading concept expand it to malloc and free as suggested.
I have never used it but you might want to look into the FileToArray() function.
Regards
Steve