Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

CN77000 programming MSCOMM Visual Basic

Greetings,

Would like to ask here regarding Omega CN77000's programming of commands.

So far from the search I've found, it's related with VISA. Instead, for my case, I'd require to program a simple code to control the temperature sensor.

Right now, what I've done is to establish communication with my serial port (MSCOMM), and then, send a command to the machine (which is properly connected). In this case...

MSComm2.Output = "D03" + Chr(13)

This is the line I've sent over...

I've a feeling it's wrong as the device didn't respond. I've tried to figure out what are the possible solutions such as outputting "68" (D), "48" (0), "51" (3) then Chr(13) (carriage return). Is this the correct way? Can someone enlightened me?
0 Kudos
Message 1 of 2
(3,497 Views)
Hey PaulKa
I'm not to familiar with the Omega CN77000 and it commands, that is something you may have to consult the manual or call the manufacturer for, but I would recommend using NI-SPY to detect if there is any problems. This program will monitor your serial port, and display all the messages be sent/received over it. You can find this program by navigating to Start->Programs->National Instruments.
Another option is to try an example program that comes with NI-VISA. You can find them on your PC under C:\Documents and Settings\All Users\Documents\National Instruments\NI-VISA\Examples. I would recommend looking under the DotNet2.0 and SimpleReadWrite. Try the same command that you used before, and see if it works.

Hope this helps
Can Wong
0 Kudos
Message 2 of 2
(3,466 Views)