07-31-2013 02:48 AM
Hi everyone,
I am very new to labview and I only know very little about the program. I am trying to read out temperature readings from a Sensortherm MY84 pyrometer using labview. It connects using an RS232 port, but I am using a converter to USB. There is no existing driver for the device in the NI website. The device is detectable in NI-MAX as a COM4 port. But when I try to create a new task in NI-MAX using the device, I cant find it.
Can anyone please help me in finding a solution so that I can use LabVIEW to read out data from this pyrometer? Any kind of help will be much appreciated.
Thanks in advance,
Reuben
07-31-2013 03:05 AM
Hi Reuben,
you use VISA to communicate over RS232 serial port with 3rd party devices. There's the "Basic serial read/write" example coming with LabVIEW.
And btw: you need the manual for that device as it explains the commands and responses of the device!
07-31-2013 03:27 AM
Hi GerdW,
First off, thanks for your reply
I have tried using the Basic Read/Write.vi. I wrote the commands from the hardware's manual, but it doesnt return anything. Instead it comes out with an error message
Error - 1073807339 occured at VISA Read in *.vi
Possible reason(s):
VISA: (Hex 0xBFFF0015). Timeout expired before operation completed.
Could you also please explain further about using VISA to communicate with my device?
Thank you in advance
Greetings,
Reuben
07-31-2013 03:49 AM
Hi reuben,
Have you tried with some Hyperterminal before trying with Labview ?
07-31-2013 04:03 AM
07-31-2013 05:53 AM
Hi maveend,
I have to use LabVIEW and no other software. Thanks, though.
------------------------------------------------------------------------------------------------------
Hi GerdW,
Yeah, I have followed every instruction regarding the commands. Example of a command:
AAms<CR>
where:
AA is the device address;
ms is the command;
<CR> is the end line.
But still, it returns the error message
07-31-2013 05:58 AM
Hi reuben,
when advised to try Hyperterminal you should really give it a try. Usually serial communication is tested with Hyperterminal (or any other terminal software) before proting to LabVIEW...
For your CR: I hope you send just one byte for CR (0x0D) and not four ("<CR>")!?
07-31-2013 06:43 AM
You need to show us your code that you have tried to run, so that we can help you.
Hyperterminal is a good program to do a connection check for RS232. You can use that to make sure you have connection to your device.
08-01-2013 03:42 AM
Hi,
LabVIEW Hyperterminal is most useful as a way to troubleshoot your device, and once you have communication working you can use the same parameters to write your own LabVIEW program.
Hyper Terminal RS 232 this works like Windows hyperterminal utility.
08-05-2013 04:39 AM
Hi everyone,
Thanks for the reply.
I haven't tried writing any code yet since LabVIEW is unable to communicate with my device. Currently, I am trying to figure out how this Hyper Terminal software works.
Greetings,
Reuben