How can I change Fieldpoint input ranges programatically?
Hi everybody,
I'm using several FP-AI-110 (8ch AI module) and FP-SG-140 (8CH strain
gauge module) with FP-1001 as RS-485 communication device, driven by
LabVIEW.
Now I need to implement a autoranging feature, to adapt the channel
input ranges to track the input voltages for best possible resolutions.
Since there are no VIs to do this, I guess I have to use the Extended
FieldPoint Command Descriptions for >>Set Attributes<< and >>Get
Attributes<<, described in Fieldpoint Programmers Reference Manual.
I looked there and found settings for all kinds of FielPoint modules,
but not for the FP-SG-140, which is most important for me. I also did
not find a more recent manual on the NI-site, which contains the
nessesary d
escriptions.
Questions:
#1.
Has anybody done this before for any modules and can give me some hints
(or VIs)?
#2.
Is there a way to use the VIs, supplied with the fieldpoint software. I
guess they are for use with ethernet-fieldpoints, because they need a
IP-adress.
Bye,
Rainer
Rainer,
1) You can do this using the Optomux VI's which are located at: ftp://ftp.ni.com/support/fieldpoint/LVFPOpto/
Please note, that after changing the range of a channel, you must wait for a period of time that is greater than or equal to the All Channel Update rate of the module prior to reading the channel that you just changed the range on. This is necessary to avoid scaling data acquired on the old range setting with the scale of the new range.
2) The configuration VI's are ethernet based and do not work with serial modules. Instead, you should use the FieldPoint Optomux VI's that I reference above. The FieldPoint Optomux VI's are instantiations of each of the commands in the FP-1000/1001 Programmers Reference Manual.
3) The FP-SG-140 is a ne
wer module and has not yet made it into the FP-1000/1001 Programmers Reference Manual. I will post the proper range/attribute/command settings for the module later today or early tomorrow.
Regards,
Aaron
Similar Messages
-
How can we change the input field on a view stop showing zeros
Hello,
To make screen look consistent with other character input field. How can we change the input field on the view stop displaying zeros even though the data type is NUMC and data type should not be change?
Edited by: sap_learner on Mar 25, 2010 5:44 PM
Edited by: sap_learner on Mar 25, 2010 5:49 PM
Edited by: sap_learner on Mar 25, 2010 5:55 PMhello Manas Dua,
Thanks for your help. I am able to resolve my problem.
My code will help the future comers to resolve this kind of issues.
*The code is applied to method WDDOINIT of the default view.
DATA lo_nd_terms_input TYPE REF TO if_wd_context_node.
DATA lo_nd_terms_input_i TYPE REF TO if_wd_context_node_info.
DATA lv_zeros TYPE wdy_attribute_format_prop.
lv_zeros-null_as_blank = 'X'.
lo_nd_terms_input = wd_context->get_child_node( name = wd_this->wdctx_input ).
lo_nd_terms_input_i = lo_nd_terms_input->get_node_info( ).
lo_nd_terms_input_i->set_attribute_format_props(
EXPORTING
name = `ENTER THE ATTRIBUTE NAME`
format_properties = lv_zeros ).
Edited by: sap_learner on Mar 26, 2010 5:02 PM -
How can I change the input key language between different languages ?
the language can't be changed when i press ctrl+alt
The default keys to rotate the layout is a key combination (Ctrl+Shift or Alt+Shift) that can easily be used in Firefox to activate a menu item.
It is better to disable the key sequence to rotate layouts (Alt+Shift or Ctr+Shift) to avoid an unintentional switch and instead assign a specific key (Alt/Ctrl + Shift + number) to switch to the keyboard layout.
Control Panel > Regional and Language Options > Keyboards and Languages > Change keyboards > Advanced key settings > Change key sequence
http://support.microsoft.com/kb/258824 - How to change your keyboard layout
You can also use the Language bar on the Windows Taskbar.<br />
You can make the Language bar visible via the right-click context menu of the Taskbar: Toolbars > Language Bar.
* http://windows.microsoft.com/en-US/windows7/The-Language-bar-overview The Language bar (overview) -
How can i change the OS input language though java
hi,
i am working on Windowx XP and for multiple language input support i am using the windows language bar.
How can i change the input language through the java itself.hi,
for a solution:
logText.getInputContext().selectInputMethod(Locale.FRANCE) -
How can I change the height of the input box in a...
How can I change the height of the input box in a new version of Skype?
Solved!
Go to Solution.
Attachments:
Skype_input_box.png 4 KBlucasbgme wrote:
I've tried 6.1.0.129
6.1.0.129 version is disabled. All Skype versions older than 6.14 are now retired and can no longer be used. You can try to install the 6.21.0.104 version:
http://download.skype.com/msi/SkypeSetup_6.21.0.104.msi -
How can I change the disabled of a message text input base on a choice
how can I change the disabled of a message text input when a dropdown list value is changed? I declare the primaryclientaction but I don't know how to make the event automatically change the disabled of the message text input to true or false.
HELP!!!! IT'S URGENT....Hi,
assuming you are using ADF Faces:
Put a submit(); in the on-change javascript event of the dropdown.
In the disabled property of the input text use some EL to reference the value of the dropdown eg disabled="{#{! bindings.Fruit.inputValue == 'BANANA'}"
Brenden -
How can I change an english/american keyboard to a danish one?
How can I change an english/american keyboard to a danish one on a Macbook Air?
Apple menu / System Preferences / Keyboard / Input sources.
Click + (bottom left) and in the pane that comes up, select Danish on the left, and click Add.
Of course that can only change what the keys actually input, not what is written on the keys. If you wish to change the physical look of the keys as well, get in touch with Apple and ask if they can replace the keyboard. -
How can I change the source file so it is direct from external hard drive?
I am trying to make a movie on imovie of a snowboarding trip that I went on, there is around 80 to 100 gig of mp4 movies that will not fit on my computer that I have stored on my external harddrive. I had the movie half finished then found I could do no more as I had no space left in my mac. I had to delete everything and start again but I'm not doing this until I can find a way of changing the source file so I can take them direct from my external hard drive as to not use up all my computers available space. I have moved imovie to my external hard drive but it still tries to read from a movie file on my mac, how can I change that so it will read from a source file on my external hard drive, is it possible?? Can someone help me??
Hi Bengt, Thanks for your input, much appreciated.
I have a WD 1TIG hard drive and are using usb connection, is it possible to use fire wire with these? I have had trouble with a lot of the videos I Imported, once they downloaded the file in the viewer window showed up blank and when I mouse over them it places a picture of another file in the window and wont drag and drop into the movie window, like their corrupted or something? Had to delete just about all of them and start again. Also is it possible to select a bunch of videos in the viewer window as to change the dates to the correct dates? All I have been able to do is "select all" which is no help. -
How can i change the column label text in a alv table display
how can i change the column label text in a alv table display??
A similar kinda of question was posted previuosly where the requirement was the label text was needed and following below code was given as solution :
<i>* declare column, settings, header object
DATA: lr_column TYPE REF TO cl_salv_wd_column.
DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
DATA: lr_column_header type ref to CL_SALV_WD_COLUMN_HEADER.
get column by specifying column name.
lr_column = lr_column_settings->get_column( 'COLUMN_NAME1' ).
set Header Text as null
lr_column_header = lr_column->get_header( ).
lr_column_header->set_text( ' ' ).</i>
My specific requirement is i have an input field on the screen and i want reflect that value as the column label for one of the column in the alv table. I have used he above code with slight modification in the MODIFYVIEW method of the view since it is a process after input. The component gets activated without any errors but while run time i get an error stating
<i>"The following error text was processed in the system CDV : Access via 'NULL' object reference not possible."</i>
i have checked in debugging and the error occured at the statement :
<i>lr_column = lr_column_settings->get_column( 'CURRENT_YEAR' ).</i>Please can you provide me an alternative for my requirement or correct me if i have done it wrong.
Thanks,
SuriI found it myself how to do it. The error says that it is not able to find the reference object i.e it is asking us to refer to the table. The following piece of code will solve this problem. Have to implement this in WDDOMODIFYVIEW method of the view. This thing works comrades enjoy...
DATA : lr_cmp_usage TYPE REF TO if_wd_component_usage,
lr_if_controller TYPE REF TO iwci_salv_wd_table,
lr_cmdl TYPE REF TO cl_salv_wd_config_table,
lr_col TYPE REF TO cl_salv_wd_column.
DATA : node_year TYPE REF TO if_wd_context_node,
elem_year TYPE REF TO if_wd_context_element,
stru_year TYPE if_alv_layout=>element_importing,
item_year LIKE stru_year-i_current_year,
lf_string TYPE char(x),
DATA: lr_column TYPE REF TO cl_salv_wd_column.
DATA: lr_column_header TYPE REF TO cl_salv_wd_column_header.
DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
Get the entered value from the input field of the screen
node_year = wd_context->get_child_node( name = 'IMPORTING_NODE' ).
elem_year = node_year->get_element( ).
elem_year->get_attribute(
EXPORTING
name = 'IMPORT_NODE-PARAMETER'
IMPORTING
value = L_IMPORT_PARAM ).
WRITE L_IMPORT_PARAM TO lf_string.
Get the reference of the table
lr_cmp_usage = wd_this->wd_cpuse_alv( ).
IF lr_cmp_usage->has_active_component( ) IS INITIAL.
lr_cmp_usage->create_component( ).
ENDIF.
lr_if_controller = wd_this->wd_cpifc_alv( ).
lr_column_settings = lr_if_controller->get_model( ).
get column by specifying column name.
IF lr_column_settings IS BOUND.
lr_column = lr_column_settings->get_column( 'COLUMN_NAME').
set Header Text as null
lr_column_header = lr_column->get_header( ).
lr_column_header->set_text( lf_string ).
endif. -
How can I change a standard webservice
What steps are necessary for me to change the SAP webservice from SAP ESR?
I WANT to do this in ABAP.
I know that there are some BADIs and Enhancements spots available . But how does this fit into the whole Wesbservice interface.
For example :
I want to add a new field to the input structure in the WSDL. This field will then have to be mapped to the BAPI and so on. How can do this. have you come across anything like this? How does BADI work in this case.
Details :
http://esoadocu.sap.com/socoview/render.asp?packageid=DBBB6D8AA3B382F191E0000F20F64781&id=2828AC800DDD11DC2B24000F20DAC9EF
I want to be able to modify this service.
Add a parameter like DocumentStructure to the input which will let me create a document inside the folder.
I know that there is a proxy class in the backend CL_DMS_DOCUMENTCRTRC1 or something like that which calls the BAPI BAPI_DOCUMENT_CREATE2. This BAPI has the additional fields I am looking to map to.
How can I use BADI to accomplish my goals? how can I change the WSDL interface ?
How is this service tied to a Proxy class in the backend?
Am I getting ahead of myself? Is this do-able or should I start from scratch ( expose my BAPI as a new WS )?
Thanks for any pointers.Did you read the "Enterprise Service Enhancement Guide" at https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c0bb5687-00b2-2a10-ed8f-c9af69942e5d ?
- julius -
how can I change an email for authorization, the email address we used years back, is no longer a valid email address
SfromW wrote: ... how can I change an email for authorization, the email address we used years back, is no longer a valid email address
How to change account here: http://support.apple.com/kb/PH1641
If you need more help, start here: http://www.apple.com/support/itunes/
SfromW wrote: ... we can't remember the password from the old email address (for authorization)...
Help Retrieving and changing passwords here: http://support.apple.com/kb/HT1911
If you need more help, from iTunes for Windows, click iTunes > iTunes Store > Support
SfromW wrote: ... apple should make it easier to transfer authorization authority....I would think anyways.
You might want to rethink your thoughts about making transferring authority easier. Making it too easy would certainly degrade your account's security. If you still believe it should be easier, you can send feedback directly to Apple via http://www.apple.com/feedback/itunesapp.html
You will not get a response, but you can be certain that the responsible Apple people will see your input for consideration in FaceTime product development.
As a new user, please understand that you are NOT directly addressing Apple here. For more info about Apple discussions, start here: http://discussions.apple.com/static/apple/tutorial/etiquette.html
Message was edited by: EZ Jim
Mac OSX 10.7.4 -
How can you change the thumbnail selected for an Album in Photos?
I'm having difficulty changing the photo that is automatically selected as the thumbnail on an iPad Air and iPad Mini. How can I change this, and what parameter governs which photo is selected?
There are a number of threads about changing the name, the creation date, the modified date, and none of those have worked for me. After changing these various parameters, I have unsynced and resynced photos, and at this point, it is becoming an obsession of mine to change this. :-)
I would appreciate any input if you've been able to do this in iOS7 and Maverics. Thanks in advance!
- RobertOkay, now it is working. I had to save the XLSX-file into the older XLS format, but that seems to work quite well.
But I won't ever understand why InDesign loses its backward compatibility from one version to the other.
Thank you, -hans-. -
How can I change a hex value to normal without changing the characters
How can I change "3932" (hex displayed string) to "39 32" (normal displayed string with space)
Solved!
Go to Solution.
Attachments:
Hex to Normal without changing value.vi 5 KBI think your VI works and if I understand what your input data looks like and the output that you want is, does it?I really can't see a better way. Does it not work for what you want? What form is the actual data in as you receive it? (not how it is displayed by the display setting of the string control) You have the string control set the “Hex display” and that may be confusing some of us as to what the actual input data is.
And what you want your output to look like. Do you get a “stream” of bytes that are the actual numbers in the form of a string?or Do you get a “string” of ASCII char that represent numbers?
These are two different things, but may look alike depending on the display setting of your controls are set.
Changing the display mode of a control or indicator does not change the under lying data. It only changes the way your eye “see” it, not how LabVIEW “sees” it. We need to know what your raw input string looks like.
tbob's snipit assume your data is one way and your VI assumes another.
Omar
Omar -
How can I change a Mixer filter in real-time? (11.5)
Hi all,
I'm currently coding (or trying to code) an interactive soundboard that users can play with in their software. They can turn inputs on and off, increase the volume, change the EQ, etc. The nice is, and I was really pleased to discover this, Director already has a feature called an 'Audio Mixer' that has filters to satisfy all these functionalities! The bad thing, I can't figure out how to change these filters in real time.
For example, here's the code to MUTE a specific mixer (activated when the user toggles a button):
member("channelOneMix").mute()
But how do I tell it go INTO that mixer, find the existing High Pass Filter, and change the value of that High Pass Filter's 'highCutOffFreq' property? It's a classic case of knowing exactly what I need to tell the code to do, but I have no idea of the SYNTAX of actually telling it to do that.
I hate to be 'that guy', but it is somewhat urgent. This is for a college assignment due Wednesday (yikes!). I didn't quite know what I was getting myself into with this code, but the end is in sight if I can figure out how to write this particular code.
Many gratuitous thanks in advance for any assistance!
PS: It won't be enough to simply add a new filter to the list. The user needs to be able to turn a dial up or down to increase or decrease the High Pass Filter, in conjunction with several other dials manipulating other filters. I need to be able to actually change what the filter's value is.Thanks for your help!
The problem is that I think that I changed the "default" name for the state where the photos were taken. I have 50 differents locations, that are all correct, and photo per photo, I can modify the original location, but only at "local" level.
How can I change the name displayed in State section as "Casa David i Mireia" for "Catalunya" that is the real name for the State where the photos where taken?
I don't if this post is comprehensive. I'm not sure.
Thanks for your time!
Jordi -
How can I change my JApplet into a JApplication?
I am working with a JApplet and am finding that some of my code only works in applications.
So being new to this, I am clueless as to how to change my Applet into an Application. I understand the difference in definition between the two, but when it comes to looking at Applet Code and Application Code, I am not able to see a difference. (Other than an Applet stating "Applet")
So, that being said how can I change my code so that it runs as an application and not an applet? Here is my current layout code
import java.applet.Applet;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
import java.text.NumberFormat;
import java.text.DecimalFormat;
// Creating the main class
public class test extends JApplet implements ActionListener
// Defining of format information
JLabel heading = new JLabel("McBride Financial Services Mortgage Calculator");
Font newFontOne = new Font("TimesRoman", Font.BOLD, 20);
Font newFontTwo = new Font("TimesRoman", Font.ITALIC, 16);
Font newFontThree = new Font("TimesRoman", Font.BOLD, 16);
Font newFontFour = new Font("TimesRoman", Font.BOLD, 14);
JButton calculate = new JButton("Calculate");
JButton exitButton = new JButton("Quit");
JButton clearButton = new JButton("Clear");
JLabel instructions = new JLabel("Please Enter the Principal Amount Below");
JLabel instructions2 = new JLabel("and Select a Loan Type from the Menu");
// Declaration of variables
private double principalAmount;
private JLabel principalLabel = new JLabel("Principal Amount");
private NumberFormat principalFormat;
private JTextField enterPrincipal = new JTextField(10);
private double finalPayment;
private JLabel monthlyPaymentLabel = new JLabel(" Monthly Payment \t Interest Paid \t \t Loan Balance");
private NumberFormat finalPaymentFormat;
private JTextField displayMonthlyPayment = new JTextField(10);
private JTextField displayInterestPaid = new JTextField(10);
private JTextField displayBalance = new JTextField(10);
// Creation of the String of arrays for the ComboBox
String [] list = {"7 Years @ 5.35%", "15 Years @ 5.50%", "30 Years @ 5.75%"};
JComboBox selections = new JComboBox(list);
// Creation of the textArea that will display the output
private TextArea txtArea = new TextArea(5, 10);
StringBuffer buff = null;
// Initializing the interface
public void init()
// Creation of the panel design and fonts
JPanel upper = new JPanel(new BorderLayout());
JPanel middle = new JPanel(new BorderLayout());
JPanel lower = new JPanel(new BorderLayout());
JPanel areaOne = new JPanel(new BorderLayout());
JPanel areaTwo = new JPanel(new BorderLayout());
JPanel areaThree = new JPanel(new BorderLayout());
JPanel areaFour = new JPanel(new BorderLayout());
JPanel areaFive = new JPanel(new BorderLayout());
JPanel areaSix = new JPanel(new BorderLayout());
Container con = getContentPane();
getContentPane().add(upper, BorderLayout.NORTH);
getContentPane().add(middle, BorderLayout.CENTER);
getContentPane().add(lower, BorderLayout.SOUTH);
upper.add(areaOne, BorderLayout.NORTH);
middle.add(areaTwo, BorderLayout.NORTH);
middle.add(areaThree, BorderLayout.CENTER);
middle.add(areaFour, BorderLayout.SOUTH);
lower.add(areaFive, BorderLayout.NORTH);
lower.add(areaSix, BorderLayout.SOUTH);
heading.setFont(newFontOne);
instructions.setFont(newFontTwo);
instructions2.setFont(newFontTwo);
principalLabel.setFont(newFontThree);
monthlyPaymentLabel.setFont(newFontFour);
displayInterestPaid.setFont(newFontFour);
displayBalance.setFont(newFontFour);
areaOne.add(heading, BorderLayout.NORTH);
areaOne.add(instructions, BorderLayout.CENTER);
areaOne.add(instructions2, BorderLayout.SOUTH);
areaTwo.add(principalLabel, BorderLayout.WEST);
areaTwo.add(enterPrincipal, BorderLayout.EAST);
areaThree.add(selections, BorderLayout.NORTH);
areaFour.add(calculate, BorderLayout.CENTER);
areaFour.add(exitButton, BorderLayout.EAST);
areaFour.add(clearButton, BorderLayout.WEST);
areaFive.add(monthlyPaymentLabel, BorderLayout.CENTER);
areaSix.add(txtArea, BorderLayout.CENTER);
// Using the ActionListener to determine when each button is clicked
calculate.addActionListener(this);
exitButton.addActionListener(this);
clearButton.addActionListener(this);
enterPrincipal.requestFocus();
selections.addActionListener(this);
}baftos wrote:
Here is one of the sites that explains the procedure:
[http://leepoint.net/notes-java/deployment/applications_and_applets/70applets.html].
But maybe you should try to fix the code that does not work as applet?
Which one is it?
>Here is one of the sites that explains the procedure:
[http://leepoint.net/notes-java/deployment/applications_and_applets/70applets.html].
But maybe you should try to fix the code that does not work as applet?
Which one is it?
The code that doesn't work in my applet is the exit button code
else if (source == exitButton)
System.exit(1);
}I also can't get my program to properly validate input. When invalid input is entered and the user presses calculate, an error window should pop up. Unfortunately it isn't. I compile and run my applications/applets through TextPad. So when I try to test the error window by entering in invalid info, the applet itself shows nothing but the command prompt window pops up and lists errors from Java. Anyhow, here is the method I was told to use to fix it.
private static boolean validate(JTextField in)
String inText = in.getText();
char[] charInput = inText.toCharArray();
for(int i = 0; i < charInput.length; i++)
int asciiVal = (int)charInput;
if((asciiVal >= 48 && asciiVal <= 57) || asciiVal == 46)
else
JOptionPane.showMessageDialog(null, "Invalid Character, Please Use Numeric Values Only");
return false;
return true;
}My Instructor told me to try the following, but I still can't get it to work.String content = textField.getText();
if (content.length() != 0) {
try { Integer.parseInt(content);
} catch (NumberFormatException nfe) {}
Maybe you are looking for
-
Error 1722 Uninstall Failure - BDS 6.1
Running a Windows 7 machine, and trying to uninstall an old version of BDS (6.1) because I no longer use BB. I'm getting 'Error 1722 - There is a problem with this Windows Installer package'. This seems to be a common error, but I've yet to see a goo
-
New hub from BT now printer no longer works with MBP OSX 10.6.8
Laptop no longer finds printer wirelessly. Have downloaded drivers and firmware updates from HP.com and also have downloaded drivers from apple for snow leopard. Now says drivers incompatible with OS. Downloaded drivers from Apple support and nothing
-
Hi got a model A1138 powerbook 15" that is hanging on start up. I get the start up sound, grey apple, and then it changes to what I presume is Terminal status with the following white text on black. Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 P
-
After upgrading from 11.1.0.6 to 11.1.0.7, I get the error: ORA-12541: TNS:no listener. I have attached my tnsnames.ora, listener.ora and my sqlnet.log. I have tried deleting the listener and re-adding it and I get the same error. I have tried adding
-
Iteration non sequencial with While Loop
I've a SubVi in while Loop. Iteration n+1 will execute when Iteration n finish. Can I execute this SubVi in paralel (no sequencial)? In Spanish: Tengo una SubVi dentro de un bucle while. Pero este bucle actúa de forma secuencial. No se cargará la ite