Search found 13 matches

by Kapton
Sun Nov 08, 2020 10:07 pm
Forum: LabVIEW
Topic: Making structs for PS4000A API functions
Replies: 2
Views: 8496

Re: Making structs for PS4000A API functions

upon even further testing, I decided to stop using "adapt to type" with arrays of clusters. Instead, I went with what the advanced trigger examples use, which are 2D arrays of U8. For the 4000A, here is a subVI i made that will handle making all of the 2D arrays needed. just plug in your inputs as a...
by Kapton
Sat Nov 07, 2020 3:57 am
Forum: LabVIEW
Topic: Trigger not enabling for 4000A
Replies: 4
Views: 9112

Re: Trigger not enabling for 4000A

Literally after sending the last response I figured out my problem.

For SetTriggerChannelConditions I was using a 1 for info instead of 2 to add. Check your enums guys....
by Kapton
Sat Nov 07, 2020 3:24 am
Forum: LabVIEW
Topic: Trigger not enabling for 4000A
Replies: 4
Views: 9112

Re: Trigger not enabling for 4000A

I made all 1D cluster arrays into 2D U8 arrays like the 2000a advanced trigger. The trigger is still not triggering. I have ran the example with the simple trigger and that works fine, I don't quite understand what you mean by just adding the SetTriggerChannelConditions to clear the input of the sim...
by Kapton
Thu Nov 05, 2020 5:06 pm
Forum: LabVIEW
Topic: Trigger not enabling for 4000A
Replies: 4
Views: 9112

Re: Trigger not enabling for 4000A

ya, that's what I was afraid I would have to do. I didn't think I would need to because the error handler flags errors like "Invalid channels" if I made them invalid within the array cluster.

I'll make those changes and post if it works or not. Thanks for your help.
by Kapton
Mon Nov 02, 2020 5:47 pm
Forum: LabVIEW
Topic: Trigger not enabling for 4000A
Replies: 4
Views: 9112

Trigger not enabling for 4000A

My custom trigger SubVI is not producing a trigger. I have no idea why it isn't. Both ps4000aSetTriggerChannelProperties and ps4000aSetTriggerChannelConditions have non-zero numbers passed into nChannelProperties meaning it should be on. I'm at a loss here. Any help would be appreciated. I've attach...
by Kapton
Sun Oct 25, 2020 1:02 am
Forum: LabVIEW
Topic: Making structs for PS4000A API functions
Replies: 2
Views: 8496

Re: Making structs for PS4000A API functions

upon further testing, it appears that an array of clusters in the way to go. The LabVIEW call function can set a parameter to "adapt to type". This should allow the function to translate an array of clusters into an array of struts, as long as the elements in the cluster are in the correct order.
by Kapton
Wed Oct 21, 2020 8:48 pm
Forum: LabVIEW
Topic: XOR Logic Trigger on the 4000A
Replies: 7
Views: 8943

Re: XOR Logic Trigger on the 4000A

Thanks for the reply. So, that's kinda what I was thinking, a SOP. With the ps4000A_CONDITION structure, I didn't think it was possible to put multiple channels into the structure. I'm assuming its 1 channel with its condition. So with how the ps4000aSetTriggerChannelProperties is set up, I would ne...
by Kapton
Wed Oct 21, 2020 12:19 am
Forum: LabVIEW
Topic: Making structs for PS4000A API functions
Replies: 2
Views: 8496

Making structs for PS4000A API functions

Several of the API functions require a struct, or an array of structs, as an input. LabVIEW does not natively support structs, so what is the intended method for making them? I see two lines of thought: one is to use an array of clusters, and the other is to use a 2D array. With a little bit of test...
by Kapton
Fri Oct 16, 2020 3:04 pm
Forum: LabVIEW
Topic: XOR Logic Trigger on the 4000A
Replies: 7
Views: 8943

Re: XOR Logic Trigger on the 4000A

So with this, how would you go about doing XOR across more than 2 inputs? I know you XOR the first XOR with the next input and you keep this pattern going recursively. This is kinda like the original problem where you need to store the first XOR result in order to do the next... unless you don't. Yo...
by Kapton
Wed Oct 14, 2020 9:41 pm
Forum: LabVIEW
Topic: XOR Logic Trigger on the 4000A
Replies: 7
Views: 8943

Re: XOR Logic Trigger on the 4000A

Sorry if I didn't clarify, but I am using ps4000a not 6000. So, I do not see PS6000_TRIGGER_CONDITIONS within the SDK. However, I think I see what you are getting at. I should be able to AND (A and not B) with one call then immediately call (B and not A). This should OR the two calls and give a XOR,...
by Kapton
Mon Oct 12, 2020 5:39 am
Forum: LabVIEW
Topic: XOR Logic Trigger on the 4000A
Replies: 7
Views: 8943

XOR Logic Trigger on the 4000A

I'm a bit confused as to how you can make a XOR trigger using SetTriggerChannelConditions. If I'm not mistaken, the function can either AND several inputs by calling it once, or OR several functions by calling them separately in a row. Condition structures can be used to invert logic as well. But in...
by Kapton
Mon Oct 05, 2020 6:44 pm
Forum: USB PC Oscilloscopes
Topic: Testing 4000a series code on a 5000 series picoscope
Replies: 2
Views: 3910

Re: Testing 4000a series code on a 5000 series picoscope

I figured as much, thanks for the info. You wouldn't happen to know if you can simulate a connection to a PicoScope to test code?
by Kapton
Sun Oct 04, 2020 9:50 pm
Forum: USB PC Oscilloscopes
Topic: Testing 4000a series code on a 5000 series picoscope
Replies: 2
Views: 3910

Testing 4000a series code on a 5000 series picoscope

We are working on a project, a LabVIEW VI, for a 4000 series picoscope. That picoscope, however, is currently in use, so we instead have a 5000 series to test our code on. The problem is that the SDK functions and examples are failing to recognize the 5000 picoscope. Is there a way around this? Is i...