04-09-2007 01:46 PM
04-10-2007 02:58 PM
04-16-2007 08:08 AM
Thanks Neil, that does help. Perhaps what you wrote here is in the help somewhere, but I couldn't find it. Understanding the whys as well as the whats helps me work with the system instead of against it. I'm beginning to get the picture. Bear with me a bit more while I wrestle with making this work smoothly in my OO app.
We may never use analog output, or the PFIs, or 90% of the other terrific whizbangs available. Almost everything this system will do is: 1) set relays and digital outputs to some state and then 2) maybe delay a little bit before taking a measurement. I'll do this about 100 times for each UUT. Each of those will be a test object. There will be as many as 12 UUT objects running in parallel starting and stopping at various times. Each test object will request relay and DO settings from some hardware supervisor object. At any given time, several hundred test objects will be in a queue waiting for their respective requests to be granted. Once granted, they'll then request some sort of AI and wait for that. Then they'll release their relays and DOs and go out of scope.
Much of my difficulty comes down to sample rates and number of samples. One test object may really need 2million samples at the max rate; another may be perfectly content with 100 samples at 1kHz. Still another might choose to 90 samples at 1.1kHz. Those last two examples illustrate a sticking point. The two objects could probably co-operate and compromise on the some common setup, but from a OO point of view, each test object should not have any "awareness" of any other test object, but should be concerned only with its own duties.
I could allow every test object to set its own configuration at every read. This would maintain the OO nature but would slow the system with configuration overhead - most of which would be silly and avoidable.
Perhaps a reasonable alternative would be to provide some kind of AI wrapper that includes a relatively small set of numSample/sampleRate pairs in an enumeration. The wrapper could also provide a custom configuration that should be used rarely. In effect, the wrapper tells all of the test objects "Choose from one of these two or three standard AI configs and things will go fairly quickly. If you must do something weird, be aware that I'll have to change gears first to switch to your special needs, and then again after you to go back to what most everyone else needs. Changing gears will slow you down and will slow other test objects too."
You said that sample rate dictates when I must change tasks and suffer some time doing so. I recall that merely changing the number of samples also requires a task change even if the rate is the same. Can you elaborate on that please?
Is there any reason why I shouldn't just always sample at the maximum rate? For a DC measurement I suppose this means I'd have to analize thousands of data when only a few would get me reasonable filtering. But I can do quite alot of analysis in a msec whereas changing configuration can take 150msec.
Speaking of 150msec, your tip about controlling the task state carefully may be very helpful. If I can get that down to 50msec or so, I'd be much less grumpy 🙂
In the end, if I can get average AI overhead to be no more than 10msec, I'll be very happy.
Thanks,
Dave
01-13-2012 01:22 PM
Hello
Hope you guys are in good health.
I am working on a circuit builing where i have 10 connection one after another. I need to give the connection like this pattern 0 90 180 270 0 90 180 270 0 90 (degree phases). I have an function generator through which i applied voltage and which amplifies my applied voltage into 20 times. So i need to know how can establish the my 10 connection with any of those Ni 2575/SCB 68. Can anyone give me an idea???
I am trying to search and read about those for last 10days and i didnt find any useful hints to make my worker further. Can you please help me out ???
Hope i will get a response.Thanks in advance.
Have a nice day.
Regards;
Hassan
01-16-2012 06:39 PM
Hello Hassan,
The 2575 is a multiplexing switch. It can connect one input to multiple different outputs one at a time, or vice versa. Are you trying to connect the output of the function generator to ten different inputs on your circuit?
You also mentioned the SCB 68, a connector block usually used for data acquisition cards. Are you also using a daq card, or were you thinking of the TBX-50, the connector block for the 2575?
Regards,
Luke B.
01-16-2012 07:07 PM
Hello Luke;
Hope you are doing well.
Yes i exactly want to give 10 different connection like this pattern of phase 0 90 180 270 0 90 180 270 0 90. i want to use the switch.can you help me to go through it??
I tried to find something but i didnt get anything. or is there any other way i can give these 10 connection easily???
I really need help.
kind regards;
Hassan
01-17-2012 10:41 AM
Hello Hassan,
Are your 10 connections differential (2 wires) or single ended (1 wire)?
How were you planning on controlling the switch? Do you have LabVIEW, or were you going to use another programming environment?
Regards,
Luke B.
01-17-2012 11:28 AM
Hello Luke;
Hope you are doing well.
All the connections are one wired.And i am planning to use LABVIEW. I am new (very)in this area not have much more idea. Hope LABVIEW will work. The most important thing is there wont be any delay like no holding.All my 10 connections will be simultaneous.If i can get a controlling idea that would be appreciable.
Actaully i will apply the voltage and will use a funtion generator to amplify it.
Thank you.
Kind regards;
Hassan
01-18-2012 10:26 AM
Hello Hassan,
The 2575 you have is a multiplexer switch. This help page describes what multiplexers do.
This switch is not designed to change the phase of the signal. The switch only makes connections between its input and outputs. Does your function generator output each of the phases you are looking for, or does it only output one phase?
Please also keep in mind that the 2575 uses mechanical relays, so it can take around 1ms for the mechanical relay to switch. I'm not sure what you meant by "no delay and no holding", but mechanical relays do take time to switch.
I was also wondering where the voltage that the function generator is amplifying comes from?
Regards,
Luke B.
01-18-2012 11:40 AM
Hello Luke;
Hope you are doing fine.
Actually i understand the mechanical relay. Thanks for letting me know. Like i use function generator and amplifier thats how voltage amplify. Can you give an idea about the input and output port of 2575 (196 *1)??
Like i want that i will apply voltage on function generator software panel and an amplifier will amplify the voltage in my desired value. Then somehow i want connect the switch with that output voltage and want to give a cnsecutive 10 connection of this phase: 0 90 180 270 0 90 180 270 0 90. I want to build different phases in LABVIEW. Now can i make clear my exact problem?? Hope to hear from you.Thanks for all your help.
Have a nice day.
Kind regards;
Hassan