Click Validate to make sure the settings are supported by the hardware. If you are using RS, select the Advanced tab and make sure the Transceiver Mode is set correctly. After set up and configuration, use VISA Test Panels to verify communication with the instrument and test different instrument commands. After completing your configuration and verifying communication with the instrument, you can easily transition from interactive mode to programming mode by using an instrument driver.
Follow the links in the document to install and use the instrument driver. Use these examples as programming references and an easy way to start using your instrument.
If you are using RS 2-wire , communicate with your instrument with the shipping example RS Transceiver Control. Specify the transceiver mode based on the one you want to use. Note: SCPI commands i. Serial Quick Reference Guide. How to Perform a Serial Loopback Test.
Ethernet Instrument Control Tutorial. This content is not available in your preferred language. Environment shows products that are verified to work for the solution described in this article. This solution might also apply to other similar products or applications. Hardware Serial Interface Device. Operating System Windows. Learn more about serial communication Learn more about the instrument control software stack. Cables Shop NI serial cables Null modem vs. Open MAX from the Start menu.
Save your settings. Just make sure that you match male and female connections correctly. Modem cables have the wires in the cable running straight through and Null Modem cables have the transmit and receive lines crossed in the cable. Most scales will typically connect to a PC using a Null Modem cable however there are exceptions. One way to make sure that you have all your options covered is to purchase a "Null Modem Adapter".
A Null Modem Adapter is a small connector that slips in line with the cable and crosses the transmit and receive lines. They are also available on Amazon. Once you know the types of connectors that are on both your scale and your PC, you would connect the two together using an appropriate cable.
If your scale comes with a cable, then that would be the best one to use. If not, you can purchase cables in any configuration or length that you want. You may want to contact the manufacturer of the scale to find out if it uses a Modem or a Null Modem cable before making a purchase. Parallel ports on a PC are generally only used for connecting to a printer. They are not serial ports and cannot be used to communicate with a scale.
Typically the driver is provided on a CD with the cable and you normally install the driver first before you connect the cable to your PC for the first time. Note: If your scale connects directly to a USB port or if you are using a RS to USB converter, make sure that the scale or the converter is connected to the PC and that it's device driver is installed before looking in the Device Manager. The BC-Wedge software was primarily designed to input data from a bar code scanner however it can also be used with most scales and balances.
TALtech has a full line of Software Wedge products that have much more advanced features than what are available in the BC-Wedge program. You can learn more at: www. Now that you have your scale connected to your PC, the next step is to determine the serial communications parameters that the scale uses. The very best way to do this is to either look in the scale's user's manual or contact it's manufacturer.
In order for your PC to communicate with your scale, the settings that you select in the BC-Wedge software must exactly match the settings that your scale uses.
This will display the window shown above where you would enter the communications settings. Note: You do not have to change any serial communications parameters in the Windows Device Manager. The parameters that you select in the BC-Wedge software or any other software will always override any parameters set in the Device Manager.
If you have the correct communications parameters set in the BC-Wedge software, you should be able to see a weight reading in the text box labeled "Input Data From Scanner" when you press the Print button on your scale.
The image above shows typical data from a scale. If no data appears after you press the print button then you may have the wrong COM port selected. If data appears but is garbled or completely unreadable then you have the right COM port but the wrong serial communications parameters selected. You may need to experiment with different settings until you see data that looks correct.
Try setting the Number Of Data Bits to "7", and the Parity to "Even" and then try each different Baud Rate until you see data that contains weight values that match what is on the scale's display. Once you are able to see data appear correctly in BC-Wedge, leave it running in the background and launch Microsoft Excel and put the cursor in a cell where you want your weight values to go and press the Print button on the scale.
If everything is working correctly, you should see the weight value appear in Excel. Because of this, you should be able to send weight values directly into any program that you can type data into - including database programs, shipping software, or just about any other Windows program.
These statements are incorrect: " Serial ports found on the back of a PC will always be either 9-Pin Male or Pin female. A scale is typically a device that that has a spring in it and its output is a function of spring-stretch and it measures weight. Take a balance and a scale to the moon with a 1kg mass. The balance will read 1kg but the scale will read something significantly less. Both are correct.
Reply 2 years ago. The balance will NOT read 1 kg on the moon unless it has been calibrated with a mass standard on the moon. They both measure force of gravitational acceleration acting upon a mass. One stretches a spring and the other bends a load cell. The electronics in the balance displays it as mass but only the correct mass if it has been calibrated in the location you are wanting to use it in.
Question 2 years ago. Is it worth it?? If the weighting device that you have does not have a Bluetooth interface then you would have to purchase a Bluetooth adapter for that supports "Serial Port Protocol" SPP and you would also need some software on the phone that would be able to read in the data from the device. Unfortunately that is not something that we would have a solution for.
Reply 3 years ago. The most common problem is a mismatch in the communications settings between the software and the scale. You could try setting the Parity to Even, the Data Bits to 7 and then try every different Baud Rate until you see data that looks correct.
If that does not work then can you describe in more detail exactly what you are seeing? If you like, you can send me a screen shot of the data to tom taltech. I already set the parity to even, data bits to 7 and changing baud rate but still the data it send to pc is different from the weight displayed in scale. Question 3 years ago on Step 8. Pls help.
0コメント