Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Omron K3HB RS232 Communication

Morning All

 

I'm trying to alter an old program that was reading a Druck 282 DPI to read an Omron K3HB DPI over RS232. I have the coms string for the Omron (02H 01 00 0 0 0101 C0 0002 00 0001 03H), but it does not seem to be working. I've attached a screen grab of the code I'm working with.

 

Any help would be appreciated.

 

Andy

0 Kudos
Message 1 of 5
(5,040 Views)

Hi Andy, 

 


Have you tried using this VI to test for a response from the Omron?
http://www.ni.com/example/27423/en/ 


Are you able to find the Omron as a VISA resource?

https://forums.ni.com/t5/Example-Code/Programmatically-Determine-Card-Information-in-PXI-Chassis-slo...

 

Let me know how you get on with these examples. 

 

Tim, CLD, CTD
National Instruments (UK & Ireland)
________________________________________________
"No problem is insoluble in all conceivable circumstances"
0 Kudos
Message 2 of 5
(4,963 Views)

Hi Tim

 

I've run both programs. The VI for getting a response gave nothing, I was getting 0 bytes at the port. The one for VISA resources found nothing, generating an error at the VISA find resource node.

 

I guess from that the Omron is not communicating with VISA?

 

Andy

 

 

0 Kudos
Message 3 of 5
(4,935 Views)

Better post the vi instead of a png of the BD 😉

 

Seems that you need to send the hex values.

Have you set the display style of your string input to hex?

If not, do so 😉  by rigth click the string control and set it to hex display

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 4 of 5
(4,930 Views)

Hi Andy, 

Have you tried following these steps for configuring a serial device?

https://learn.ni.com/learn/article/getting-started-with-instrument-control-hardware-and-labview


Cheers, 

Tim, CLD, CTD
National Instruments (UK & Ireland)
________________________________________________
"No problem is insoluble in all conceivable circumstances"
0 Kudos
Message 5 of 5
(4,927 Views)