
ann
-
Posts
6 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Downloads
Gallery
Posts posted by ann
-
-
Hey Neviile, i did try what u suggetsed and the funny thing is the valves change postion twice (i.e 2 cycles) and then the alarm goes off and i did try Karlos's idea too, but i gss i incorporated it in the wrong way and it din work, anyways gss I will have to ask someone to see my code with the device attached and debug it. Thanks guys for ur thoughts.
-
Thanx, Phil, Neville and Karlos for your prompt replies.I really appreciate u guys taking time off to go thru my extensively looong code:).Phil, the whole day i tried (with my limited knowledge) to make sure i closed all teh VISA ports and well i wasn sucessful.Neville and Karlos, I will try ur solutions tom and get back to u.the option Neville gave sounds pretty cool, hope it works.
-
HI Phil, I tried incorporating this in the larger part of the code that i had developed adn same problem, works when highlighted,I have attached my code.
there are 5 valves have 8 outlets and the dials r used to indicate which postion teh valve is currently in.
Download File:post-5239-1150940400.zip
Download File:post-5239-1150940423.zip
Download File:post-5239-1150940436.zip
-
Hey Phil, thanx a ton, it did work,i tried using the delay loop before but i gss my main problem was closing the VI.I really appreciate you replying back.Thanx again
-
Hey I have been working on a interface to make some valves work.I have hooked up the hardware to the RS485,and com4 port of the com and I have created a code to make the valves work , however when i try checking if the valves r in the right postion (a part of the main code), it dosen work.
its like this (i am explaining ti a bit since i gss u need to know abt how the hardware works inorder to help me).
to send a valve to a postion: the code to send to teh device is
/L GO 5 (i.e u r sending valve with id L to position 5)
similarly to obatin the current positon of the valeve u have to send to the device
/L CP (i.e what is the current position of valve with id L). the output of this is
L Position = 5.
(I have attached the code that i have written to check the valve postion, bt somehow when i run the program it dosen work, however when i highlight in the block diagram page to see the program flow, then the program works)
can anyone suggest why is it so, and has anyone come across a problem where the program as such dosen work, but when u highlight it it works, and since it works when highlighted i can't even detect where the problem is, to debug it.
1073676294 Error
in Hardware
Posted
Download File:post-5239-1155231947.viDownload File:post-5239-1155231964.viI have built a small code to communicate with an external device (smartline pumps) and i have attached the code below, when i run the program it works fine and gives the right output , i.e the data read form the instrument is correct, however when i highlight and run the program i realise that at the "VISA read" port i get this error:
Warning:1073676294 occured at VISA read
Possible reasons: VISA:(Hex 0xFFF0006). The number of bytes transfered is equal to the requested input count.More data might be available.
when i incorporate this code in a larger program, it fails to run, so I was wondering if anyone can give me an insight as to how to solve this problem.
example of the program is:
write data : SN
read data : SERIAL = 87075