LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

waveform graph problem

hi i am not getting anything with my waveform Graph after i stopped. supposedly i get the data while i was reading something during that peroid. I attached an image of my VI........what's wrong with the connection? when i open the probe it said that no value executed.....

Download All
0 Kudos
Message 1 of 14
(3,424 Views)

Are you checking the probe after stopping the vi or while the vi is running? I guess you are making the porbe after stopping the probe. You can do one thing enable Retain wire values (right side to the highlight-bulb execution) and run the vi and check it. You should atleast get 0 in an array

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 14
(3,413 Views)

i open the probe while its running.....still dont know why

0 Kudos
Message 3 of 14
(3,393 Views)

Not sure why your waveform sees nothing but your probe wire is on the array made by the loop so it will not execute until the loop is over.

I'll assume by your code the device puts out data without being queried. IF no data is available to read LabVIEW will wait 10 secs before timing out. This can be a problem for loops that are displaying data to the user as the loop will be unresponsive during this timeout.

 

In a case like this you cannot rely on the terminator character to give you a signal that the data packet is complete because the device is sending data out all the time.

 

Try to disable the term char first and then watch your indicator or even create an array of responses so that you can get at ALL the core data that LabVIEW is getting from the receive buffer from your device.

 

I would also increase the size of the buffer or leave it alone and let Windows handle it..

 

A lot of RS-232 devices act uniquely and some of them do not always follow a strict protocol. You need to see the characters coming

into your buffer to have a chance at designing a reliable interface to your device.

 

Hope it helps.

 

 

0 Kudos
Message 4 of 14
(3,374 Views)

thanks guys. i solved the problem. it turned out that i push the stop button the one on the top toolbar not the stop button on my front panel. the graph only shows reading when i push the stop button on the front panel.

 

one more question.....how do i make a line that act as a threshold value on the waveform chart?......like once a value exceed the line it give warning....Smiley Mad

0 Kudos
Message 5 of 14
(3,360 Views)

You can just add a constant value along with the other data and while updating the chart you can compare it with that constant value.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 6 of 14
(3,357 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 7 of 14
(3,305 Views)

There is an output from the VISA Read called "return count". Wire an indicator to that to see how many characters you actually read back. If it's not zero, probe the string output and see if it's indeed a string representation of a numeric.

 

And a "1" is a valid command to the multimeter?

0 Kudos
Message 8 of 14
(3,288 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 9 of 14
(3,238 Views)

Why are you posting the exact same thing as almost two weeks ago? And did you try my suggestion?

0 Kudos
Message 10 of 14
(3,231 Views)