Hi Balaji,
Unfortunately we don’t have any displays to view a CSV file. You’d have to build your own custom display.
There are tutorials available here: http://iads.symvionics.com/programs.html
This might not be too difficult in C#. Maybe some of the other developers can post clues,
Jim
--
You received this message because you are subscribed to the Google Groups "IADS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iads+uns...@googlegroups.com.
To post to this group, send email to ia...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/iads/a52a5590-e82e-48f7-ac3c-54f7b7524414%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Balaji,
The good thing is that if you build your own display, you’re in complete control. You can make the table behave however you want. I’m sure the C# grid control has this capability.
To view this discussion on the web visit https://groups.google.com/d/msgid/iads/44792d81-9ac1-42b6-9c8c-adec53527371%40googlegroups.com.
Hi Balaji,
You can pass in the ‘name’ of the data group to the object through the ActionArg2 property. If I recall correctly, anything in the ActionArg2 property gets sent to the VB script as command line arguments.
Having said that, I don’t think it’s going to help your situation. If you pass in the DataGroup to the script, that implies that the script would need to check the parameters for triggering. To do that, it would have to run independently (and persistently) along with your window and watch the parameters in the group for a ‘trigger’. In other words, you’d have to rethink the whole operation.
I think your second question would be a better approach. It would be far easier to create a custom display to take in a DataGroup name, create those parameters, monitor for a trigger, and log that trigger. This is a bit more advanced that just accepting parameters from Iads because you need to create the parameters yourself using the Iads automation interface. It can certainly be done, but you’re in for a learning curve.
To answer the last question, you can’t fire off multiple VB scripts from the same action object in parallel… but in theory, you could make one script that calls N other scripts. I personally don’t know how to do that, but I’m sure it’s doable with a little searching on the net. And finally, yes, you could build a display to do anything you want… but if you build the display, I’m not sure why you’d want to fire off scripts. You can just put the work into your display.
To view this discussion on the web visit https://groups.google.com/d/msgid/iads/e980dfae-7b86-4223-b02b-3fff31719376%40googlegroups.com.
Balaji,
Unfortunately, I’m not very versed in C# programming, but I’ll try to help regardless. Maybe someone with more experience will pipe in.
As for as the first question, if you’re not using IADS data, you can probably use a ‘timer’. Basically, just google: C# timer example and read about how you would set them up. In fact, for most of these issues, google is going to be your best friend. All or most of the answers to the general C# question are out there, you just have to search for them.
For the second question, you can pass a DataGroup name through a string property in your C# display. You can then set that property using the properties sheet in Iads (or in theory, drop a string parameter on that property which contains the value). The tutorial covers how to build a property. Just change the type to string.
The IadsAutomationLib is a fairly large library with access function to the Iads application. You’ll end up using those functions to accept parameters into your display… or to be driven by Iads per each update and create your own parameters given a DataGroup. There is an example of using the interface in the tutorial Creating an ActiveX display with Every Sample in C#. We’ll go into that in more detail when you start this leg of the project.
To view this discussion on the web visit https://groups.google.com/d/msgid/iads/79d2161a-cd01-4cde-a662-30fb744deb1c%40googlegroups.com.
Hi Balaji,
The TextHistoryViewer displays the data in realtime while the test is in progress. It also writes/logs the values to a csv file and triggers off of value change, some given time interval, or a Boolean equation. I think it’s exactly what you need.
As for the custom displays, you can do anything that’s available to you in C#,
To view this discussion on the web visit https://groups.google.com/d/msgid/iads/1f5f9d3b-6c27-4aa4-84be-20e00d5c12c1%40googlegroups.com.
Hi Dale,