02-24-2016 11:24 AM
HI everyone,
I am starting using CVI in my work. I have one source code whre it mentions the instruction "erpInfo". Could anyone explain me what exactly is? Thank you.
Serg
02-24-2016 04:46 PM - edited 02-24-2016 04:46 PM
I don't recognize this term as part of CVI: does the project make use of third-party libraries for some special task? Is this a function name, a variable, a macro or what?
If you can run the project then you can click on that name and press Ctrl+I to go to its definition (or right click on it and select `go to definition`)
02-24-2016 04:55 PM
Hi Roberto,
Thanks for your attention.
Let me attach the complete line of programming. The project has at least two .c files and also it manages three instruments.
it seems that the code is reading a flash memory here is the line:
// get current firmware from NAV
status = iGetErpFirmwareInfo(msSqlHandle, uutInfo.partNumber, &erpInfo);
I have to go to the production floor until the line can be available due to now is busy producing.
Thanks Robert
02-25-2016 03:09 PM
Hello, as I told you this function is not part of CVI: it may pertain to one of the additonal libraries your project is using.
I can try guessing that the function retrieves informations about the unit under test stored in a database; erpInfo could be a structure that holds several informations about it. These details should be clarified in the documentation supplied by the library producer, if the variable is a structure it is probably defined in some file included somewhere in your project.
You do not need to access the production machine to try understanding the code: if you can compile and link the program on your machine, you should be able to understand where functions and variables are define the way I showed you before.
02-25-2016 03:18 PM
Hi Roberto,
I appreciate your time and experience in this matter. I will follow what you are mentioning here and also I will need to spend more time analizying the code.
Thank you
Sergio MR