07-14-2009 08:29 AM
07-14-2009 11:57 AM
07-14-2009 12:01 PM
07-14-2009 03:06 PM
the program works however there are a few bugs:
1. When the program starts the pump begins flashing "out of range" on its screen, however this does not affect the changing of the rate. it does change when i turn the dial. I thinkhowever this means that the pump is not receiving the actual signal to beign pumping at the new rate, which leads to bug 2:
2. While the rate can be set by the computer, the pump does not achieve this rate until i stop the labview script. so it does change the rate on the display however the pumping rate does not shift.
07-14-2009 04:25 PM
07-14-2009 04:28 PM
07-14-2009 04:47 PM - edited 07-14-2009 04:47 PM
07-14-2009 04:48 PM
07-14-2009 05:18 PM - edited 07-14-2009 05:19 PM
07-14-2009 07:25 PM
Could writing that command without sending a number be a way to query the current value in the instrument without changing it? Because it looks like you want to read the current value, compare it to the dial setting, and only write out a new value if it is different.
However, your VISA read makes no sense. You have a blue wire connecting the VISA write to the VISA read. The output of VISA write is # of bytes written. You feed that value into the VISA read input which means # of bytes to read. I really doubt that you want to read exactly the number of bytes you have written out. If you try to do that, you are probably either getting a timeout because the # of bytes returned are less than what you are asking for. Or getting an incomplete message because there are more bytes being returned than what you are asking for.
As Smercurio said, take a look at the syntax for what you are trying to do with that first command, and look up in the manual for what the response should be that you are looking for in the VISA read as I don't think you have that wired up properly.