LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

about Labview VISA open

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?

initialize.png

0 Kudos
Message 1 of 8
(4,164 Views)

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?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 8
(4,158 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 3 of 8
(4,155 Views)

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.....

0 Kudos
Message 4 of 8
(4,147 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 8
(4,144 Views)

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?

0 Kudos
Message 6 of 8
(4,142 Views)

@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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 7 of 8
(4,138 Views)

good! I'll try that. thanks

0 Kudos
Message 8 of 8
(4,135 Views)