LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using a Simulated DAQ card to communicate with real hardware.

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 

0 Kudos
Message 11 of 19
(699 Views)

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 


GCentral
0 Kudos
Message 12 of 19
(696 Views)

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

0 Kudos
Message 13 of 19
(694 Views)

Looks like maybe the forum chopped your upload - I got a zip file with a directory structure but no files (the size is 1KB it seems)?


GCentral
0 Kudos
Message 14 of 19
(691 Views)

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 

0 Kudos
Message 15 of 19
(689 Views)

Hi there 

 

try this and see how you get on 

best wishes 

Andrew

0 Kudos
Message 16 of 19
(676 Views)

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).

cbutcher_1-1628674089977.png

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).

 


GCentral
0 Kudos
Message 17 of 19
(670 Views)

oh dear I am so sorry, give me a moment and I will try to get something to you asap. 

 

Best wishes

Andrew 

0 Kudos
Message 18 of 19
(665 Views)

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

0 Kudos
Message 19 of 19
(662 Views)