03-20-2014 09:20 PM
Due to having two sets of .NET DLL, I have decided to compiled two exe with each exe uses one set of the DLL. I am thinking about creating a selection exe that would ask the user for a number and decide which of the two exe to execute based on the number. After the exe is chosen, the selection exe would use the command prompt in LabVIEW to run it. To do this, I woud have to call the command prompt dynamically, so that the selection vi will end and let one of the two exe finish. Is that the best way to go about this?
03-21-2014 10:10 AM
You can do it the way you described but I'm not sure why you would want to.
You can have A.EXE and then it calls either B.EXE or C.EXE based on the selection and then when either B or C is done have A shown again and allow them to select another.
But wouldn't it just be easier to have a case structure in A.EXE that either uses one DLL or the other? The call library function can have the path to the DLL provided at run-time so even if the two DLLs are named the same you can differentiate which one to use. Even if this is a .NET constructor node you can have a case that chooses one or the other.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord