08-29-2011 04:57 PM
Hi everybody
is there anyone work with Gaurdian 1000 series Hipot test ?? I need some assistanse
I have some proplems there is delay when I get data from device .
08-29-2011 06:36 PM
08-29-2011 07:37 PM
We would need to see the VI or have additional info in order to try to help you.
08-30-2011 09:34 AM
Hi
Attached is my Vi
The problem was when I run the test I get the data but for example it has gave me Device Name reading in Voltage reading field , sometime it gave me Real current reading in Voltage reading filed , testing wihle reading in real current reading filed and so on .
I could not get data in right place
thanks
08-30-2011 10:48 AM
Does it work if you step through the program. It sounds like your program might be sending commands and not waiting long enough for the Guardian to respond, then sends another command and receives the response from a previous command.
08-30-2011 11:26 AM
yea , I think this was the problem
I tried to put 2 second waiting between commands ,but still I face the same problem .
should I do some setting for device to be more quickly?
08-30-2011 12:26 PM
General comment on the code:
You should avoid using the flat sequence structure and use the error cluster and VISA reference in / out for the data flow (sequence).
HiPot tester:
Is there a command that will tell the program that the last command was complete? Or would it return a value like 0 or -1?
Otherwise, relying on a fixed delay may not be reliable. Using a large delay would unnecessarily slow down the application.
08-30-2011 12:55 PM
there is no command to tell the program that the last command complet , but I will use time , there is specific time to stop the loop .
about error cluster function , actually I do not know how can I use it inside sequance , can you show me example about it please .
08-30-2011 03:32 PM - edited 08-30-2011 03:34 PM
First step is to clean up the code. It should look something like below:
You can create a sub VI for your delay or a subvi which contains both the VISA write preceeded by a delay (better).
Get rid of all the flat sequences (as in the code snippet above).
The best approach would be a State Machine, but that advice may be a bit premature.
To learn more about LabVIEW, I suggest you try looking at some of these tutorials.
There are other tricks to cleanup / improve the block diagram, but we can get into that later.
08-30-2011 04:33 PM
thanks for helping