mode which means write GPIB

Hi all

I have a question when I want to use the write GPIB function. I'm not clear on what these modes meaning as EOI, CR or LF in help.

0 Send EOI with the last character of the string.
1 Add CR to the chain and send EOI with CR.
2 Add LF to the chain and send the statement of INTEREST by the Federal ACT.
3 Add CR LF to the chain and send the statement of INTEREST by the Federal ACT.
4 Add CR to the string, but do not send statement of INTEREST.
5 Add LF to the string, but do not send statement of INTEREST.
6 Add CR LF to the string, but do not send statement of INTEREST.
7 Do not send statement of INTEREST.

In fact, I want to increase the supply voltage of 5V every 5 s. I wrote a program in the attached files. Pls help me to see if it makes sense.

Thank you.

The mode has to do with how a GPIB writing is complete. The standard for quite a few years was to assert the EOI line (end or identify) the management, when the last data byte has been sent. The other modes are there to support the old instruments before the adoption of the current standard. Some of them required a CR (carriage return), LF (line feed), both, etc. Your instrument manual should explain what, if no extra termination is necessary. This standard was adopted in 1987, so more than your instrument to the older you is I think if you need these special modes.

Your VI should work fine with the addition of the waiting and the wiring to the Terminal the loop N but is not the most elegant. First, instead of primitives GPIB, you must use the VISA. Instead of wiring the Terminal iteration, you can use a shift register and an add with a mark-up function. You can use a while loop and stop when it reaches a final value. Instead of the string of concantanate function, I prefer to use the Format function in the string.

If you keep this code, get rid of the second control GPIB address string. Thetimeout function of GPIB writing is not related to a trigger, and you can leave unwired and just use the default value.

Tags: NI Software

Similar Questions

Maybe you are looking for