Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Read out for instrument driver

Hi,

I am currently working on a program that needs to read several different instruments, up to this point I have been able to use the DAQ assistant to get the data and make the front panel, but I have come to a floor scale that has been plugged into the serial port of the computer. I have brought up the VISA Serial Control VI and I have set it's parameters to match those of the scale. I am now wondering how to get a read out from the scales on the front panel using something like a meter. I have tried making an instrument driver because there is no driver for these scales (GK & GFK Scale from Adam Equipment, model GFK 330a) in the instrument driver library.

So my question is, how do I make an instrument driver for this scale and get a read out from it on the front panel where if I put 10 kg on it the meter on the front panel moves to 10 or if I put 120 kg on it the front panel meter moves to 120?

 

Thanks

0 Kudos
Message 1 of 4
(3,421 Views)

For the instrument commands, check out the manual.

If its a serially controlled device, u send out the required commands and the instrument returns back the output after a delay.

Check that command library out and make the code.

Firsly a serial init, VISA write and then a VISA read after a delay.

Check out the commands in the manual.

 

Regards

grugh

Regards
Grugh Mike

Success is Everything !!
0 Kudos
Message 2 of 4
(3,390 Views)

I have found some input commands in the manual for the scales on page 41 (see attachment). Can I enter the P<cr><lf> command in the simple Read/Write vi example and get an accurate read out in the form of numbers(weights) in LabVIEW? I have this scale attached to a RS-232 to USB box to feed the data into LabVIEW.

0 Kudos
Message 3 of 4
(3,363 Views)

Yes you should be able to use that example. <cr> stands for carriage feed which is equivalent to \r and <lf> stands for line feed which is equivalent to \n. So when you create a string control to wire into the visa write, right click on it (the control) and select '\' Codes display. In this control enter P\r\n. Make sure you select the settings according to the manual pg. 34.

Now Using LabVIEW 2019SP1 and TestStand 2019
0 Kudos
Message 4 of 4
(3,344 Views)