LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial Communication, No Output

I recently created a VI with the intention of communicating serially with a rubidium standard 8040c to receive health heuristics. I borrowed the VI structure from a tutorial, and I've installed NI-Visa and NI-488, but I'm still not receiving an output. Thoughts? 

(By the way, I'm new to Labview, so I don't know a great deal of the terminology.)

Thanks!

 

Inline image 1

0 Kudos
Message 1 of 10
(3,870 Views)

Are you getting an error message?  If so, what is it?

Cable, communications settings, termination character?

 

It is near impossible to help you without any details, or a VI we can look at.

 

Since this is your first post, I recommend reading

0 Kudos
Message 2 of 10
(3,853 Views)

There's no error message. Nothing happens at all!

0 Kudos
Message 3 of 10
(3,850 Views)

Also, I pasted an image of the VI into my original message, but perhaps you can't see it. I'll attach it again here. 

 

VI.png

0 Kudos
Message 4 of 10
(3,848 Views)

No.  There is no image in the original post.  It just says "Inline Image" in words below the message body.  I'm not sure what you did there.  The latest message does have an image.

 

The first problem I see is that you used "Bytes at Port' which is the wrong thing to use about 99% of the time.  You write a command, have no delay, check the bytes at port which will probably be 0 because you didn't give the device time to respond, then proceed to read 0 bytes.

 

However, I'd expect that eventually you'll get data back to read.  So I'm thinking you aren't sending the correct command.  Have you read the communications manual for the device?  You are just sending a "w".  Or as much as I can see.  The problem with a screenshot is that you don't see the things you can't see.  An actual VI would allow us to inspect what is in that string control.  My thought is that you are just sending a "w", but the device is expecting that command to be terminated with a character such as a line feed or carriage return.

0 Kudos
Message 5 of 10
(3,840 Views)

The manual indicates that "w" is the only command that should be sent to receive health data. 

(file:///C:/Users/eab/Downloads/8040C[1]%20(1).pdf)

 

Is there additional language that I would need to attach apart from the intended command? 

0 Kudos
Message 6 of 10
(3,832 Views)

That link points to a file on your hard drive.  I can't see it.

 

Post a link to where it is on the internet.

0 Kudos
Message 7 of 10
(3,821 Views)

If your 8040c is manufactured by Symmetricon then NI has a driver on their website located here.

 

It has some peculiar settings. The termination character is ">", and the command for Display Health Data is a single letter, lower case "w" without a \r.

 

Capture1.PNG

Capture2.PNG

0 Kudos
Message 8 of 10
(3,767 Views)

A colleague of mine just got the information we need using PuTTY, so this problem isn't germane anymore. Thanks for the help all the same!

0 Kudos
Message 9 of 10
(3,737 Views)

@rubidiumdum wrote:

A colleague of mine just got the information we need using PuTTY, so this problem isn't germane anymore. Thanks for the help all the same!


And how will you deal with the received data using PuTTY? Did not you want to use LabVIEW to display, analyse, and even to log your data in real time? PuTTY can be useful, so you can test which serial setting work fine, and PuTTY can even log the data.

But the whole thing would be just more straightforward using LabVIEW (unless, if all you want is to log the incoming data to a file, and play with it for example in Excel offline...)

0 Kudos
Message 10 of 10
(3,732 Views)