LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to fit my C++ program into labview interface?

Depends on the version of the LabVIEW.  On my computer, somehow it does not show up at its supposed place.

Using LabVIEW Help to search "system exec".  you should have something like the attached image.

-Joe


0 Kudos
Message 11 of 22
(3,127 Views)

Hello there,

i managed to locate system exec, thanks! Have another problem, i want to run the EXE using system exec.vi, what are the parameters i need to pass at the command line?

Thanks for all the help!

0 Kudos
Message 12 of 22
(3,105 Views)
the command line input is the absolute path to the EXE you want to run, along with any parameters that EXE may need. It is just like typing in the CMD window. -Joe
0 Kudos
Message 13 of 22
(3,101 Views)
Somehow it doesn't work for me.
Please see attached.
Thank you.
0 Kudos
Message 14 of 22
(3,097 Views)
Don't put the cmd /x /c portion in the string.  That is what you would type if your were typing everything into the windows Start menu run command.  That is inherent to the System Exec function.  You just want the portion from "Start" on.  And you may not even need the "Start" command.  Just experiment with the string until you find what works.Smiley Wink
 
And you probably should have started a new message thread with this question rather than adding onto a 10 month old thread that was a different topic.Smiley Wink


Message Edited by Ravens Fan on 11-12-2007 09:44 PM
0 Kudos
Message 15 of 22
(3,091 Views)
 
Okay! I managed to succeed running the exe file. Thanks.
 
This time round, i created a DLL via Call library function node. One of my function parameters is a type of character pointer and the parameter value will be "com1"  so how do i solve this problem?
0 Kudos
Message 16 of 22
(3,078 Views)


microes wrote:
 
Okay! I managed to succeed running the exe file. Thanks.
 
This time round, i created a DLL via Call library function node. One of my function parameters is a type of character pointer and the parameter value will be "com1"  so how do i solve this problem?


Don't hijack another thread for your own uses. Start a new one!!!
 
Rolf Kalbermatter
Rolf Kalbermatter
My Blog
0 Kudos
Message 17 of 22
(3,071 Views)
How would labview interface to a function call like this? What data structures would we use and how would we define the configuration for the Call Library Node?
 
int SomeCalculations(vector<float>& input, vector<float>& output)
 
I know it works fine with a call like this:
 
int SomeCalculations(float* input, float* output)
 
but we'd like to be able to use the STL Vectors if we can.


Message Edited by GrayRonin on 01-03-2008 07:55 AM
0 Kudos
Message 18 of 22
(2,917 Views)


@GrayRonin wrote:
How would labview interface to a function call like this? What data structures would we use and how would we define the configuration for the Call Library Node?
 
int SomeCalculations(vector& input, vector& output)
 
I know it works fine with a call like this:
 
int SomeCalculations(float* input, float* output)
 
but we'd like to be able to use the STL Vectors if we can.


Message Edited by GrayRonin on 01-03-2008 07:55 AM

You can't! Not without an external code wrapper written in standard C anyhow. The Call Library Node only supports standard C datatypes. What you try to do is a C++ datatype.

Rolf Kalbermatter
Rolf Kalbermatter
My Blog
0 Kudos
Message 19 of 22
(2,882 Views)

Hi,   

 

 I am an intern working at Synaptics. And my project is to automate the product testing team's bench test procedure using Labview. Now i am able to control and automate the settings and changes in the settings of the power supplies and function generators and the scopes through GPIB. But, now the tough part. They have a I2C software written in Visual C which they use to load and configure the registers on the chip that we test on bench. So, i am trying to control that I2C software through labview so i wont have to go into the I2C software and configure the chip from there. Instead i could control the I2C software through command prompts [or any other way] from labview and configure the chip automatically with the right registers and the right values to initialize them

Please help. Any kind of guidance or idea would be helpful.

 

Pritam Saha

Synaptics

0 Kudos
Message 20 of 22
(1,636 Views)