11-15-2012 03:21 AM - edited 11-15-2012 03:23 AM
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.....
11-15-2012 03:41 AM
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
11-15-2012 09:34 AM
i open the probe while its running.....still dont know why
11-15-2012 12:58 PM
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.
11-16-2012 05:48 AM
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....
11-16-2012 06:03 AM
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.
12-01-2012 05:51 AM
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
12-01-2012 05:41 PM - edited 12-01-2012 05:41 PM
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?
12-13-2012 12:40 AM - edited 12-13-2012 12:41 AM
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
12-13-2012 12:54 AM
Why are you posting the exact same thing as almost two weeks ago? And did you try my suggestion?