LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

third party hardware without driver

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

0 Kudos
Message 1 of 12
(3,798 Views)

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!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 12
(3,791 Views)

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

0 Kudos
Message 3 of 12
(3,787 Views)

Hi reuben,

Have you tried with some Hyperterminal before trying with Labview ?

 

Boldness has genius, power and magic in it!'
Message 4 of 12
(3,782 Views)

Hi reuben,

 

did you follow all advices of the manual regarding "termination chars" (or EndOfText chars or similar)? Usually you have to append a CR or NL after your command string...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 5 of 12
(3,775 Views)

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

0 Kudos
Message 6 of 12
(3,756 Views)

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>")!?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 7 of 12
(3,752 Views)

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.

Message 8 of 12
(3,744 Views)

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.

Message 9 of 12
(3,722 Views)

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

0 Kudos
Message 10 of 12
(3,698 Views)