04-08-2020 02:31 AM
how to chang baund rate ?
How to write com port output
My program cannot be exported now, the problem should be the content of the program
But i don't know where the problem is
Solved! Go to Solution.
04-08-2020 02:34 AM
Hi g,
@g0910353 wrote:
how to chang baund rate ?
How to write com port output
My program cannot be exported now, the problem should be the content of the program
But i don't know where the problem is
To change the baudrate(s) you just have to edit those numeric constants at the left…
You already know how to use VISAWrite…
Why can't you "export" your program? Aren't you able to save the VI and attach it to your message?
Why is "the content of the program" a problem?
Which problem do you encounter? Why don't you know "where the problem is"?
04-08-2020 02:38 AM
I have two machines A machine is 38400 read A output
I want to change 38400 to 19200 for B to read
So it should be handled by different com ports?
04-08-2020 02:50 AM - edited 04-08-2020 02:50 AM
Hi g,
change the "38400" constant into a control.
Now you can set the correct baudrate when you run the VI on a different computer!
When you want to automate thise setting: implement a configuration file handling in your (main) VI!
Read the configuration file, parse the correct baudrate from it's content and call the shown routine with the correct baudrate setting.
LabVIEW comes with a huge library of example VIs, there should be an example on how to use configuration files…