07-15-2009 03:30 PM
I've put all read data functions into the same while loop. And i'm not thinking in adding more frames, 3 are good, 1st one to initialize all 4 instruments, 2nd frame to setup them and the 3rd and last frame will be to read only and probably for some data analizing like graphs of tables.
What you think about it?
Thanks.
07-15-2009 03:37 PM
THN wrote:The GPIB/USB that i use, wires to the 1st instrument, but i have all 4 instruments wired in serie. So, i'm communicating with all of them simultaneously, right?
No. As Dennis pointed out, you can only talk to one instrument at a time over the GPIB bus. This is a limitation with the GPIB bus, not with LabVIEW. Thus, it makes no sense to try to run VIs in parallel since they won't. It's better to simply wire them in a chain using the error cluster. When you do this you have no need of sequence frames since the error wire will dictate execution order.
07-15-2009 03:40 PM
And can i had a time delay in the between of setup and read? Can you edit my VI with 1 little example showing how should i do it?
Many thanks.
07-15-2009 04:10 PM
Yes, you can include a delay. And, as Dennis indicated the timed loop is not necessary.
I can't edit your VI because I don't have those instrument driver VIs, so I can't wire it up. Instead, I wrote an example using the 34401 drivers that ship with LabVIEW to act in place of the two instruments you have. See attached VI. Replace VIs with your instrument driver VIs.
07-15-2009 04:45 PM
Ok, i got your point, thanks for the help. This will work.
🙂
07-16-2009 03:41 AM
Yesterday when i got your reply, i wasn't able to test it, i only doing it today. And it seems, it's not doing the loop. I need to read the all data continuously, and at least from the test of the VI you did to me, it is only making 1 single reading. Any clue why is that happening, since it is in a loop, it should be reading data till i stop it, right?
Thanks once more for the help smercurio_fc.
07-16-2009 09:19 AM
07-16-2009 11:41 AM - edited 07-16-2009 11:42 AM
07-16-2009 02:11 PM
Let me see if i can explain, all instruments will have to read in real time, which i think the while loop is ok. So, this will work, but know i need something different, i need to know how to divide the ramp process.
The temperature controller will work as a ramp and as a step. In the ramp form, i will need to divide it by segments, for example: from 200K to 300K i have to define 1 setpoint and 1 rate for the ramp. After it reachs that max. temperature, it have to make a delay to achive some stability. After this delay, it will run another segment, from 350k till 500k. What's the best way to make it?
I will had a wrong VI example that i made, just to show more or less what i want.
Thanks for the support.
07-16-2009 02:20 PM