I need to control my camcorder sony via LANC connection

I need to control my Sony camcorder via LANC connection.  At the moment, I can control the camera through Tera term, through the serial port of the computer, via a LANC Sony controller card to the camera.  I would build a LabView program where I can click on the buttons to control the camera via the serial port.  Example: power zoom; Zoom out; etc...  I know that orders to control the camera because I typed them, Tera term.  How to associate orders with buttons in LabView for run commands?

Thanks for your help.

Before there was a structure of the event, everyone had to use a while loop with a case statement. At each iteration of the loop, the value of the control to the case statement must be read. This was/is called mark and used a bit of resources on the computer. With the structure of the event, nothing runs until an event is happening - no vote office and the resources of the computer used are minimal.

The data event node returns different information depending on the event and the control that raises the event. In the example that you cite, the NewVal is connected to the structure of the case. It is the same thing that the control wiring, but in some cases, the command can be placed in a different event. You can have a single event triggered for multiple controls, and in this case, you might want to use the CtrlRef (control reference) to determine the actual control. There are a lot of possibilities.

The option button is an enum. The case statement must match the enum values. Those who are not visible in the example. Right-click on one of the controls, then select the visible items > Label. If you change this, you will see the value in the change of the case statement.

In order to send hex, you can simply right-click on your control station / constant and select "hexadecimal display. You can also use the Typecast and an array of bytes to a string. This question has been asked and answered hundreds (or even thousands) of times and there many examples of programs attached to these positions. Do a search.

Tags: NI Hardware

Similar Questions

Maybe you are looking for