Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Commands in Serial Communication

hi,

 

I have use some commands to read data from the hardware(sensor)

 

if i use the commands in hyperterminal it is working if i used in labview it returns empty data.

 

Why it happens?Is NI not able to read characters..how to solve this problem

0 Kudos
Message 1 of 15
(5,074 Views)

I was suspecting of the ASCII because in hyperterminal we able to set the echo and time to reterieve data. How to set echo in labview?

 

Plz help, Thank u

0 Kudos
Message 2 of 15
(5,073 Views)

It's a common first time(r) problem.

In general: What runs in hyperterminal can also run in LabVIEW... 

Hyperterminal will add END OF LINE codes like CR LF automatically 

 

In LabVIEW you will need to add them.... 

Search the forum for the keyword hyperterminal.... 

 

 

 

 

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 ǝɥʇ'


Message 3 of 15
(5,055 Views)
Can u give me the link plz because wen i search "keyword hyperterminal" i found empty result...plz help
0 Kudos
Message 4 of 15
(5,000 Views)
i already try with the \r\n replacing the CR in the hyperterminal.. it giving me empty reply without no error.. but hyperterminal its ok.. wat are the posibility of this problem?..need help plz.
0 Kudos
Message 5 of 15
(4,997 Views)
Could you explain exactly how you are trying to send the commands? Are you using one of the examples or is this code you wrote? If it's your code, why don't you attach it so someone can look at it.
0 Kudos
Message 6 of 15
(4,992 Views)
i use carriage return constant and able to get reply using labview serial communication...but let say i use this command ?RR<CR> it reply empty string..it reply in hyperterminal but labview i cant get.. why?...confius... i use 9600,N,8   COM 1 setting ..plzz help
0 Kudos
Message 7 of 15
(4,987 Views)
i have attach a pic with tis
0 Kudos
Message 8 of 15
(4,986 Views)

I don't understand. You say you are able to get a reply and then you say you aren't able to get a reply.

 

Have you tried using a CR and a LF. And what version of LabVIEW are you using?Those serial functions are really, really old and have not been supported for several years.

 

p.s Attaching a partial image is NOT the same thing as attaching the actual code. 

0 Kudos
Message 9 of 15
(4,966 Views)

Yup i have  use the cariage return  in the string palete .. is not responding... with the whole command...like ?RR<CR>

Im using labview 8.0

 

Actually i get this from my senior which already left the company and i have been told this is working perfectly .. but now im not sure ... if i send CR it reply *** which is correct b'cos hyperterminal also giving me the same...but let say i  type ?RR<CR> it doesnt reply anythg ... but with hyperterminal it replies"@@@"...

 

The labview development file i cant attached cos too big too send through

0 Kudos
Message 10 of 15
(4,963 Views)