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 .
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
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.
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?
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).
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.
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 .
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.