LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Visa Serial interface problem

Hi Zahran,

 

ok, my fault: because of that big image I overlooked the attachment.

 

But anyway: I guess you are able to reproduce those two simple steps! 😄

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 11 of 14
(543 Views)

Yes man for sure I tried it but not working. I also used the termination character "\n" to help but still I have the same error massage!  you can find the attached file Smiley Happy for the modified code

0 Kudos
Message 12 of 14
(540 Views)

Hi Zahran,

 

I tried it but not working.

What is "not working"?

What is the return count?

What is the received string?

Which error do you get?

 

I also used the termination character "\n" to help but still I have the same error massage!

In the attached VI you are using the LF (aka \n aka LineFeed) as TermChar as it is the default value of VISASerialPortConfig! According to your first post that should do it: your data message ends with "\r\n"…

(I hope you are talking about those control codes aka CR/LF aka hex values 0D/0A…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 13 of 14
(537 Views)

@Zahran88 wrote:

Yes man for sure I tried it but not working. I also used the termination character "\n" to help but still I have the same error massage!  you can find the attached file Smiley Happy for the modified code


I can't believe I missed the attached file on your first post.  Ugh.  My apologies!

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 14 of 14
(524 Views)