LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I need to read an unsolicited serial variable string.

Solved!
Go to solution


Hello sir

 

I need to read a serial data means, in FRA 1250 (Solartron) when we are sweeping, the o/p is a serial data.Through RS432 it is getting(hyper terminal) but through GPIB I cannot  get this data. I used Visa read. The error is Timed out.

 

if it is GPIB the hyper terminal is not working. I can control all the settings of FRA through PC and it will sweep.

 

Is it necessary a Scan from string palette after VISA read   or direct can we take the results. 

 

automation of FRA is 75% over just 25% is pending that is, this issue to be solved sweep data to be  read and stored in a text file or plott the graph.

 

one more question is how to get a graph of three axis. Means in FRA we had three o/ps -"Frequency, dB , Phase". 

3D graphs are there but  i need in 2D? how to change a waveform graph of 2 axis into 3 axis?

 

Please Help me.  

 

 

"Thanks with regards "
by
..........Gireesh..........
0 Kudos
Message 1 of 6
(3,276 Views)

I'm sorry but I don't understand what you are asking for. You say that you can read the data with a serial connection but not with GPIB? If you have the serial connection working, why do you need GPIB?

 

The stuff about 75% and 25% means nothing to me. Please try to explain better.

 

A graph/chart can have multiple plots. You can go to the block diagram and move the mouse over the indicator. The context help shows you how to combine data for a multiple plot. There are also examples to look at (Help>Find Examples).

 

Posting your code would also help. 

0 Kudos
Message 2 of 6
(3,271 Views)

It is probably best to continue the discussion in this thread: http://forums.ni.com/ni/board/message?board.id=170&thread.id=82914

An example was already provided in that thread.

0 Kudos
Message 3 of 6
(3,252 Views)

hai

 

I am using GPIB interface, In our FRA serial port is not working that is why we are using GPIB. Today afternoon I solve this problem.  I tried with 2000mS, 10000mS & even 20000mS. But the timeout error is still showing. For solving that I used "clear error message" palette. one more problem is there, that is I use "scan from string". Format is " %f,%f,%f ". first %f is for extracting frequency 2nd one is for magnitude and the 3rd one is for phase.First time it is worked but after completing the programming continuously I want to sweep from 0.1Hz to 1KHz. If 1KHz sweep is completed the loop will stop. In between when the data scaning happens one more error showing that the GPIB controller error. How it happens that I don't know? After Two or three run it will be OK. Correct data it is showing. That issue also to be solved.

Evening I saw the solution what you are directed both are same. Thank you for response and the idea. And also I can save the sweep data as "text" or "doc" or "xls" or "html" etc. I used " file open palette" and " write to file palette". i saw one question about saving the data this is for them only. 

 

Now I need to plot the graph from the FRA data output. It is 3 axis(x,y,z) plotting only. I need one secondary axis also. I cannot find the 3 axis graph plotting palette and 2 axis(x,y). Or give an idea to make a plotter graph of 3axis?

 

Once again thank you for everyone for responding my requests and taking responsibility for solving the issues. 

"Thanks with regards "
by
..........Gireesh..........
0 Kudos
Message 4 of 6
(3,223 Views)

You can find the 3D graphs in the Control Palette (Front Panel) as shown in the image below:

 

 

Message Edited by Ray.R on 03-03-2010 12:54 PM
0 Kudos
Message 5 of 6
(3,213 Views)
Solution
Accepted by topic author gireesh

Thank you RAY.R for responding

 

Actually I need 3 axis graph not 3D graph. 3 axis means freq in the Xaxis and the gain or magnitude in the Y

 

axis and the Phase in the secondary axis(Y1 axis). I got the idea from the ni website itself. I can explain

 

Choose the waveform graph. It had 2 axis (x,y) time in the x axis and the amplitude in the y axis. You

 

just place the cursor on the axis and give a right click then make a duplicate. It will create one more amplitude axis

 

just behind the actual oneas amplitude2. once again give arightclick on the amplitude and swap it. The amplitude

 

(actual one) will go to the right of the graph as secondary Y axis. Simple!!!!!!!

 

 

Coming to the main point, for getting the data from FRA we already used a READ from instrument palette its o/p is a

 

string. This will got to the scan from a string palette. In this palette format string is there. in that we will write a

 

command of " %f,%f,%f "for getting the freq,magnitude and phase respectively. This o/p is DBL type. This will indicate

 

or shows the o/p values. these outputs  connected to a build array palette. this array output is directly connected to

 

the waveform graph which we are made as 3 axis graph. the graph axis are to be renamed as x-freq ;Y(left)-

 

magnitude and the secondary axis(right) - Phase. All axis are auto range mode. Our online plotter is ready!!!!!!!!!!

 

 

If we give a sweep,the plotter will automatically plot.DEFENITLY IT WILL PLOT!!!

 

 

Tomarrow I can give a visual of this.

 

 

Thanks to everyone for coming to this discussion.......  

"Thanks with regards "
by
..........Gireesh..........
0 Kudos
Message 6 of 6
(3,194 Views)