LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ENET 232/2

Hi people, please, I'm using ENET 232/2 device also, I will receive a serial signal, and I have to read it via ethernet in labview

I have to use VISA serial for to do this or is required a different block on labview?

0 Kudos
Message 1 of 20
(3,607 Views)

Hi Bechard!!

 

 

Thank you very much for using NI Discussion Forums!!  All you need is NI-VISA driver to communicate with the ENET 232/2 device, which ports will appear as standard PC serial ports.  There are numerous examples included in the NI Example Finder for LabVIEW, which can get you up and running with preliminary tests.  You can go through the User Manual for more detail on required software under specific Operating Systems. 

 

Hope this helps!!

 

Regards!

 

 

Anuar R.
National Instruments México y Latinoamérica
Ingeniería de Aplicaciones
www.ni.com/soporte
0 Kudos
Message 2 of 20
(3,576 Views)

Hi, thanks for answering

 

My computer is a laptop, it has not a serial port, the serial port is connected on my ENET 232 and, after that, I connect an ethernet cable from 232 to my computer, that's equal? I can read with VISA block?

0 Kudos
Message 3 of 20
(3,559 Views)

Hi Bechard!!

 

 

Yes, the NI VISA driver will allow you to communicate with the COM ports available on the ENET 232/2 device, which will appear as standard PC serial ports. The purpose of the ENET device is to have serial interface ports available through an ethernet connection. I strongly

 

suggest you start by using one of the numerous examples included in the NI Example Finder for LabVIEW.  Also, you can take a quick look at the User Manual for more detailed information.

 

Hope this helps!

 

Regards!

Anuar R.
National Instruments México y Latinoamérica
Ingeniería de Aplicaciones
www.ni.com/soporte
0 Kudos
Message 4 of 20
(3,547 Views)

Hi guys, thank you for answering

Now, I have another problem

 

I'm still using this module, I have a little program, and after a while it's runing, it send me this error, Do you have any idea why it does that?

 

I attached the program and error.

 

Thank you

Download All
0 Kudos
Message 5 of 20
(3,514 Views)

Hi Bechard,

 

I was checking your application and the problem seems to be the Scan from String, this VI gives error 85 whenever it receives data from the Format String input that does not correspond in format to the Input String terminal. My recommendation is to take out both the Simple Error Handler and the VISA Close out of both While Loops and cascade the error terminal through the Scan From String in order to execute or not execute if an error in the VISA Read occurs.

 

My guess is that sometimes the VISA Read does not output the string in the format you specified.

 

By taking out the VISA Close out of the loops you will guarantee that you will not close the VISA reference before you finish reading all the string outputs from the port.

 

Regards!

 

 

Luis Castaneda

 

National Instruments 

Ingeniería de Aplicaciones

www.ni.com/soporte

Luis CT
0 Kudos
Message 6 of 20
(3,492 Views)

Hi Luis

 

I can't yet verify your answer, but a friend send another problem with the visa block

 

We have a device enet 9103 with 9205, and this both errors just appears when I have both devices running together

 

Can you help me? please

 

Thank you

0 Kudos
Message 7 of 20
(3,470 Views)

I attached the another error

0 Kudos
Message 8 of 20
(3,456 Views)

Hi Beachard!

 

Thanks for contact National Instruments Technical Support. Error -1073807253 refers to an issue with the VISA driver; it seems that your port has not completely finished its configuration by the time the 1st character is received off that port.

 

Please check the following link for more information:

 

http://digital.ni.com/public.nsf/allkb/F3E0621CB71AA16786256F970000FC57

 

It will also help if you can share your VI or at least show an image with the part of the code in which you are configuring the port and start receiving data.

 

 

Regards, 

 

Luis Castaneda

 

National Instruments 

Ingeniería de Aplicaciones

www.ni.com/soporte

Luis CT
0 Kudos
Message 9 of 20
(3,433 Views)

Hi Beachard!

 

Here is an example of what I mean about taking out of the loops the VISA references (Configure serial port and Close), this is a very recommended practice because by this way you ensure that you don’t open and close the references in the same node in which your code resides. Also note the delay before reading the port; you should always give some time to the port before you start reading the 1st byte of data in order to avoid errors like – 1073807253.

 

beachard.jpg

Hope this helps!

 

Regards,

 

Luis Castaneda

 

National Instruments 

Ingeniería de Aplicaciones

www.ni.com/soporte

 

Luis CT
0 Kudos
Message 10 of 20
(3,430 Views)