07-20-2012 08:51 AM
Hey!
I'm trying to use a GPIB-232CT-A in S MODE to comunicate with a device using Labview 8.6 in Windows XP.
I can already communicate via Hyperterminal and the instrument gives me its ID correctly.
Afterwards, I tried to use the following http://zone.ni.com/devzone/cda/epd/p/id/5236 program it gives me the error:
Error - 1073807339 even when I try to increase the visa timeout using the function "VISA Set Timeout"
I'm sure that the gpib adress, baud rate, parity, etc are correct because I could already communicate with hyperterminal.
Any ideas of what is happening?
Thanks
07-20-2012 08:55 AM - edited 07-20-2012 08:56 AM
Being able to change the VISA Timeout has nothing to do with whether the baud rate etc is configured correctly.
You have another problem.
Did you install NI-VISA?????
07-20-2012 08:59 AM
yeah, I know. I was just adding more information.. 😉
yes, I do have NI VISA and it works properly with other istruments
07-20-2012 09:09 AM
Can you communicate with the instrument through MAX's VISA Test Panel?
07-20-2012 09:31 AM
how do I do that?
07-20-2012 09:39 AM
ok, I have done it but I have no idea what I'm looking for in the report. any hints?
07-20-2012 09:51 AM
Here it is:
07-20-2012 09:52 AM
07-20-2012 10:16 AM
There was never a mention of getting a report in MAX. What WAS suggested was using a VISA test panel. You can right click on the com resource in MAX, just click on the resource and in the right hand panel, click the "Open VISA Test Panel", or go to Tools>NI-VISA>VISA Interactive Control.
I suspect that since it works in Hyperterminal, you are not sending the correct (or any) termination character. This needs to be a carriage return or line feed. In the test panel, that is equivalent of adding a \r or \n at the end of the command.
07-20-2012 11:21 AM
ok, sorry I'm new at this.
I've done the read and write test in MAX using \r in the end of each test. The TALK/LISTEN LEDs turn on and off and that wasn't happening in the my labview program, so there's some progress there :). However, when I try to read, it is still giving the same error: -1073807339.