04-15-2009 10:07 AM
Hi there,
I'm no expert in computer programming. Thus, I chose LabView over another other languages. But I just ran into another problem here. The instrument that I'm using takes only c++ codes, not LabView.
Is there any way I can convert the VIs that I have written into c++ codes, so that my instrument will understand the LabView programs?
Thanks in advance,
Pui
Solved! Go to Solution.
04-15-2009 10:11 AM
No, there is no way to convert LabVIEW code.
Your statement about an 'instrument' only taking c++ is confusing me. Instruments typically don't take any type of programming language - neither LabVIEW or c++. What exactly are you trying to communicate with? What type of connection is there beween the pc and the instrument?
04-15-2009 10:12 AM
Subaru wrote:The instrument that I'm using takes only c++ codes, not LabView.
I don't understand what this means. Can you explain in more detail? Are you referring to copying DLLs to the instrument?
Is there any way I can convert the VIs that I have written into c++ codes, so that my instrument will understand the LabView programs?
In a word, no. There is a LabVIEW Microprocessor SDK which targets microprocessors, so that sort of does something like that, but it's limited in terms of supported functions, and it costs a cool $12,000.
04-15-2009 10:17 AM
Thanks for the quick replies!!!
I'm sorry for the confusion. I am using an atomic force microscope. In the software that came with the instrument, there is an option that the user can compose a program in c++ scripts, which the instrument software can understand. I believe that somehow the c++ scripts will be saved in .DLL format.
04-15-2009 10:30 AM
That is completely different than the 'instrument only takes c++ code'. It is of no consequence the way you write a program to communicate to an instrument. Just because the vendor provides an example in c++ does not mean that you have to use c++. What you have to do is send the same commands to the instrument that the c++ program does. Heck, if we were forced to use the same language as a provided example, we'd still all be using Basic for Agilent equipment.
So, get a list of the commands that the microscope supports and start writing the code with LabVIEW.
04-15-2009 10:31 AM
I am using an atomic force microscope.
That's just sounds way cool. I think the name is awesome. Is it like nuclear powered?
OK, back to your query. If that's what the instrument uses, then you can't use LabVIEW for that. You will need to use the method that the instrument requires. I suspect it's C++-like, rather than C++, since C++ is not a scripting language. Perhaps the manufacturer provides suggested development environments for writing these scripts.
04-15-2009 10:35 AM
smercurio_fc wrote:I am using an atomic force microscope.
That's just sounds way cool. I think the name is awesome. Is it like nuclear powered?
OK, back to your query. If that's what the instrument uses, then you can't use LabVIEW for that. You will need to use the method that the instrument requires. I suspect it's C++-like, rather than C++, since C++ is not a scripting language. Perhaps the manufacturer provides suggested development environments for writing these scripts.
Well, I guess I'm still confused. I assumed the c++ code was to run on the pc.
We probably need some more information. An electronic copy of the manual would help or an electronic copy of whatever document that describes this c++ code.
04-15-2009 10:37 AM - edited 04-15-2009 10:38 AM
Thanks guys!!
Need to understand more. Feel stupid to ask questions like this. 🙂
04-15-2009 10:44 AM
Alright, Let me try again.
I have attached some the couple of pages of the manual that I was given.
04-15-2009 10:46 AM