12-17-2013 05:17 PM
What I want to do is to use a third party camera application to control a camera, and collect the video within LabVIEW.
I am successfully collecting the video using IMAQ.
The third party camera application wants to send commands to a com port.
The camera only has one data connection, a CameraLink Cable.
Right now this is a two computer process, where one computer is running IMPERX's framegrabber and software. IMPERX software will create a virtual com port that when serial data is sent to the virtual port, it gets passed over the cameralink cable to the camera. So, I disconnect the cameralink cable after passing camera parameters via a third party software, then connect the cable to a NI-1427 cameralink card, to collect video.
What I want to do is set up a virtual port where LabVIEW can pass the data on through the IMAQ serial write to the camera.
Unfortunately, I see no good way to do this.
So, Here is what I may attempt: I may install a virtual com port using software from Eltima : http://www.eltima.com/
Then in LabVIEW, poll the virtual port for bytes at port and pass them on using the IMAQ drivers.
1st question: Is there a way to set up a virtual com port within LabVIEW?
2nd question: Is there a way to know if there is data at a serial port by using events or interupts? Instead of constantly polling?
12-18-2013 06:10 PM
Hi Monzue,
You'd need to set up a virtual port with third party software.
As for using events to read from the port, you might try taking a look at these links:
https://decibel.ni.com/content/docs/DOC-11272
http://forums.ni.com/t5/LabVIEW/VISA-Wait-on-Event-User-Event/td-p/2208748