11-19-2009 03:11 AM
I m using the Ni Switch SFP seperately for switching on/off relays in my board. Now I wish to integrate this EXE into my main application. I can successfully invoke the EXE by using the Sys Exec function (with Wait until completion=True). The probelm is the Switch SFP does not exit when the Window close button is clicked; it just stops like a VI. We need to again click the Window close button to exit it.
So, how to go about this? Is there any workaround? Please see the attached snapshots.
Also, is there any way to invoke & bring an EXE into a Subpanel control that is present inside a Tab? My application demand is in such a way that I need to seamlessly integrate this EXE into the main GUI, so that the user feels it is an integral part of the main application.
11-19-2009 03:59 AM
Partha,
I think you forgot to attach the snapshots.
Just curious to know, does the NI switch SFP exits while clicking the windows clsoe button when you run it as a stand alone application?
11-19-2009 04:13 AM
Sorry, please find them here.
Even if you try to Exit thro' its menu, the result is the same; it stops but doesnt exit.
11-19-2009 04:16 AM
Vsh wrote:
Just curious to know, does the NI switch SFP exits while clicking the windows clsoe button when you run it as a stand alone application?
No. This is the problem with it.
11-19-2009 04:48 AM - edited 11-19-2009 04:50 AM
Hi Partha,
I use LV8.5 and I gave the following command in command line input
C:\Program Files\IVI\Drivers\niSwitch\NI-SWITCH_Soft_Front_Panel.exe
Everything works properly. when I exit SFP by clicking the windows close button!
But the calling vi stops no matter the status of wait until completion is true or false.
Edit- Aha there you go. problem with SFP. BTW wht command line did you use?
11-19-2009 04:59 AM - edited 11-19-2009 05:02 AM
C:\Program Files\National Instruments\NI-DAQ\Switch\SoftFrontPanel\Switch_Soft_Front_Panel.exe - this is the command line I used to invoke NI Switch SFP.
Vsh wrote:I use LV8.5 and I gave the following command in command line input
C:\Program Files\IVI\Drivers\niSwitch\NI-SWITCH_Soft_Front_Panel.exe
BTW, I dont have this folder at all in the hierarchy. All I have is IVI Foundation under Program Files.
Like this - C:\Program Files\IVI Foundation\IVI\Drivers\iviswtch\...
LV 8.5.1 under WinXP, Ni Switch SFP 1.5.0.49152
11-19-2009 07:16 AM
Partha,
May I ask, why do you want to do it like this anyway? What is the advantage using the SEP panel as opposed to writing a VI in LabVIEW that can look close to that panel and do the same thing?
11-19-2009 09:39 PM
Broken Arrow wrote:What is the advantage using the SEP panel as opposed to writing a VI in LabVIEW that can look close to that panel and do the same thing?
This was going to be my next question, since I know it maybe a circuitours way to play with the EXE to make it behave like as I want to.
Can you give me some intial ideas of which VIs that I need to look into to switch on multiple relays at a time? I browsed thro' the NI Switch pallette but could not understand much on the first attempt. Moreover, I feel that some VIs are missing in it. Because the pallette is available only in Measurement I/O pallette.
Can you help me out in this regard?
11-20-2009 07:49 AM
Partha,
See attached (in LV 2009). This is how I do it with the IVI stuff. You can also (instead of) set relays as if they were digital outputs using DAQmx.
This example is for a different card, but you'll get the idea.
11-21-2009 12:19 AM
Broken Arrow,
Could you down convert your vi to 8.5 and post again?