LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

serial communication in labview

hi there i am trying to use serial port init to send data through externally and plot on the graph this is what i have done till now but in vain could you please help me pls..... thank you in advance
 
0 Kudos
Message 1 of 15
(3,955 Views)

I suggest you to use VISA instead of the serial functions. You can try using the Instrument Assistant or search for examples which are close to your needs.

 

hope this helps,

Norbert 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 15
(3,950 Views)

Hi

       your problem got solved?

Regards
RobinHood
0 Kudos
Message 3 of 15
(3,942 Views)
no vipull.....i have also used VISA serial port but when i send data externally its not getting plotted on my graph..... iam attaching my VI pls do check it thank you
0 Kudos
Message 4 of 15
(3,934 Views)

Nice to see you after a long time

 

Regards
RobinHood
0 Kudos
Message 5 of 15
(3,930 Views)

I took a look at the VI, but I am a little unsure what you're sending data too. I am also unsure why your trying to read something that you've just written to the serial port. 

 

Also, does the device you're reading/writing to work this way?

 

The code your using looks as if it might work, maybe you could provide some more information of what you're trying to achieve?  

0 Kudos
Message 6 of 15
(3,892 Views)

what i am trying to do is i am sendig data from a pcb board and i want plot that data on a graph using serial communication hope i am clear this time that means

when you connect usb to your CPU i am sending data to a COM PORT using serial port and serial port reads it and plots on the graph.....

0 Kudos
Message 7 of 15
(3,883 Views)
and also pls take a look at another VI i have attached (GUI 1 (req) serial init)
0 Kudos
Message 8 of 15
(3,882 Views)
You are worried about graphing and you have not even said that the VISA Read is returning any data to graph. If you are not getting anything read, then you have fix that problem first. If there is data, then you need to explain the format that is being returned.
0 Kudos
Message 9 of 15
(3,854 Views)
hi the actual thing is when the data is being sent from the com port then write string sends signal to the serial read and the serial read reads the data and the data is concatenated and converted into number and then to array and that is plotted on the graph hope i am clear this time.
0 Kudos
Message 10 of 15
(3,825 Views)