08-09-2010 09:07 AM
Hi everyone
i have design three program base on RS232 to control a dispense unit's dispense time dispenser pressure, and its dispense programe,which use for a printer. but i do not know how to combine this three programs in one front panel, can set the time and pressure
anyone can help with this?
08-09-2010 09:15 AM
Make a program containing all the common communication code. Now use a case structure to select between the three different data constructs.
Your code is overly complicated. There is way too much unnecessary stuff (e.g. (1) Use a U8 array diagram constant instead of building U8 arrays from dozens of scalar U8s. (2) In some places you convert to a string and back to U8 array for no reason at all, (3) etc...)
08-09-2010 09:26 AM
my code is depend on the instruction book of dispense unit, i think that better use a SUBVI to combine them
08-09-2010 09:28 AM
@lilight wrote:
my code is depend on the instruction book of dispense unit, i think that better use a SUBVI to combine them
I don't know what that means. Can you explain?
08-09-2010 09:33 AM
Yes for example the command for the pressure is stx 0EPH_ _CH200P[][][][]?? ,[][][][] means the pressure,?? is the checksum. therefore if want to set the right command should calculate the cheksum. my program include these
08-09-2010 09:49 AM
can you teach me how to combine them on one front panel?