LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error with data sent with VISA communication

Solved!
Go to solution

But the VI you posted TI_New.vi is using 0xA not 0xD

Omar
0 Kudos
Message 31 of 46
(1,024 Views)
Can you confirm that you are still getting an error on the write. Until Omar_Ii pointed this out, I hadn't noticed this. The termination character is irrelevant for a write and that error.
0 Kudos
Message 32 of 46
(1,012 Views)

Here is what I came up with from combining both of your threads.  The first major thing, you need to allow a timeout.  I recommend just leaving the default (10 seconds).  Secondly, you need to disable the termination character since you are dealing with binary data.  Third, you need to close your serial port when you are done with it.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 33 of 46
(1,008 Views)

I am replacing the termination character 'D' instead of 'A' in VISA Configure SErial Port.vi.

 

0 Kudos
Message 34 of 46
(1,005 Views)

Hi crossrulz,

I jsut tried the one you posted(updated).Even if I use this the "Data" is getting updated after around 20 seconds.

Can you help me out in geting and plotting the number of samples in 1 second.

0 Kudos
Message 35 of 46
(1,002 Views)

@PatanGova wrote:

Hi crossrulz,

I jsut tried the one you posted(updated).Even if I use this the "Data" is getting updated after around 20 seconds.

Can you help me out in geting and plotting the number of samples in 1 second.


How sure are you that you are only recieving data every 20 seconds vs getting the data and the data just hasn't changed?  You might also want to put an indicator on the iteration counter (the i in the loop) to see how often the loop is iterating.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 36 of 46
(996 Views)

I added some timeing functions to crossrulz.

 

Tell us the results for Reply Time and Max Reply Time

Plus are there any Errors and does the read buffer string look like what you expect?

Omar
0 Kudos
Message 37 of 46
(994 Views)

Can you please provide me a Labview2011 version vi.

0 Kudos
Message 38 of 46
(990 Views)

2011

Omar
0 Kudos
Message 39 of 46
(978 Views)

Hi Omar,

I observed these with the vi you posted

Replytime  MaxReplytime LoopCount

4006              4006                    1

4018              4022                    2

4011              4022                   3

4016              4022                   4

4050              4050                   5

4144              4144                   6

And the Readbuffer values are being updated(changing) after 30seconds(around).

0 Kudos
Message 40 of 46
(974 Views)