LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

rs232-string-waveform graph

Hello,
 
I would like to display some data with the waveform graph which I read from my RS232 interface.
 
But I didnt't how to realize that?
 
Can anybody help me, please?
 
Thanks a lot!
 
Binoldino
0 Kudos
Message 1 of 11
(5,551 Views)

Do you have the basic communication with the device working? If so, you would  have to convert the string returned by the VISA Read to a numeric. Then if you want to display the data as it's acquired, a chart would be a better option. Without knowing the details of the instrument and the format of it's data, it's hard to provide details. There are several functions on the string palette for converting strings to numerics. Format into String is just one of them.

If you need some help in converting the data, post your VI with some typical data saved with it. Have a string indicator wired to the VISA Read, Run the VI. Go to the Edit menu and select Make Current Values Default. Save the VI. Attach it to your post.

Message 2 of 11
(5,544 Views)

Thanks for your help and quick response.

The basic communication with my device is already working.  I only want to read the data, without writing.

Unfortunately I'm not so well known with LabVIEW in the moment, so it would be very nice from you if you can help me a little bit.

Here is my VI

 

0 Kudos
Message 3 of 11
(5,535 Views)
I can't help unless you do what I said about saving some default data. There's just a blank string indicator.Smiley Sad
0 Kudos
Message 4 of 11
(5,530 Views)

I know what you mean, what I should do, but it doesn't work Smiley Sad!

If I try it with a string indicator I always get a error that my given session or object reference is invalid (error - 1073807346)!!!

My string looks like:

+4 <CR><LF>

-3 <CR><LF>

....

 

But I guess that is to less for you, right?

 

 

0 Kudos
Message 5 of 11
(5,520 Views)

I don't understand what you could have done. You already had a string indicator for the VISA Read. It's the one called 'String Read'. All you had to do was run the VI so that there was data in this indicator, make current values default, and then save it.

In any case, try the attached modification.You should also try to take some LabVIEW training. A place to start is http://www.ni.com/academic/lv_training/how_learn_lv.htm.

Message 6 of 11
(5,512 Views)
Hello,
 
so I'm try it now again and I hope that is what you expecting from me?
 
And you are right I need some training with LabVIEW Smiley Happy!!
 
Many Thanks!
Download All
0 Kudos
Message 7 of 11
(5,499 Views)
I guess the attachment I mentioned didn't really get attached. Here it is. I just used a Scan From String and wired the output to a chart.
Message 8 of 11
(5,492 Views)
Sorry for my late reply. Thanks that is that want I want to have, very good!
 
Many Thanks!
0 Kudos
Message 9 of 11
(5,474 Views)

dear friend,i am working on a project where i have a gwinstek GDM-396 multimeter to be conneted to an RS 232 port.
watever voltage is recorded from the multimeter should be trasmitted on a waveform chart in labview. i have written a labview program but i am always getting a 0 output.i have already set the parameters(parity,baud rate...) of the multimeter in the labview also. i am quite new to labview. help me please to get that output voltage in labview.
please find attached my program.i am using labview 7.0.
thanks

0 Kudos
Message 10 of 11
(4,511 Views)