Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

save data

Solved!
Go to solution

Dear friend,

I really need your help to explain to me briefly how the program works, i am facing difficulty for preparation of technical report about that.
If it is possible give me some hints or structure that based on that i can collect information. It seems to me one or two paragraph in summary would be enough if i explain briefly and nicely.

Thanks in advance.

0 Kudos
Message 11 of 14
(678 Views)

Explain how which program works? The LabVIEW code or the microcontroller code? You wrote the LabVIEW code, so shouldn't you know how it works? I made some modifications to your original code, but I explained what those modifications were. As for the microcontroller code, you only show part of it, so we cannot tell you how the whole thing works. All I can do is discern how what you've shown works. Why don't you ask the person who wrote it?

0 Kudos
Message 12 of 14
(673 Views)

I am asking about the LABVIEW code not the microcontroller code. I really have no idea that how it works. Unfortunately, that person is not available now. i will be thankful if you provide me with a useful summary about the procedures of work and flow and interpretation of data in LABVIEW part.

 

 

Thanks in advance.

0 Kudos
Message 13 of 14
(672 Views)

So you didn't write that code. Well, that explains a lot.

 

The code is quite straightforward. It:

  • Opens a VISA session to the specified COM port.
  • Flushes the serial port buffer.
  • Configures VISA to generate an event when a character is received on the serial port buffer.
  • If all of the above did not generate errors is goes into a loop where it:
    • Waits for the VISA event previously configured.
    • When the event is seen it reads 4 bytes.
    • The 4 bytes are saved to file.
    • The individual values are written to front panel dials.
  • When you stop you disable the VISA event and close the session.

That's it.

0 Kudos
Message 14 of 14
(663 Views)