LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sending and 'echo -n -e '\040' > /dev/..... to a Serial Linux device

Solved!
Go to solution

I said I DO see difference between the tera-term and labview in the sniffer on this command only.

 

I ended up breaking my string into bytes (just like you have impiled) converting each byte to ASCII and comparing to the ascii values sniffer is seing.  In process now, will report the results, but it looks like I am seing a difference, which leads me to believe VISA Write may be making changes after all.

 

 

I need to carefully examine everything first though.

0 Kudos
Message 11 of 15
(2,346 Views)

@rsmrostov wrote:

I said I DO see difference between the tera-term and labview in the sniffer on this command only.


Actually you said

"Yes, I see differences, even when the echo is off it seems like the sniffer is still seing the echoed charaters, when using teraterm, but not when sending through the VISA Write"

You are talking about echo on and echo off, which would certainly be symptom of whether the command you are sending worked or not.  You didn't say anything about differences you saw in the sniffer data..

 

So post whatever you have from the sniffer that shows what each is sending.

 

Question:  How do you have the string control or constant set for display when you have the command entered?  Your tiny snapshot of the block diagram did not show this part of the code.  I'm wondering if you have it set to show slash codes, and when you entered the command your \04 part of it is being converted to the byte 04 rather than the literal characters of backslash, zero, four.

0 Kudos
Message 12 of 15
(2,340 Views)
Solution
Accepted by topic author rsmrostov

I wrote bunch of different programms to debug and found the issue:

 

I think I have used Notepad++ or TestStand environment to type up the command - the '-' was interpreted as a dash not a hyphen, and single quotation marks were interpreted as left and right single quotation marks - linux didn't like that.  When fixing it things are now working....phew, I thought I would go insane fighting masters of deception.

0 Kudos
Message 13 of 15
(2,336 Views)

Here are the two snipes I have used to debug the issue

Download All
0 Kudos
Message 14 of 15
(2,324 Views)

@rsmrostov wrote:

I wrote bunch of different programms to debug and found the issue:

 

I think I have used Notepad++ or TestStand environment to type up the command - the '-' was interpreted as a dash not a hyphen, and single quotation marks were interpreted as left and right single quotation marks - linux didn't like that.  When fixing it things are now working....phew, I thought I would go insane fighting masters of deception.


It's awesome that you found out what was wrong.  I thought I had scanned your messages pretty thoroughly and didn't see where you said that particular command worked elsewhere.

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 15 of 15
(2,315 Views)