08-31-2006 03:19 PM
09-01-2006
11:36 AM
- last edited on
11-13-2025
04:44 PM
by
Content Cleaner
There are several ways that you can accomplish this, based on when and how often you want to save the values. The simplest thing is to select Operate > Make Current Values Default but if you want three different control "scenarios" that you would like to call upon, then you will need to save those control values to three different files. When you want to load your control values, just load a file, read the values and send the values to local variables that are linked to your controls. I have attached a document and example code that help demonstrate this technique.
Tutorial: Remembering Control Values
Example Code: Saving and Loading Front Panel Control Configurations
Good luck and let me know if you need anything else!
Regards,
Jeff Tipps
Applications Engineer
National Instruments
09-01-2006 11:32 PM
thanks 4 your suggestion but i unfortunately cannot save or open the example code u gave.
could u like to send it again??
thanks.
09-05-2006
08:31 PM
- last edited on
11-13-2025
04:45 PM
by
Content Cleaner
alfredo,
I apologize, please try this link for the example program that I mentioned above.
Regards,
Jeff
09-06-2006 03:24 PM - edited 09-06-2006 03:24 PM
thanks mr.Jeff for your example code... it already work out... very nice...
but i have two other questions here....
first of all, in my program, exactly in trigger facility, my pretrigger control can affect very well for continuous signals, but transient signals. can you give any information about this??
the second, my PCI4451 have 2 analog input channel (through BNC-2140 Connector Accessory), but actually in real time experiment i had done, i found that the 2nd channel generate bad signal (too big distortion), can you give some explanations or suggestions for me??is there something wrong in the BNC or in the PCI card??
best regards...
Message Edited by alfredo_2k2 on 09-06-2006 03:40 PM
09-07-2006 05:30 PM
09-08-2006 04:31 AM
mr.Jeff, i have tried your suggestion to do switching, and the fact is actually bad signal only happen at channel 2. So, how can i know whether the problem sources come from BNC connector or PCI card??haw can i fix it??
about the triggering, this is additional information...
i have a program based on LabVIEW 7.1 for dynamic signal acquisition, i built triggering facility inside. In the trigger setting, there is pretrigger control which is become malfunction if i input transient signals, such as exciting the structure with impact hammer...but if input continuous signals, no problem is found. I don't know why this problem occur, please give suggestion or maybe another example code to solve this problem... thanks a lot.
09-11-2006
03:17 PM
- last edited on
11-13-2025
04:45 PM
by
Content Cleaner
If you have another 2190 or 4452 that you could swap out, that would tell us alot. If you don't then the only way to narrow down the problem is by bypassing the 2190 and wiring your signal directly to the 4452. This might take a little creativity on your part but the pinout of the device is in appendix B of the user manual. PCI-4452 User Manual
I don't know if the triggering issue is related to the increased distortion that you are seeing or if it has something to do with your code. There are three important questions that I have about your application.
1. How long is your transient signal above the analog threshold that you specify?
2. Which channel are you triggering off of?
3. Are you using hysteresis?
Best Regards,
Jeff Tipps
Applications Engineer
National Instruments