08-28-2014 11:20 PM
I'm trying to build a driver for a laser.
Q1. I used the VISA Configure Serial Port to initialize, and write the command to the register. the command was for selecting a laser channel, but it doesn't show on the analyzer.
Q2. Can I use the same configure to write multiple strings in multiple times? for example, to write 011E0001 to select channel, and write 011F03E8 to set power.
08-28-2014 11:35 PM
08-29-2014 01:07 AM - edited 08-29-2014 01:08 AM
Hi,
Try something like this and use VISA Close. After all communication is complete, the VISA session is closed.
08-29-2014 01:26 AM
08-29-2014 01:32 AM
I just draw that... should be write first...
08-29-2014 02:10 AM
sorry I don't quite understand what the for loop here means. for example, I want to write a string to select a channel, and then run. then, write another string in the same string controller, and then run...but the for loop seems run automatically, how can I write multiple strings?
08-29-2014 02:18 AM
08-29-2014 02:30 AM
do you agree for this one? simple write and read?
08-29-2014 02:51 AM
01-29-2015 03:11 AM
I finially figure out multiple writes..