09-05-2013 09:42 AM
that is good one bilko
09-05-2013 09:44 AM
I have a particular power supply in mind... it even specifies a "typical" time to wait for the power supply to process the last command - sheesh! 😉
09-05-2013 09:46 AM
Looks like you found some device to do R&D with...Great.
09-06-2013 01:01 AM
the function which jcarmody posted was that thing I want, it converts my string to number and I can use that as a numeric variable.. like connecting to Thermometer or chart.. thank you 🙂
to that friend who told I didn't use any delay in while loop: I send the data from microcontroller every second I mean I set my delay in my main code in microcontroller.. is that ok ? 🙂
another question : would you explain how to set the count byte input of read function ? I set that on 4 .. but when the temp. goes above of 100 degree (5 character)
it shows it wrong... any idea ? 🙂
09-06-2013 01:13 AM
09-06-2013 06:35 AM
@Dennis_Knutson wrote:
Use some high arbitrary number for a byte count. Your program says to use a termination character (a LF) for the Read. This is set with the VISA Configure Serial Port and means the read will automatically terminate when the character is detected.
Also note that you need your microcontroller to send this termination character in order to have the VISA Read terminate on it. As already stated, a Line Feed (0xA) is the default for VISA. Since you are apparently dealing with ASCII characters, that would be a good option.
09-06-2013 11:41 AM
@crossrulz wrote:
@Dennis_Knutson wrote:
Use some high arbitrary number for a byte count. Your program says to use a termination character (a LF) for the Read. This is set with the VISA Configure Serial Port and means the read will automatically terminate when the character is detected.Also note that you need your microcontroller to send this termination character in order to have the VISA Read terminate on it. As already stated, a Line Feed (0xA) is the default for VISA. Since you are apparently dealing with ASCII characters, that would be a good option.
thank you Dennis_Knutson and crossrulz..
would you explain a little more ? you mean I shoud send (0x0A) code after the main data ??
09-06-2013 11:48 AM
09-06-2013 12:59 PM
@Dennis_Knutson wrote:
Yes. Program your micro to append the LF at the end. You can use other values but your LabVIEW code is currently programmed to expect that. If its not programmed to send a termination character, I would have expected your program to generate a warning.
I've just select the blocks and put them together and wired them.. I didn't know it would need that. what makes my labview code to expect that ??
09-06-2013 01:12 PM
I applied the 0x0a ascii code after main data .. but It didnt responsed in labview .. the data was swing up and down..
this is my code :
and I set the byte count to 10.. the result is like this : 23.123.223 , 24.123.223 ... << 10 characters .. :-???