LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview and Visual C++

Bull's Eye,

What exactly do you mean by "cooperate".

I recently worked on a project that involved a customer's test executive built in Visual C++ that called a great deal of LabVIEW Code built into dll. This code ALSO called DLLs built in Visual C++, which were ALSO called by the Visual C++ Test executive. I think you can safely say that 'the two languages were cooperating' in this instance.

If you were to provide some insight into what you are trying to accomplish, we may be able to help you.

As much as I don't like Windows and MFC, I have to admit that using and building DLLs was quite easy, a lot easier than building executables, in my own experiences. This may be the way to go for you. Again, I'm not sure.

Good luck
0 Kudos
Message 7 of 13
(845 Views)
Well, I'll try to give a brief explanation about what i have to do:

What it is all about is a program to control an AFM (Atomic Force
Microscope). Therefore, I need a Visual C++ program to change the settings
(Scan Rate, Scan Size, Voltages to apply to the testsample, etc...). Then,
my C++ program has to give those variables to the Labview program which
takes over the control, and generates a sequence of voltagelevels to send to
the AFM. The info that comes back, should go back to the Visual C++ program
for vizualisation.

So the C++ program changes some parameters in the Labview program, which
then runs on its own, and C++ program retrieves info from LV.

That's what it's all about. I allready looked at Measurement Studio from
National Instruments,
but I don't think that suits my problem...

Can this be implemented using Labview dll's, and where is a good place to
find info about that?

Thanx in advance,

Bull's

"Labviewguru" schreef in bericht
news:506500000005000000235D0000-1011517314000@exchange.ni.com...
> Bull's Eye,
>
> What exactly do you mean by "cooperate".
>
> I recently worked on a project that involved a customer's test
> executive built in Visual C++ that called a great deal of LabVIEW Code
> built into dll. This code ALSO called DLLs built in Visual C++, which
> were ALSO called by the Visual C++ Test executive. I think you can
> safely say that 'the two languages were cooperating' in this instance.
>
> If you were to provide some insight into what you are trying to
> accomplish, we may be able to help you.
>
> As much as I don't like Windows and MFC, I have to admit that using
> and building DLLs was quite easy, a lot easier than building
> executables, in my own experiences. This may be the way t
o go for
> you. Again, I'm not sure.
>
> Good luck
0 Kudos
Message 8 of 13
(845 Views)
Bulls Eye,

The only question I would have is are you sure you need C++? You can easily use LabVIEW do accomplish this same thing, I believe, although I am not sure what your exact needs are.

There are several ways you can do this. You can have LabVIEW be the main interface/executive and call routines from your C++ code (if needed) and then run the balance of the task. You could have C++ be the exec (as in my application) and then call a LabVIEW dll and return the data to the C++ Program. Or, you could just do the whole thing in LabVIEW (this would be my first choice, but I am slightly biased.

I hope this helps. If you would like more information, either post it here or email me.

Good luck
0 Kudos
Message 9 of 13
(845 Views)