LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Measurments and automation explore does not see Agilis usb connection

I haven't - look at the .doc
0 Kudos
Message 21 of 30
(2,361 Views)

I read aslo that I can download this Hyper Terminal program and now I am waiting on the IT guy, who will install this fill because I haven't got access to do it. When it will be done I let you know.

0 Kudos
Message 22 of 30
(2,360 Views)

I have some problem to install Hyper Termianl (not me guys from IT) but I checked AGILIS in other hand - it means that I can set of ASCII-commands to Agilis and it is working - see attachment- the agilis controller has terminal where I can set some commands - the same commands which should be working in MAX or LabVIEW but it doesn't..... but I when I get the Hyper Terminal I will check

 

0 Kudos
Message 23 of 30
(2,328 Views)
I also download program from website http://digital.ni.com/public.nsf/allkb/171D2D70CFB66E74862571390062D12B?OpenDocument  : basic serial write and read_1 bit.vi and used VISA serial to configure my port. I use setting, which Newport recommend (see 00.doc). The error come out that "Property Node (arg 😎 in VISA Configure Serial Port (Instr).vi"
0 Kudos
Message 24 of 30
(2,320 Views)
I checked the error code -1073807194 -The connection for the given session has been lost.-, which occur in the write_read.vi from vendor and VISA configure serial port.vi. What I should do? If I creat the .inf file it will help?
0 Kudos
Message 25 of 30
(2,306 Views)
Yes, you need one. As Dennis mentioned before, the manufacturer should have given you one.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 26 of 30
(2,299 Views)

Since the device appears as a com port in MAX, you must already have an inf installed.

You keep attaching word files that  don't, imho, help all that much. You showed one image of the VISA tool in MAX and you sent the *IDN? query. Is this an actual command supported by the instrument? Presumably, the commands you use in the vendor's command line window work. Have you tried those in MAX? Have you tried them with different combinations of the termination character? For example, the \n is a Line Feed. Try it with a \r (Carriage Return). Try it with \r\n.

I still think it's important to try with Hyperterminal. I don't know anything about Vista (and don't want to) so I have no idea why it can't be installed.

Another good tool to use is a program called portmon. This can be used to monitor the communication over a serial port. You can turn this on and capture the data. It will give you a good idea of what you need to actually send in LabVIEW.

0 Kudos
Message 27 of 30
(2,292 Views)

Hi,

 

I'm having the same issue as 'PhD student'. Donald, the device shows up fine in COM3 for MAX.  I tried permutations of /r and /n as you suggested, but this was unhelpful. I have been using the ASCII commands that have been given to me by the company. 

 

Is there any diagnostic command that is universal to VISA controlled devices that I can use to check if the device is receiving anything at all?

 

I also tried hyperterm, and it didn't work either. I have the port settings as the company suggests, but still no luck. 

Message Edited by vroomy on 09-09-2009 10:47 PM
0 Kudos
Message 28 of 30
(1,988 Views)

First of all, it's not /r and /n. It's \r and \n. Big difference.

 

Second, if you cannot communicate with Hyperterminal or LabVIEW and you are sure the com settings are correct, try a different type of serial cable. If you are using a null-modem cable, try using a straight-through cable. And vice versa.

0 Kudos
Message 29 of 30
(1,943 Views)

installation of the (virtual) rs232 driver of the Agilis AG-UC2 Controller and next: addressing it with labview VISA was a nasty trial and error experience but here's what seems to work:

1) download NSTRUCT and switch off all the features exept: NSTRUCT_1.2.5 and the AG-UC2-UC8_1.0.2 applet (assuming you already have .net framework3.5 and labview incl VISA drivers installed

2) run the package installer in the downloaded zip

3) connect the AG-UC2. In the windows hardware setup popup (Wxp at least, for W7 goto Control Panel -> System -> Device Manager, select the agilis device and right click update driver software)

    now manually select the location of the driver: typically it's C:\Program Files\Newport\Instrument Manager\NSTRUCT\Instruments\AG-UC2-UC8 and finish this driver install

4) now there's another driver install that will follow up - for the virtual RS232 port. For W7 see instructions above. Again select the driver folder as above and finish install


After this, you should have a COM6 or whatever COM number available in the windows device manager. If this works, continu with the labview application:

 

Labview application to control the AG-UC2:

1) do the initialisation "VISA configure serial port" and set all the variables (baud rate 921600 8bits 1stopbit no flow control, parity none) and just ignore any termination character setting as this does not work anyway

2) after each VISA write command enter the \r\n to have proper termination of the command. The easiest way is to set the command string to ' \ Codes Display'  (with a right mouse click on the string control) and next just type VE\r\n for instance if you want the AG_UC2 to tell you the software version

3) perform a (VISA bytes at serial port and a) VISA read. This should return the software version ('AG-UC2 v2.2.0' in my case). If you get this kind of response, you're up and running!

 

good luck (you'll need it)

 

0 Kudos
Message 30 of 30
(1,524 Views)