03-10-2008 12:21 AM
03-10-2008 08:54 AM
You could be specifying the wrong com settings, send the wrong command, or not terminating the command incorrectly (i.e. not appending a LF or CR). The use of two different com ports is also very strange. There is no reason to use one com port for sending data and another to receive.
You might want to first try using a terminal emulator program such as Hyperterminal to see if that works. You can also do a serch for a program called portmon. This program will allow you to monitor the actual communication that the vendor's program is doing. You say that the vendor's program works with Com1. does that mean you don't have Com2 connected? In any case, portmon should tell you whether you need both com ports.
If you have an electronic copy of the manual (or a link to one), can you attach that so that someone can see what it says?
03-10-2008 01:19 PM
46 0.00094062 winLin.exe IOCTL_SERIAL_WAIT_ON_MASK Serial6 SUCCESS
47 0.00000391 winLin.exe IOCTL_SERIAL_GET_COMMSTATUS Serial6 SUCCESS
48 0.00000251 winLin.exe IOCTL_SERIAL_GET_PROPERTIES Serial6 SUCCESS
49 0.00041989 winLin.exe IRP_MJ_WRITE Serial6 SUCCESS Length 6: 02 50 30 31 49 0D
50 0.00000363 winLin.exe IOCTL_SERIAL_GET_COMMSTATUS Serial6 SUCCESS
So, what's the nest step about using labview to control my device? There's one little question about the Write-VISA.vi. What should I put in the writting string, like <STX>P01S+0500.0G<CR> or just using the Hex above "02 50 30 31 49 0D" ?
Thanks a lot and appreciates your responce very much!!!
azy
following is the electronic copy of the pump-manual!
http://www.coleparmer.com/catalog/manual_pdfs/07523-60,-70.pdf
03-10-2008 02:02 PM
03-11-2008 12:52 PM
09-26-2008 05:26 PM
Hi,
I tried to communicate with the masterflex L/S but unable to do it.
Would you send me a sample vi.
Thanks.
SL
10-23-2008 10:58 AM
04-06-2009 03:27 PM
Could you help everyone here and post your VI? We've been having problems with this as well.
Thanks so much!
10-14-2011 09:39 AM
Previous discussion was very useful.
Here is a complete program for a single channel pump.
It could be useful for new comers