10-17-2014 02:00 AM
Measurement &Automation explorer does not see the device.
It is performing read/write/query operations without error because it probably sees the port without anything connected.
The hamamatsu source should display REMOTE if it were connected to a computer but it doesn't.
How do I undo/delete this MAX project and start again?
How do I get this source to communicate with MAX?
10-17-2014 02:33 AM
10-17-2014 03:05 AM
Max sees COM3 "COM3_hamamatsu" as I originally named it.
When I select it and press Validate => Successfully opened a visa session to "ASRL::INSTR".All of the parameters on this page are valid.
If I open VISA test panel, input/output ,press write
write operation (*IDN>\n)
return count: 6 bytes
the same for
/query/read.
This is the point where last time only write was working and query/read returned an error.
But now the source is not connected so no errors at all.
In all honesty, I don't exactly know what I am doing: my understanding was that visa should set up the communication with the device and that configuration would be used by labview.
But visa, right now, is not sending nor receiving anything to/from hamamatsu
10-17-2014 03:22 AM
10-17-2014 03:45 AM
no, it is not working:
COM port # is unacquireble!
yes: input com port #
no: click search button after reconnect the cables.
yes/3 =>
can not connect to com3.
click either ok of cancel after reconnect the cables
reconnect cables=> detected new device com3 11:43:51
now it is working. This is ridiculous.
I just unplugged and the replugged the cable.
10-17-2014 03:58 AM
ok:
so now, instead of 2 ports: com3 hamamatsu and lpt1 i get a third one
COM3
when I selected that one(com3, newest entry) and clicked validate : successfully opened a visa session et c.
AND "REMOTE" apeared on the hamamatsu display
good news
then I opened test panel/input/output
write
no errors
query read operation return 2 bytes
BC
error: visa hex oxBFFF0015 timeot expired before operation completed.
BC is the failure response from hamamatsu.
so, indeed, there is feedback, even if not the kind I was hoping for
10-17-2014 04:03 AM - edited 10-17-2014 04:06 AM
Thank you for your patience and advice, Dennis !
Now I must deal with the error
error: visa hex oxBFFF0015 timeot expired before operation completed.
it is not the timeout value: I increased it to 15000ms and the result is the same.
write -ok
read -returns error
10-17-2014 04:50 AM
in page 18 of the attached manual:
"When creating your own program by utilizing control commands, the following command
is available. In all commands, it is necessary to be terminated by CR(Carriage Return)"
so I selected from visa/config/ input/output settings / termination character : Carriage return -\n
Nothing changed.
10-17-2014 06:19 AM
10-17-2014 06:21 AM