Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I use two strings to write code to instrument at the same time

I m trying to control instrument by using serial but I would like to quit and zeroing the instrument each step so how can I read and write the instrument and how can I restart and rest and quit the instrument continuously?

Thank you very much for discussion

0 Kudos
Message 1 of 6
(3,545 Views)

1. read the instrument manual

2. After understanding what you CAN do with the instrument, find out what strings/commands you need to send to perform the task you want.

3. Connect the instrument to the computer

4. test the comunication

5. write a software (here in LabVIEW 😉 ) to send the commands and read the answers (hint: state maschines are a good way to start with it, but start with examples provided and search the instrument driver section of this site, maybe you find a ready made driver)

 

Do you really need to restart the instrument?  It's wise to start with a instrument reset/restart at the beginning of your task, but usually is not needed during a task and sometimes even stresses the instrument more than needed.

 

If this answer seems to general and don't hold specific enough information ... sorry my crystal ball is in recalibration and I used all information you provided 😉

 

 

Spoiler

 

 

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


Message 2 of 6
(3,538 Views)

I would have gone with Johnny...  at least he knew the answers before he started, and all he had to guess were the questions. That would certainly make this forum more interesting...

 

Spoiler

 

Message 3 of 6
(3,534 Views)

Thank you for your prompt response , my main question is how to send or write multiple more than two commands to the instrument in sequence

0 Kudos
Message 4 of 6
(3,528 Views)
0 Kudos
Message 5 of 6
(3,521 Views)

Sometimes you need to put a slight delay between the commands, but that should be noted in the manual.

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 6 of 6
(3,513 Views)