08-28-2014 07:47 AM
I'm trying to communicate with a laser by using Labview VISA open. this is the initialize part. but it doesn't work. do I need to add the ID query?
08-28-2014 07:50 AM
Hi cantata,
what does not work?
You open a connection to your device. That's all you do in that snippet. and as long as it doesn't answer with an error it works…
I'm trying to communicate
Communication is usually done by sending commands and reading their answers. Where do you do this?
08-28-2014 07:53 AM
What bus are you using to talk with your laser?
If using a serial port, use the VISA Configure Serial Port instead of the VISA Open. The Configure Serial Port has a bunch of inputs, like Baud Rate, to make sure your serial port is configured correctly.
If you can't talk with your instrument, then an ID querry is not going to work.
08-28-2014 08:17 AM
I'm trying to build a driver for a laser. the tutorial said it should include initialize, configure, action, data and close parts.
I hoped there would be at least some response after the VISA open.
if the VISA can't open, the following configuration part wouldn't work.....
08-28-2014 08:19 AM
How do you know you aren't opening the communication resource? Are you getting an error?
You never did answer my question of what communication bus are you using to talk to the instrument.
08-28-2014 08:22 AM
it's serial port.
so using VISA Configure Serial Port is the first step? do I need to use VISA open then ? after configuring the serial port, it's initialized?
08-28-2014 08:25 AM
@cantata2014 wrote:
it's serial port.
so using VISA Configure Serial Port is the first step? do I need to use VISA open then ? after configuring the serial port, it's initialized?
No need for the VISA Open. It will be initialized once you configure the serial port.
08-28-2014 08:27 AM
good! I'll try that. thanks