06-25-2009 01:26 PM
Hi,
I am looking for a solution or method to migrate labview code developed in windows platform into Linux platform. The thing is we have developed instrument driver code in Windows platform and have used VISA as well for communication purposes. I've come to know about some method for such porting to follow as the project file of ours contains vi.lib stuff as well. We do have a license for both Windows and Linux versions of Labview.
Please suggest me any solution to do such porting into Linux platform if someboy have come across such things.
Thanks in Advance,
Vivek
06-25-2009 03:51 PM
If you've created an instrument driver with nothing but VISA functions and followed the guidelines, then I don't think you will have to do a thing. To check, just copy the driver project over to the Linux box and open it up.
'Some' vi.lib stuff is pretty vague but you can check the help to see if anything is windows only.
06-25-2009 11:51 PM
Hi Dennis,
We have already tried that method. I created an exe for the driver, installed in the linux platform and suprisingly it got installed. But then labview gets crashed once I open any of the driver code. It allows me take driver VI as a SubVI but labview crashes if I try to open driver code. I thought it may be the vi.lib issue and hence posted the issue.
Please suggest me the way of porting and thanks for your valuable suggestion.
Thanks in Advance,
Vivek
06-26-2009 04:39 AM
You could try opening the code itself in linux platform and build the executable there.
try avoiding the build from windows <-> linux .
Might have OS dependencies.
Sundar.
06-26-2009 06:14 AM
An instrument driver is not an exe. Why don't you simply use the source code like all other instrument drivers?
No exe created on windows will run on a different OS.
06-26-2009 09:15 AM
Thanks guys for quick responses. I really appreciate your support. I tried the way you mentioned. I copied all my code into the linux system. Created new project file but again same problem occurs, labview is crashing because of VISA.
Why I am sure about the VISA is because I tried to open/create new VI in linux using VISA API's and all are creating trouble and further it leads labview to crash.
Rest all other functions in labview are working fine. Hope all my assumptions are correct and could blame VISA for creating problems.
Please do suggest us ...
Thanks in Advance,
Vivek
06-26-2009 09:36 AM
06-27-2009 03:41 AM
Yes Dennis,
The pictures are becoming clear based on your valuable support only and hence posted a new message as well. Initially I thought of vi.lib issues only and hence looking out for making our driver independent from platform.
Thanks,
Vivek