09-06-2012 05:09 AM
Hello
I am trying to develop a code wherein I acquire data through Bafo(USB TO serial converter)..where my DB9 connector would be connected to field side and USB to my PC...the basic serial read/write eg.works fine with Bafo also...Now I want to give the output of serial read .vi to pid.vi as an input (to process variable) ..but the problem is the data type of read buffer is string and that of process variable is 64 bit double...so how can I connect these two?.....One more question is how can I make this system as a closed loop system by giving feedback?...all the videos on websites are of USB data acquisition and pid control ; which are easily understandable but how such closed loop system can be achieved with Bafo?...any suggestion would be highly appreciated.
Best Regards
09-06-2012 08:00 AM
What does the returned string look like? Is it ASCII or hex?
09-06-2012 11:25 AM
You also need to explain what is 'Bafo'?
09-06-2012 11:44 AM
@Dennis_Knutson wrote:
You also need to explain what is 'Bafo'?
Another cheap no-name Chinese made stuff that people buy in the name of saving money and then complain when it doesn't work for their important projects.
09-06-2012 12:00 PM
bafo is USB To serial adapter...as we all know today's laptops don't have serial port.....then what if we have to connect it to a serial port on may b other pc or microcontroller kit.....so here comes Bafo.....for more info pls refer to... .http://digital.ni.com/public.nsf/allkb/7EF12ED2863CDB608625701B0019D03D
09-06-2012 01:32 PM
Your converter is irrelevant. What really matters is what you have connected at the other end of it. It is what is at the other end that is sending back data in some format (that you have not specified) that matters. If you want a closed loop system, you need a piece of hardware that you can write to in some specific format. If this is the same piece of hardware that you are reading from, you have not specified that either.
09-07-2012 12:01 AM
ok..At the other end I have connnected a Zigbee receiver module....which receives data from zigbee transmitter at the field side....this x'mitter is connected to ARM7 microcontroller which actually controls a process..the string (indicator named Read Buffer) I am receving at Serial read.vi says to be a "normal display" when I right click and see the properties of this string ...so its an ASCII data representation from microcontroller side I suppose.
best regards
09-07-2012 01:58 AM
09-07-2012 03:53 AM
The read string is a temperature of a system and the sring is ASCII.
09-07-2012 09:08 AM
Then use either Scan From String or Fract/Exp String to Number.