12-18-2006 10:19 AM
12-22-2006 10:17 AM
Greetings and Merry Christmas,
I guess I’m a little confused about your application. An idea for choosing a variable to read/write from your front panel would be with a state diagram. This could be placed in a stacked sequence to occur first. Is that what you are trying to accomplish? Would you please elaborate on your application as well as what you mean about “choosing a variable”
For the Shared Variable Constant, I’m not sure why you would want to pass the value or error status when you could just deploy the shared variable?
01-08-2007 07:41 AM
Sorry for late reply, i've been on holiday.
My current apllication is a typical DSC with data binding and Fieldpoint. There isn't a particular problem i need to solve, but a "dynamic SV" would be generally useful and make some code more clean.
By "choose" i mean select, wiith an input wire in the block diagram, which variable a r/w node refers to. It's got nothing to do with front panel and user's choices.
For example, suppose i wish to turn on 30 boolean variables. Normally i need to place 30 variable nodes!! A For loop with a dynamic node and an array of variable names would be much better.
Other example: i have a complex r/w operation which may be done on SV a, or SV b, or SV c... depending on a Case. Normally i need to duplicate the whole operation for each case; or to put in a Case every variable.node. It would be much better to pass just the name of the variable as an input!
Note: i can't use arrays because binding a SV of type "array" to multiple Fielpoint channels isn't possible.
06-01-2007 03:55 AM
06-01-2007 04:48 AM
Use the Datasocket API in applications where you need change dynamically the shared variable that a VI reads and writes. You can change a shared variable dynamically by building the URL of the Datasocket connection programmatically. You also can control other shared variable features, such as buffer size, programmatically. Additionally, the Datasocket API has a blocking read that returns only when the shared variable updates.
Figure 14. Using the DataSocket API to Programmatically Read and Write Shared Variables
06-01-2007 05:37 AM
10-24-2007 01:47 AM
Hi pincpanter,
The link you had attached is getting failed now.
Can you please give the correct link again ?
I m in need of it now, thats why I m replyng to this a-bit old post when I got it while searching...
10-24-2007 02:02 AM