Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial Communication by VISA: what' s wrong ?

OK,

I'll do it.

Here you can find the two Gmpony's VIs for both 7.1 and 8.0 LabVIEW versions.

Hope that helps.

Best Regards

 

FiloP
It doesn't matter how beautiful your theory is, it doesn't matter how smart you are. If it doesn't agree with experiment, it's wrong.
Richard P. Feynman
Download All
0 Kudos
Message 21 of 34
(1,944 Views)

hi Giammarco,

i have the same problem with a thermal balance DTG-60 from Shimadzu Corporation..tomorrow i will prove your VIs. Anyway i would to know  if parametres like Xonlimit, xoff limit,and replace are so important to drive my comunication with LabVIEW.....!!!!!!  because i've sniffed with port monitor the logs from original program and logs with labVIEW....I can't receive nothing with LabVIEW maybe cause those parametres are different....???  In your opinion, could be another thing the source of my problem??? I have to drive that instrument with LabVIEW..Could you help me please??

Regards

0 Kudos
Message 22 of 34
(1,670 Views)

Hi

 

Those parameters are of interest for the balance only. If you say to LabVIEW (no flowcontrol) it is perfectly happy. But your balance is different.

All variables should be filled in correctly.

 

But logging with portmon, form the start of the other program to the first communication should tell you all you need to know.

The first problem is already OK you probably have the correct cable if the other program is working.

Next it would be nice to see if LabVIEW can talk and the balance shows any sign of seeing that.

(maybe endcharacters are wrong.

After that check the reply mechanism.

 

good luck

greetings from the Netherlands
0 Kudos
Message 23 of 34
(1,665 Views)

Hi

 

LabVIEW, with an oscilloscope, allow me to send and receive information to instrument(oscilloscope), then i'm sure the problem is the balance. However, you said to set all variables lile those variables that i see on logs when i use the original program?? if yes, what could i make that?? in LaBVIEW is impossible set parametres like xon limit, xofflimit, ecc.. maybe i  should do it with another language??

Thanks

0 Kudos
Message 24 of 34
(1,662 Views)

Hi

 

I'm sending you the logs that i sniffed by the original program and other with program in LV. I'm sending you the VI that i used too. Thanks again for your collaboration.

Download All
0 Kudos
Message 25 of 34
(1,645 Views)

As Albert said, ignore those.

 

Why don't you post the code you've written and attach the programming manual for the balance.

0 Kudos
Message 26 of 34
(1,644 Views)
I have to command the balance by LabVIEW program, then how should i programming the balance by LabVIEW??? in which way should i set those parametres if they are the true problems...??? i'm not sure that they are the biggest problems...
0 Kudos
Message 27 of 34
(1,641 Views)
There is no such thing as xonlimit, xofflimit, etc. settable with VISA and I very much doubt that is your problem. Since you did not attach the manual and I can't open the proprietary xlsx file format, I don't have any more advice at this time except to try and use Hyperterminal to debug the connection.
0 Kudos
Message 28 of 34
(1,632 Views)

Hi

Xon/off limit is a software limit on how much dat still can be sent when  Xoff is sent.

simply ignore that. I simply believe that we only can conclude that the balance is using Xon/Xoff as protocol and LabVIEW (VISA) can do that too.

 

You said I can communicate with the scope, so why not with the balance. You are correct. You can blame the balance. Its software is more complicated than is needed.

 

greetings from the Netherlands
0 Kudos
Message 29 of 34
(1,628 Views)

Hi

 

i have to resolve this problem because i'm an engennering student and this is my work to finish.

 

From original logs you can see that the istruction  .SS.  has like answer  DTG-60,  . But i don't understand why when i send  .SS.  with LV the balance don't answer me anything!!

 

Another question: in logs with sniffing using LV you can see that when i send  .SS.  tha balance tries to answer me, cause from sniffing we can see  read  lenght:0    ;  but i'm confused....it's the balance that tries to answer me but it can't send me nothing, or the balance can't read the query i've send????

 

Thanks so much, i need to resolve this problem as soon as.... Smiley Sad

0 Kudos
Message 30 of 34
(1,623 Views)