LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I'm trying to read GPIB data in a while loop, for 3 minutes, then I want the prog to wait say 10 minutes & then repeat.

I'm using GPIB to sweep in frequency, I want to do this for a set time, then complete the current sweep, and write the data to a file. The prog should then wait a set amount of time before running the sweep again. I hope this makes sense. I have attached my trial prog as an example, it will repeat scans, but it doesnt run the frequency scan more than once. I'm using LV 6.1 & Win98.
0 Kudos
Message 1 of 10
(3,260 Views)
Hello SS_01,

have a look at my attachment, it's a changed version of your vi.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 10
(3,255 Views)
OK thanks for the hints, but I've changed the diagram again to be closer to what I'm trying to do. The inner while loop executes once and then waits for the timeout to complete, I want to be able to run the loop continuously until the timer runs out. Is this possible?
 
Thanks
SS
0 Kudos
Message 3 of 10
(3,245 Views)
Hello SS_01,

what timer you are talking about? I can only see  your attached vi, but not it's subVis (timed_while_loop). So save them as llb...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 10
(3,238 Views)
I'm using the timed_while_loop.vi to time the while loop that I want to execute more than once until the time has elapsed. Am I explaining this clearly? I'm confusing myself!
0 Kudos
Message 5 of 10
(3,234 Views)
Hello SS_01,

what about this solution?

(Next time when you save a llb: use "save as development distribution").

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 10
(3,230 Views)
Hi, could you save it for version 6.1 please?
 
Thanks for your help.
0 Kudos
Message 7 of 10
(3,226 Views)
Hello SS_01,

of course I can 🙂

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 8 of 10
(3,209 Views)

Many thanks, that part of my program is working well!

Could you give me any suggestions as to why I dont get any data out of the arrays in the 'timed VISA write.vi' into the write to file parts of the program.

thanks again for your help

 

 

0 Kudos
Message 9 of 10
(3,188 Views)
Hello SS_01,

I made same rearrangements in your block diagram and left some comments. Just have a look!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 10 of 10
(3,177 Views)