07-22-2015 11:05 PM
07-23-2015 01:38 AM - edited 07-23-2015 01:42 AM
The complicated point is probably retrieving data, but you can simply use the reverse of FmtFile which is ScanFile: with simple adaptations of the format string you should be able to read back your data and plot them to the strip chart. CVI comes with several examples for ScanFile: see in the function help and look at Using the Formatting and Scanning Functions topic.
BTW, in the future try to give your posts a meaningful title: "Errors" means really nothing here since you are not reporting us any error you are receiving. Even if you were actually getting some error, it should be better to add some detail more in the discussion title (a simple "Errors in ScanFile" could be a more meaningful alternative).
07-23-2015 01:56 AM
07-23-2015 02:18 AM - edited 07-23-2015 02:20 AM
No problem for that: we all here have learned making and correcting errors Simply keep this in mind for your future posts,
Depending on your choices, ReadFile can read up to the entire file so you'll have to properly dimension the variables into which extracting file content. Alternatives are using ScanFile as I told you before or using ReadLine if your file is an ASCII one organized in lines.
The error you are finding means you are trying to write data to a wrong variable or a shorter array than is required: it's difficult to say without knowing the code you are using.
07-23-2015 02:58 AM
07-23-2015 04:14 AM
This is a common error while reading/scanning a value from a source: you need to pass the pointer ti the variable. If you see the examples of ScanFile in the help you'll understand how.
A list of run-time errors can be found in CVI help: see Run-Time Errors and Warnings topic (a online version can be found here for CVI2012, you may have a different release).
It seems you are quite new to CVI and to C language in general: you should take some time to approache the language and the development environment; this time will save you hours of doubts and trials in the future. For what refers to CVI you could start reading the Getting Started documentation that ships with the product (it is linked in CVI Help page: Guide to documentation and in product Welcome page too)
07-23-2015 04:24 AM