08-10-2021 10:48 AM
Hi
Thank you for the reply, I think i managed to fix it now, I removed the TCPIP read and it seemed to work flawlessly. I have fixed the button issue so they are all set to "Switch Until Released."
I do have another question, I whish to place this small piece of code into my orignal beam pointing stabilization code but unfortunately, the event structure in it stops the rest of the code from running. Is there a way in can get around this?
Best Wishes
Andrew
08-10-2021 10:55 AM
Ah, yes, so you'll probably only need to use the Read in your case when querying something - it appears your device doesn't send responses to commands.
If you share the other code, we can take a look? But generally Event Structures are simpler to use when you only have 1, so if you have another in your other code there's some chance of problems there.
It might also be that you're locking the front panel during events, and your events are taking a "long time" to run (but I don't know if this is true). This is controlled by a checkbox in the Event Structure configuration window (at the bottom in the middle). More information about this can be found here: Locking Front Panels
08-10-2021 11:00 AM
Hi
Thank you I will take a look at it. I have attached the other code below. The one you are interested in has waveform in the title.
Best Wishes
Andrew
08-10-2021 11:02 AM
08-10-2021 11:05 AM
Okay I will see what I can do, I maybe some time (I've got to get a bus in a few moments) just so you know why I might not be able to respond immediately.
Best Wishes
Andrew
08-11-2021 03:53 AM
Hi there
try this and see how you get on
best wishes
Andrew
08-11-2021 04:29 AM
Hmm, that one got closer but still no dice... Now I can see your project file and the names of your two VIs ("Beam Pointing Stabilization Object orientated.vi" and "Beam Pointing Waveform approach.vi"), but those VIs aren't included (they show up as deleted, since they're not in the zip).
Looking at the file paths, it seems either you a) moved the project file before zipping it, or b) your project file is in a different directory to your code ("object orientation" seems to be the directory in question).
08-11-2021 05:10 AM
oh dear I am so sorry, give me a moment and I will try to get something to you asap.
Best wishes
Andrew
08-11-2021 05:36 AM
try this one, remember the real issue I am having is the issue subject "Using a Simulated DAQ card to communicate with real hardware." I have tried the TCPIP in the past but the algorithm didnt work well. I therefore am taking this approach.
I am currently reading the front panel locking passage.
Best Wishes
Andrew